![]() |
![]() |
Battery Monitor notify object structure. More...
#include <BatteryMonitor.h>

Data Fields | |
| List_Elem | link |
| BatteryMonitor_NotifyFxn | notifyFxn |
| uint16_t | thresholdHigh |
| uint16_t | thresholdLow |
| uintptr_t | clientArg |
| bool | isRegistered |
Battery Monitor notify object structure.
This structure specification is for internal use. Notification clients must pre-allocate a notify object when registering for a notification; BatteryMonitor_registerNotifyHigh(), BatteryMonitor_registerNotifyLow(), or BatteryMonitor_registerNotifyRange() will take care initializing the internal elements appropriately.
| List_Elem BatteryMonitor_NotifyObj::link |
For placing on the notify list
| BatteryMonitor_NotifyFxn BatteryMonitor_NotifyObj::notifyFxn |
Application callback function
Referenced by BatteryMonitor_getNotifyFxn().
| uint16_t BatteryMonitor_NotifyObj::thresholdHigh |
High threshold in millivolts
Referenced by BatteryMonitor_getThresholdHigh(), and BatteryMonitor_getThresholdRange().
| uint16_t BatteryMonitor_NotifyObj::thresholdLow |
Low threshold in millivolts
Referenced by BatteryMonitor_getThresholdLow(), and BatteryMonitor_getThresholdRange().
| uintptr_t BatteryMonitor_NotifyObj::clientArg |
Application provided arg
Referenced by BatteryMonitor_getClientArg().
| bool BatteryMonitor_NotifyObj::isRegistered |
Is the notification active