battery_info_get_system_voltage()

Retrieve the system voltage.

Synopsis:

#include <bps/battery.h>
 
BPS_API int battery_info_get_system_voltage(battery_info_t *info)

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the system voltage from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The battery_info_get_system_voltage() function retrieves the system voltage from a battery_info_t structure. The system voltage is reported in millivolts (mV).

Returns:

The system voltage or BATTERY_INVALID_VALUE if the system voltage is not available.