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

Battery voltage measurement for power monitoring. More...

Functions

int BoardBatteryVoltGet (uint32_t *mv)
 Get the battery voltage in millivolt.
 

Detailed Description

Battery voltage measurement for power monitoring.

Function Documentation

◆ BoardBatteryVoltGet()

int BoardBatteryVoltGet ( 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.