![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Data format for the Battery Level Status characteristic (packed) More...
#include <InternalTypes.hpp>
Public Attributes | |
| unsigned int | flag_id_present: 1 = 1 |
| Flags: id field present. | |
| unsigned int | flag_battery_level_present: 1 = 1 |
| Flags: battery level field present. | |
| unsigned int | flag_additional_status_present: 1 = 1 |
| Flags: additional status field present. | |
| unsigned int | flag_reserved: 5 = 0 |
| Flags: reserved for future use. | |
| unsigned int | ps_battery_present: 1 = 0 |
| Power state: is battery present. | |
| unsigned int | ps_wired_ext_power: 2 = 1 |
| Power state: is wired external power present. | |
| unsigned int | ps_wireless_ext_power: 2 = 0 |
| Power state: is wireless external power present. | |
| unsigned int | ps_battery_charge_state: 2 = 0 |
| Power state: battery charging status. | |
| unsigned int | ps_battery_charge_level: 2 = 1 |
| Power state: summarized state of charge. | |
| unsigned int | ps_charging_type: 3 = 0 |
| Power state: charging type. | |
| unsigned int | ps_fault_reason: 3 = 0 |
| Power state: charging fault reason. | |
| unsigned int | ps_reserved: 1 = 0 |
| Power state: reserved for future use. | |
| uint16_t | id = 0x106 |
| Field: Battery identifier. | |
| uint8_t | battery_level = 100 |
| Field: Battery level. | |
| unsigned int | as_service_required: 1 = 0 |
| Additional status: service required. | |
| unsigned int | as_battery_fault: 2 = 0 |
| Additional status: battery fault status. | |
| unsigned int | as_reserved: 5 = 0 |
| Additional status: reserved for future use. | |
Data format for the Battery Level Status characteristic (packed)
Definition at line 448 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::as_battery_fault |
Additional status: battery fault status.
Definition at line 493 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::as_reserved |
Additional status: reserved for future use.
Definition at line 495 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::as_service_required |
Additional status: service required.
Definition at line 491 of file InternalTypes.hpp.
| uint8_t BatteryStatusChrData::battery_level = 100 |
Field: Battery level.
Definition at line 486 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::flag_additional_status_present |
Flags: additional status field present.
Definition at line 455 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::flag_battery_level_present |
Flags: battery level field present.
Definition at line 453 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::flag_id_present |
Flags: id field present.
Definition at line 451 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::flag_reserved |
Flags: reserved for future use.
Definition at line 457 of file InternalTypes.hpp.
| uint16_t BatteryStatusChrData::id = 0x106 |
Field: Battery identifier.
Definition at line 481 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_battery_charge_level |
Power state: summarized state of charge.
Definition at line 470 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_battery_charge_state |
Power state: battery charging status.
Definition at line 468 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_battery_present |
Power state: is battery present.
Definition at line 462 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_charging_type |
Power state: charging type.
Definition at line 472 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_fault_reason |
Power state: charging fault reason.
Definition at line 474 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_reserved |
Power state: reserved for future use.
Definition at line 476 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_wired_ext_power |
Power state: is wired external power present.
Definition at line 464 of file InternalTypes.hpp.
| unsigned int BatteryStatusChrData::ps_wireless_ext_power |
Power state: is wireless external power present.
Definition at line 466 of file InternalTypes.hpp.