Use CHWRMPower::GetBatteryVoltageInfo()
to
get the battery voltage information and CHWRMPower::GetBatteryInfo()
to
get the battery consumption data from HWRM server.
The following code snippet demonstrates how to get battery consumption information:
TRequestStatus& status TBatteryConsuptionData batterydata; iPower->GetBatteryInfo( status, batterydata ); User::WaitForRequest( status ); ...