
Configuration of the Coulomb counter (electric charge)
Configuration flags for the PM_GetCoulombCounter() function
PM_CC_RESET
= 0x00000001,
/* Reset Coulomb counter that can be used
for the application */
12.3.19.3 Callback functions
public func();
Function to be provided by the script developer, that is called up if a failure of the supply or charging
voltage V IN has been detected
12.3.19.4 Functions
native PM_SetChargingMode(mode);
Sets the charge mode. Detailed information on the charge control is provided in chapter "Technical
details about energy management" on page 61.
Parameter
Explanation
mode
PM_CHARGING_OFF :
Charge control deactivated
PM_CHARGING_NORMAL :
Charge if the state of charge of the
rechargeable battery is <50%.
PM_CHARGING_SOLAR :
Charge continuously, if possible, and the
supply or charging voltage V IN is above 16V
Explanation
Return value
l
OK, if successful
l
ERROR, if an invalid parameter was transferred
native PM_BackupInit(funcidx);
Activates malfunction monitoring for the supply or charging voltage V IN and specifies the function that
should be called up in the event of the supply or charging voltage V IN failing
Parameter
Explanation
funcidx
Index of the public function that should be called up if a failure of the supply or
charging voltage V IN has been detected
Type of function: public func();
Explanation
Return value
l
OK, if successful
l
ERROR, if an invalid parameter was transferred
160
Rev. 01