![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Battery status. More...
#include <InternalTypes.hpp>
Public Member Functions | |
| constexpr bool | operator== (const BatteryStatus &other) const noexcept |
| Compare for equality. | |
| void | reset () noexcept |
| Reset to unknown. | |
Public Attributes | |
| std::optional< uint8_t > | stateOfCharge {} |
| Measured battery level in the range from 0% to 100%. | |
| std::optional< bool > | isCharging {} |
| True if the battery is being charged. | |
| std::optional< bool > | isBatteryPresent {} |
| False if the battery is not connected. | |
| std::optional< bool > | usingExternalPower {} |
| True if there is wired power. | |
Battery status.
Definition at line 404 of file InternalTypes.hpp.
|
inlineconstexprnoexcept |
Compare for equality.
| other | Another battery status |
Definition at line 423 of file InternalTypes.hpp.
|
inlinenoexcept |
Reset to unknown.
Definition at line 435 of file InternalTypes.hpp.
| std::optional<bool> BatteryStatus::isBatteryPresent {} |
False if the battery is not connected.
Definition at line 412 of file InternalTypes.hpp.
| std::optional<bool> BatteryStatus::isCharging {} |
True if the battery is being charged.
Definition at line 410 of file InternalTypes.hpp.
| std::optional<uint8_t> BatteryStatus::stateOfCharge {} |
Measured battery level in the range from 0% to 100%.
Definition at line 408 of file InternalTypes.hpp.
| std::optional<bool> BatteryStatus::usingExternalPower {} |
True if there is wired power.
Definition at line 414 of file InternalTypes.hpp.