energy
[Interface specifications]
Energy storage / consumption.
More...
#define | PLAYER_ENERGY_DATA_STATE 1 |
Data subtype: state. | |
#define | PLAYER_ENERGY_SET_CHARGING_POLICY_REQ 1 |
Request subtype: set charging policy. | |
typedef struct player_energy_data | player_energy_data_t |
Data: state (PLAYER_ENERGY_DATA_STATE). | |
typedef struct player_energy_chargepolicy_config | player_energy_chargepolicy_config_t |
Request/reply: set charging policy. |
Detailed Description
Energy storage / consumption.DEPRECATED: THE FUNCTIONALITY OF THE ENERGY DEVICE HAS BEEN FOLDED INTO THE POWER DEVICE. YOU SHOULD CONSIDER USING THE POWER DEVICE INSTEAD. NO NEW DEVELOPMENT SHOULD BE DONE ON THE ENERGY DEVICE AND IT WILL BE REMOVED FROM HERE VERY SOON.
The energy
interface provides data about energy storage, consumption and charging. This interface accepts no commands.
Typedef Documentation
Request/reply: set charging policy.
Send a PLAYER_ENERGY_SET_CHARGING_POLICY_REQ request to change the charging policy.
typedef struct player_energy_data player_energy_data_t |
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.