![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Battery service. More...
#include <InternalServices.hpp>
Public Member Functions | |
| virtual int | getLastBatteryLevel () |
| Get the last known battery level (SoC) | |
| virtual bool | hasBattery () |
| Check if the device can be powered by a battery. | |
| virtual bool | isBatteryPresent () |
| Check if the battery is detected. | |
| virtual void | getStatus (BatteryStatus &status) |
| Get the full battery status. | |
Additional Inherited Members | |
Static Public Member Functions inherited from DependencyManager< BatteryService > | |
| static BatteryService & | call () |
| Get the service provider implementing the service. | |
| static void | inject (_Args &&...__args) |
| Inject a service provider. | |
| static void | inject (BatteryService *provider) |
| Inject a service provider. | |
| static void | reset () |
| Remove the injected service provider (for testing) | |
Battery service.
Definition at line 412 of file InternalServices.hpp.
|
inlinevirtual |
Get the last known battery level (SoC)
Definition at line 420 of file InternalServices.hpp.
|
inlinevirtual |
Get the full battery status.
| status | Current battery status |
Definition at line 453 of file InternalServices.hpp.
|
inlinevirtual |
Check if the device can be powered by a battery.
Definition at line 430 of file InternalServices.hpp.
|
inlinevirtual |
Check if the battery is detected.
Definition at line 443 of file InternalServices.hpp.