libpowermon 1.00
PowerMon Access Library
|
MonitorData is a structure containing the real-time PowerMon data. More...
#include <powermon.h>
Public Member Functions | |
bool | isTemperatureExternal (void) const |
Returns true if the temperature is read from an external sensor. | |
Public Attributes | |
uint16_t | firmware_version_bcd |
current firmware version in BCD format xx.yy | |
uint8_t | hardware_revision_bcd |
current hardware revision in BCD format x.y | |
uint32_t | time |
UNIX time in localtime (not UTC) | |
uint32_t | flags |
various flags - do not use directly | |
float | voltage1 |
Voltage 1 in Volts. | |
float | voltage2 |
Voltage 2 in Volts. | |
float | current |
Current in Amperes. | |
float | power |
Power in Watts. Depending on the configuration, either V1 or V2 are used to compute this value. | |
float | temperature |
Temperature in Celsius. | |
int64_t | coulomb_meter |
Coulomb meter in mAh. | |
int64_t | energy_meter |
Energy meter in mWh. | |
PowerStatus | power_status |
Device power status. | |
uint8_t | fg_soc |
Fuelgauge SoC (State of Charge) in percentage. 0xFF means the FG is not enabled. 0xFE means the SoC is unknown. | |
uint16_t | fg_runtime |
Fuelgauge runtime in minutes. 0xFFFF means the FG is not enabled. The maximum valid value is 0xFFF0. | |
int16_t | rssi = INT16_MIN |
RSSI as seen by the device in dBm. | |
MonitorData is a structure containing the real-time PowerMon data.