player_energy_data Struct Reference
#include <player.h>
Detailed Description
Data: state (PLAYER_ENERGY_DATA_STATE).
The energy
interface reports he amount of energy stored, current rate of energy consumption or aquisition, and whether or not the device is connected to a charger.
Public Attributes | |
float | joules |
energy stored [J]. | |
float | watts |
estimated current power consumption (negative values) or aquisition (positive values) [W]. | |
int32_t | charging |
charge exchange status: if 1, the device is currently receiving charge from another energy device. |
Member Data Documentation
energy stored [J].
estimated current power consumption (negative values) or aquisition (positive values) [W].
int32_t player_energy_data::charging |
charge exchange status: if 1, the device is currently receiving charge from another energy device.
If -1 the device is currently providing charge to another energy device. If 0, the device is not exchanging charge with an another device.
The documentation for this struct was generated from the following file: