Beispiel #1
0
 public static bool Is28Or128SpeedSteps(this CV29Flags flags) =>
 (flags & CV29Flags.SpeedSteps28or128) > 0;
Beispiel #2
0
 public static bool IsRailComEnabled(this CV29Flags flags) =>
 (flags & CV29Flags.RaicomActive) > 0;
Beispiel #3
0
 public static CV29Flags WithRailComDisabled(this CV29Flags flags) =>
 flags &= ~CV29Flags.RaicomActive;
Beispiel #4
0
 public static CV29Flags WithDisabledAnalogOperation(this CV29Flags flags) =>
 flags &= ~CV29Flags.AnalogOperation;
Beispiel #5
0
 public static bool IsAnalogOperationEnabled(this CV29Flags flags) =>
 (flags & CV29Flags.AnalogOperation) > 0;
Beispiel #6
0
 public static CV29Flags WithLongAddress(this CV29Flags flags) =>
 flags |= CV29Flags.ExtendedAddresInUse;
Beispiel #7
0
 public static CV29Flags WithShortAddress(this CV29Flags flags) =>
 flags &= ~CV29Flags.ExtendedAddresInUse;
Beispiel #8
0
 public static bool IsLongAddress(this CV29Flags flags) =>
 (flags & CV29Flags.ExtendedAddresInUse) > 0;