playerc_power_t Struct Reference
Power device data. More...
#include <playerc.h>
Collaboration diagram for playerc_power_t:
Detailed Description
Power device data.
Public Attributes | |
playerc_device_t | info |
Device info; must be at the start of all device structures. More... | |
int | valid |
status bits. More... | |
double | charge |
Battery charge (Volts). More... | |
double | percent |
Battery charge (percent full). More... | |
double | joules |
energy stored (Joules) | |
double | watts |
power currently being used (Watts). More... | |
int | charging |
charging flag. More... | |
Member Data Documentation
◆ charge
double playerc_power_t::charge |
Battery charge (Volts).
Referenced by PlayerCc::PowerProxy::GetCharge().
◆ charging
int playerc_power_t::charging |
◆ info
playerc_device_t playerc_power_t::info |
Device info; must be at the start of all device structures.
◆ percent
double playerc_power_t::percent |
Battery charge (percent full).
Referenced by PlayerCc::PowerProxy::GetPercent().
◆ valid
int playerc_power_t::valid |
status bits.
Bitwise-and with PLAYER_POWER_MASK_ values to see which fields are being set by the driver.
Referenced by PlayerCc::PowerProxy::GetCharging().
◆ watts
double playerc_power_t::watts |
power currently being used (Watts).
Negative numbers indicate charging.
Referenced by PlayerCc::PowerProxy::GetWatts().
The documentation for this struct was generated from the following file: