OpenDTU-old/include/Battery.h
helgeerbe f560f25302 initial merge of power_limiter * missing is inverter and channel setting in gui
* due to bug _webApiPrometheus.init is commented out
2023-02-20 15:56:02 +01:00

44 lines
952 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <stdint.h>
class BatteryClass {
public:
float chargeVoltage;
float chargeCurrentLimitation;
float dischargeCurrentLimitation;
uint16_t stateOfCharge;
uint32_t stateOfChargeLastUpdate;
uint16_t stateOfHealth;
float voltage;
float current;
float temperature;
bool alarmOverCurrentDischarge;
bool alarmUnderTemperature;
bool alarmOverTemperature;
bool alarmUnderVoltage;
bool alarmOverVoltage;
bool alarmBmsInternal;
bool alarmOverCurrentCharge;
bool warningHighCurrentDischarge;
bool warningLowTemperature;
bool warningHighTemperature;
bool warningLowVoltage;
bool warningHighVoltage;
bool warningBmsInternal;
bool warningHighCurrentCharge;
char manufacturer[9];
bool chargeEnabled;
bool dischargeEnabled;
bool chargeImmediately;
private:
};
extern BatteryClass Battery;