battery_info_get_battery_average_power()

Retrieve the battery average power.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

info

The battery_info_t structure to get the battery average power from.

Library:

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

Description:

The battery_info_get_battery_average_power() function retrieves the average power of the current discharge of the battery from a battery_info_t structure. It is negative when the battery is discharging and positive when the battery is charging. The battery average power is reported in milliwatts (mW).

Returns:

The battery average power or BATTERY_INVALID_VALUE if the battery average power is not available.