Compare commits

...

2 Commits

Author SHA1 Message Date
atef b61ca9264e Merge remote-tracking branch 'origin/main' 2024-02-05 15:31:00 +01:00
atef 1e047f5ed8 Update Battery Strings 2024-02-05 15:30:47 +01:00
1 changed files with 4 additions and 3 deletions

View File

@ -15,6 +15,7 @@ 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 };
@ -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; }
}