|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
#include <GaugeBQ27220.hpp>
Public Member Functions | |
| OperationConfig (uint32_t registerValue) | |
| Constructor for OperationConfig class. | |
| uint16_t | getConfigA () const |
| Get the value in configuration register A. | |
| uint16_t | getConfigB () const |
| Get the value in configuration register B. | |
| bool | isTempsSet () const |
| Check if the external thermistor is selected for temperature measurement. | |
| bool | isBatgPolHigh () const |
| Check the BATT_GD pin polarity. | |
| bool | isBatgEnEnabled () const |
| Check if the BATT_GD function is enabled. | |
| bool | canEnterSleep () const |
| Check if the fuel gauge can enter the SLEEP state. | |
| bool | isSlpwakechgEnabled () const |
| Check if the slpwakechg function is enabled. | |
| bool | isWrtempEnabled () const |
| Check if the write temperature function is enabled. | |
| bool | isBienableEnabled () const |
| Check if battery insertion detection is enabled. | |
| bool | isBlPupEnEnabled () const |
| Check if the battery insertion pin pull - up is enabled. | |
| int | getPfcCfg () const |
| Get the Pin Function Code (PFC) mode. | |
| bool | isWakeEnEnabled () const |
| Check if the wake - up function is enabled. | |
| int | getWkTh1 () const |
| Get the Wake - up threshold 1 value. | |
| int | getWkTh0 () const |
| Get the Wake - up threshold 0 value. | |
| bool | isDefaultSealEnabled () const |
| Check if the default seal option is enabled (sealed after POR). | |
| bool | isNonRemovableSet () const |
| Check if the non - removable option is set. | |
| bool | isIntBremEnabled () const |
| Check if the INT_BREM function is enabled. | |
| bool | isIntBatLEnabled () const |
| Check if the INT_BATL function is enabled. | |
| bool | isIntStateEnabled () const |
| Check if the INT_STATE function is enabled. | |
| bool | isIntOcvEnabled () const |
| Check if the INT_OCV function is enabled. | |
| bool | isIntOtEnabled () const |
| Check if the INT_OT function is enabled. | |
| bool | isIntPolHigh () const |
| Check if the INT_POL function is enabled (high - level polarity). | |
| bool | isIntFocvEnabled () const |
| Check if the INT_FOCV function is enabled. | |
Definition at line 312 of file gauge/ti/GaugeBQ27220.hpp.
|
inline |
Constructor for OperationConfig class.
Parses the 16 - bit register value to initialize the member variables representing different configuration bits.
| registerValue | A 16 - bit unsigned integer representing the Operation Config A register value. |
Definition at line 363 of file gauge/ti/GaugeBQ27220.hpp.
|
inline |
Check if the fuel gauge can enter the SLEEP state.
Definition at line 447 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Get the value in configuration register A.
Definition at line 407 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Get the value in configuration register B.
Definition at line 415 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Get the Pin Function Code (PFC) mode.
Definition at line 487 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Get the Wake - up threshold 0 value.
Definition at line 511 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Get the Wake - up threshold 1 value.
Definition at line 503 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the BATT_GD function is enabled.
Definition at line 439 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check the BATT_GD pin polarity.
Definition at line 431 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if battery insertion detection is enabled.
Definition at line 471 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the battery insertion pin pull - up is enabled.
Definition at line 479 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the default seal option is enabled (sealed after POR).
Definition at line 521 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the INT_BATL function is enabled.
Definition at line 545 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the INT_BREM function is enabled.
Definition at line 537 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the INT_FOCV function is enabled.
Definition at line 585 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the INT_OCV function is enabled.
Definition at line 561 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the INT_OT function is enabled.
Definition at line 569 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the INT_POL function is enabled (high - level polarity).
Definition at line 577 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the INT_STATE function is enabled.
Definition at line 553 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the non - removable option is set.
Definition at line 529 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the slpwakechg function is enabled.
Definition at line 455 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the external thermistor is selected for temperature measurement.
Definition at line 423 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the wake - up function is enabled.
Definition at line 495 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().
|
inline |
Check if the write temperature function is enabled.
Definition at line 463 of file gauge/ti/GaugeBQ27220.hpp.
Referenced by setup().