2023-02-16 12:57:06 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
using InnovEnergy.Lib.Protocols.Modbus.Conversions;
|
2023-02-23 12:45:09 +00:00
|
|
|
using InnovEnergy.Lib.StatusApi.Connections;
|
|
|
|
using InnovEnergy.Lib.StatusApi.Devices;
|
2023-02-16 12:57:06 +00:00
|
|
|
|
|
|
|
namespace InnovEnergy.Lib.Devices.Battery48TL;
|
|
|
|
|
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
2023-02-23 12:45:09 +00:00
|
|
|
public record Battery48TLStatus
|
|
|
|
(
|
|
|
|
DcConnection Dc,
|
|
|
|
Decimal Soc,
|
|
|
|
Decimal Temperature,
|
|
|
|
//Decimal Current,
|
|
|
|
//Decimal Voltage,
|
|
|
|
Decimal BusVoltage,
|
|
|
|
LedState GreenLed,
|
|
|
|
LedState AmberLed,
|
|
|
|
LedState BlueLed,
|
|
|
|
LedState RedLed,
|
|
|
|
IReadOnlyList<String> Warnings,
|
|
|
|
IReadOnlyList<String> Alarms,
|
|
|
|
Boolean MainSwitchClosed,
|
|
|
|
Boolean AlarmOutActive,
|
|
|
|
Boolean InternalFanActive,
|
|
|
|
Boolean VoltMeasurementAllowed,
|
|
|
|
Boolean AuxRelay,
|
|
|
|
Boolean RemoteState,
|
|
|
|
Boolean HeaterOn,
|
|
|
|
Boolean EocReached,
|
|
|
|
Boolean BatteryCold,
|
|
|
|
Decimal MaxChargingPower,
|
|
|
|
Decimal MaxDischargingPower
|
|
|
|
)
|
|
|
|
: Battery(Dc, Soc, Temperature)
|
2023-02-16 12:57:06 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|