From 1e047f5ed81a6d51601fe4aa049f6eb5aef0a18b Mon Sep 17 00:00:00 2001 From: atef Date: Mon, 5 Feb 2024 15:30:47 +0100 Subject: [PATCH] Update Battery Strings --- csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs b/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs index 1939f8e47..0060f6816 100644 --- a/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs +++ b/csharp/Lib/Devices/Battery48TL/Battery48TlRecord.Api.cs @@ -15,7 +15,8 @@ public partial class Battery48TlRecord public Dc_ Dc => new Dc_(this); public Leds_ Leds => new Leds_(this); public Temperatures_ Temperatures => new Temperatures_(this); - + public StringActive_ BatteryStrings => new StringActive_(this); + public Boolean ConnectedToDcBus => (_IoStates & 1) == 0; public Boolean Eoc => Leds is { Green: On, Amber: Off, Blue : Off }; public UInt16 IoStates => _IoStates; @@ -55,7 +56,7 @@ public partial class Battery48TlRecord } - public readonly struct _StringActive + public readonly struct StringActive_ { public Boolean String1Active => (Self._LimpBitMap & 1) == 0; public Boolean String2Active => (Self._LimpBitMap & 2) == 0; @@ -63,7 +64,7 @@ public partial class Battery48TlRecord public Boolean String4Active => (Self._LimpBitMap & 8) == 0; public Boolean String5Active => (Self._LimpBitMap & 16) == 0; - internal _StringActive(Battery48TlRecord self) => Self = self; + internal StringActive_(Battery48TlRecord self) => Self = self; private Battery48TlRecord Self { get; } }