Myriota UltraLite SDK 2.4.0
Loading...
Searching...
No Matches
Battery voltage

Battery voltage measurement and monitoring. More...

Functions

MYRIOTA_USER_API int BatteryGetVoltage (uint32_t *mV)
 Get the battery voltage in millivolt.
 

Detailed Description

Battery voltage measurement and monitoring.

Function Documentation

◆ BatteryGetVoltage()

MYRIOTA_USER_API int BatteryGetVoltage ( uint32_t *  mV)

Get the battery voltage in millivolt.

Parameters
mV[out]Pointer to store the battery voltage in millivolt.
Returns
0 if succeeded and -1 if failed.
Note
If battery measurement is not supported then both voltage and the return value are 0.