![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Interface to hardware implementing a battery monitor. More...
#include <BatteryMonitorHardware.hpp>
Public Member Functions | |
| virtual void | getStatus (BatteryStatus ¤tStatus) |
| Get the battery status. | |
| virtual void | onStart () |
| Called once when the battery monitor daemon is started. | |
Protected Member Functions | |
| virtual bool | read_soc (uint8_t &soc)=0 |
| Retrieve the current state of charge. | |
Interface to hardware implementing a battery monitor.
Definition at line 25 of file BatteryMonitorHardware.hpp.
|
virtual |
Get the battery status.
| [out] | currentStatus | Current battery status |
Reimplemented in FakeBatteryMonitor.
|
inlinevirtual |
Called once when the battery monitor daemon is started.
Reimplemented in MAX1704x.
Definition at line 41 of file BatteryMonitorHardware.hpp.
|
protectedpure virtual |
Retrieve the current state of charge.
| [out] | soc | State of charge. Higher than 101 if the battery is charging at constant voltage. |
soc was retrieved with success soc is unknown Implemented in FakeBatteryMonitor, MAX1704x, and VoltageDividerMonitor.