max1704x: Driver for MAX17043/MAX17044/MAX17048/MAX17049 battery fuel gauge
- struct max1704x_status_t
#include <max1704x.h>Alert Status structure.
Public Members
- bool reset_indicator
Reset indicator.
- bool voltage_high
Voltage high alert.
- bool voltage_low
Voltage low alert.
- bool voltage_reset
Voltage reset alert.
- bool soc_low
SOC low alert, set when SOC cross empty_alert_thresh.
- bool soc_change
SOC change alert, set when SOC change is at least 1%.
- bool vreset_alert
Set to enable voltage reset alert under conditions specified in the valert register.
- struct max1704x_config_t
#include <max1704x.h>MAX1704X configuration structure.
Public Members
- uint8_t rcomp
RCOMP register value - default 0x97.
- bool sleep_mode
Sleep mode - set to true to enter sleep mode.
- bool soc_change_alert
SOC change alert - enable/disable SOC change alert.
- bool alert_status
Alert status - read to check if alert has been triggered.
- uint8_t empty_alert_thresh
Empty alert threshold - default 0x1C (4%, 32 - ATHD)
- uint8_t active_threshold
Exits hibernation when IOCV-CELLI above this threshold.
- uint8_t hibernate_threshold
Enters Hibernation when CRATE falls below this threshold.
- struct max1704x_t
#include <max1704x.h>Device descriptor.
Public Members
- i2c_dev_t i2c_dev
- max1704x_model_t model
- max1704x_config_t config
- max1704x_status_t status