2020-01-16 14:54:18 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AP_BattMonitor_SMBus.h"
|
|
|
|
|
2023-03-06 22:02:49 -04:00
|
|
|
#if AP_BATTERY_SMBUS_NEODESIGN_ENABLED
|
|
|
|
|
2020-01-16 14:54:18 -04:00
|
|
|
class AP_BattMonitor_SMBus_NeoDesign : public AP_BattMonitor_SMBus
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AP_BattMonitor_SMBus_NeoDesign(AP_BattMonitor &mon,
|
|
|
|
AP_BattMonitor::BattMonitor_State &mon_state,
|
2021-06-18 18:16:06 -03:00
|
|
|
AP_BattMonitor_Params ¶ms);
|
2020-01-16 14:54:18 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
void timer(void) override;
|
|
|
|
|
|
|
|
uint8_t _cell_count;
|
2021-02-02 23:32:45 -04:00
|
|
|
|
|
|
|
static const constexpr uint8_t max_cell_count = 10;
|
2020-01-16 14:54:18 -04:00
|
|
|
};
|
2023-03-06 22:02:49 -04:00
|
|
|
|
|
|
|
#endif // AP_BATTERY_SMBUS_NEODESIGN_ENABLED
|