2016-02-17 21:25:15 -04:00
|
|
|
#pragma once
|
2014-11-25 01:57:54 -04:00
|
|
|
|
|
|
|
#include "AP_BattMonitor_SMBus.h"
|
2016-04-19 13:11:29 -03:00
|
|
|
|
2023-03-06 22:02:49 -04:00
|
|
|
#if AP_BATTERY_SMBUS_SOLO_ENABLED
|
|
|
|
|
2017-02-08 20:28:14 -04:00
|
|
|
class AP_BattMonitor_SMBus_Solo : public AP_BattMonitor_SMBus
|
2014-11-25 01:57:54 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Constructor
|
2017-04-24 03:25:52 -03:00
|
|
|
AP_BattMonitor_SMBus_Solo(AP_BattMonitor &mon,
|
2016-04-19 13:11:29 -03:00
|
|
|
AP_BattMonitor::BattMonitor_State &mon_state,
|
2021-06-18 18:16:06 -03:00
|
|
|
AP_BattMonitor_Params ¶ms);
|
2014-11-25 01:57:54 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2017-10-26 00:58:56 -03:00
|
|
|
void timer(void) override;
|
2016-11-04 00:54:51 -03:00
|
|
|
|
2017-02-08 20:28:14 -04:00
|
|
|
uint8_t _button_press_count;
|
2014-11-25 01:57:54 -04:00
|
|
|
};
|
2023-03-06 22:02:49 -04:00
|
|
|
|
|
|
|
#endif // AP_BATTERY_SMBUS_SOLO_ENABLED
|