Current, Power & ADC
Analog Devices / Maxim MAX17048 in the datasheet corpus
ModelGauge 1-cell Li-Ion fuel gauge with ultra-low 23 uA quiescent draw and ALRT interrupt.
VendorAnalog Devices / MaximCurrent, Power & ADC
InterfaceI2C0x36 (fixed)
Record StatusCatalog profileDatasheet / behavioral twin
Driver oracle & capability record
Indexed in the CircuitTwin datasheet corpus (battery-bms class) for low-SoC alert and quick-start checks.
| Driver reference | Zephyr maxim,max17048 / Adafruit MAX1704X |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record | Generate or inspect locally via ct twin generate (see /docs/twin-generation). |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x02-0x03 | VCELL | 78.125 uV/LSB | 16-bit big-endian cell voltage reading |
0x04-0x05 | SOC | 1/256 %/LSB | High byte is integer %; low byte is fractional % |
0x08-0x09 | VERSION | 0x001x | Production IC version register |
0x0C-0x0D | CONFIG | 0x971C | RCOMP, sleep mode and empty-battery alert threshold |
Attach with ct CLI
Shell - run firmware with MAX17048
# Run compiled firmware with MAX17048 attached on feather-nrf52840-express
ct run --json --board feather-nrf52840-express --device max17048 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/max17048.xml tests/max17048-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/max17048-fault.suite.yaml
version: 1
board: feather-nrf52840-express
firmware: build/app.elf
tests:
- name: max17048-i2c-nack-recovery
faults:
- at_ms: 30
bus: I2C1
kind: nack
address: 0x36
count: 2
- at_ms: 140
part: max17048
kind: register_override
register: 0x08
value: 0xFF
expect:
console_contains: "DRIVER_FAULT_HANDLED"
exit_code: 0