battery_info_get_system_max_voltage()

Retrieve the system maximum voltage.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the system maximum voltage from.

Library:

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

Description:

The battery_info_get_system_max_voltage() function retrieves the maximum voltage capacity of the device from a battery_info_t structure. The system maximum voltage is reported in millivolts (mV).

Returns:

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