Struct LoraMaskControl
What one ChMaskCntl value does.
public readonly record struct LoraMaskControl : IEquatable<LoraMaskControl>
- Implements
- Inherited Members
Constructors
LoraMaskControl(LoraMaskControlKind, byte?, bool?, byte?)
What one ChMaskCntl value does.
public LoraMaskControl(LoraMaskControlKind Kind, byte? Group, bool? On, byte? ThenGroup)
Parameters
KindLoraMaskControlKindWhat the value does.
Groupbyte?For Group, the group the mask sets.
Onbool?For All, whether every channel turns on.
ThenGroupbyte?For All, the group the mask then sets.
Properties
Group
For Group, the group the mask sets.
public byte? Group { get; init; }
Property Value
- byte?
Kind
What the value does.
public LoraMaskControlKind Kind { get; init; }
Property Value
On
For All, whether every channel turns on.
public bool? On { get; init; }
Property Value
- bool?
ThenGroup
For All, the group the mask then sets.
public byte? ThenGroup { get; init; }
Property Value
- byte?
Methods
AllChannels(bool, byte?)
Every channel turns on or off, then the mask sets a group if one is given.
public static LoraMaskControl AllChannels(bool on, byte? thenGroup = null)
Parameters
Returns
- LoraMaskControl
The control.
Banks()
The ten low bits of the mask switch banks of eight channels.
public static LoraMaskControl Banks()
Returns
- LoraMaskControl
The control.
OneGroup(byte)
The mask sets one group of sixteen channels.
public static LoraMaskControl OneGroup(byte group)
Parameters
groupbyteThe group.
Returns
- LoraMaskControl
The control.
PairedBanks()
The eight low bits switch banks of eight with their 500 kHz channel.
public static LoraMaskControl PairedBanks()
Returns
- LoraMaskControl
The control.
Reserved()
The value is reserved.
public static LoraMaskControl Reserved()
Returns
- LoraMaskControl
The control.