2using System.Collections.Generic;
34 byte temporaryOffTime,
37 ushort temporaryTimer,
40 byte permanentOffTime,
122 internal IEnumerable<byte> BuildData()
135 temporaryTimerBytes[0],
136 temporaryTimerBytes[1],
158 Message.ConvertBytesToUnsignedShort(data.Slice(7, 2)),
209#pragma warning disable CS1591
218#pragma warning restore CS1591
A base message class for sending or replying.
byte LedNumber
Gets the LED number.
ReaderLedControl(byte readerNumber, byte ledNumber, TemporaryReaderControlCode temporaryMode, byte temporaryOnTime, byte temporaryOffTime, LedColor temporaryOnColor, LedColor temporaryOffColor, ushort temporaryTimer, PermanentReaderControlCode permanentMode, byte permanentOnTime, byte permanentOffTime, LedColor permanentOnColor, LedColor permanentOffColor)
Initializes a new instance of the ReaderLedControl class.
byte TemporaryOffTime
Gets the temporary off time in units of 100ms.
static ReaderLedControl ParseData(ReadOnlySpan< byte > data)
Parses the message payload bytes.
byte ReaderNumber
Gets the reader number starting at 0.
LedColor TemporaryOffColor
Gets the color of the temporary off.
PermanentReaderControlCode PermanentMode
Gets the permanent mode.
LedColor PermanentOffColor
Gets the color of the permanent off.
TemporaryReaderControlCode TemporaryMode
Gets the temporary mode.
LedColor TemporaryOnColor
Gets the color of the temporary on.
byte TemporaryOnTime
Gets the temporary on time in units of 100ms.
LedColor PermanentOnColor
Gets the color of the permanent on.
byte PermanentOffTime
Gets the permanent off time in units of 100ms.
ushort TemporaryTimer
Gets the temporary timer in units of 100ms.
byte PermanentOnTime
Gets the permanent on time in units of 100ms.
PermanentReaderControlCode
Permanent control code values.
@ SetPermanentState
Set the permanent state as given.
@ Nop
NOP – do not alter this output.
TemporaryReaderControlCode
Temporary control code values.
@ SetTemporaryAndStartTimer
Set the temporary state as given and start timer immediately.
@ CancelAnyTemporaryAndDisplayPermanent
Cancel any temporary operation and display this LED's permanent state immediately.