Table of Contents

Struct LoraMaskControl

Namespace
Pamoja.Lora
Assembly
Pamoja.Lora.dll

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

Kind LoraMaskControlKind

What the value does.

Group byte?

For Group, the group the mask sets.

On bool?

For All, whether every channel turns on.

ThenGroup byte?

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

LoraMaskControlKind

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

on bool

Whether every channel turns on.

thenGroup byte?

The group the mask then sets, if any.

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

group byte

The 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.