|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Contains data to control the color of a single LED on a PD. More...
Public Member Functions | |
| 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. | |
Static Public Member Functions | |
| static ReaderLedControl | ParseData (ReadOnlySpan< byte > data) |
| Parses the message payload bytes. | |
Properties | |
| byte | ReaderNumber [get] |
| Gets the reader number starting at 0. | |
| byte | LedNumber [get] |
| Gets the LED number. | |
| TemporaryReaderControlCode | TemporaryMode [get] |
| Gets the temporary mode. | |
| byte | TemporaryOnTime [get] |
| Gets the temporary on time in units of 100ms. | |
| byte | TemporaryOffTime [get] |
| Gets the temporary off time in units of 100ms. | |
| LedColor | TemporaryOnColor [get] |
| Gets the color of the temporary on. | |
| LedColor | TemporaryOffColor [get] |
| Gets the color of the temporary off. | |
| ushort | TemporaryTimer [get] |
| Gets the temporary timer in units of 100ms. | |
| PermanentReaderControlCode | PermanentMode [get] |
| Gets the permanent mode. | |
| byte | PermanentOnTime [get] |
| Gets the permanent on time in units of 100ms. | |
| byte | PermanentOffTime [get] |
| Gets the permanent off time in units of 100ms. | |
| LedColor | PermanentOnColor [get] |
| Gets the color of the permanent on. | |
| LedColor | PermanentOffColor [get] |
| Gets the color of the permanent off. | |
Contains data to control the color of a single LED on a PD.
Definition at line 11 of file ReaderLedControl.cs.
|
inline |
Initializes a new instance of the ReaderLedControl class.
| readerNumber | The reader number starting at 0. |
| ledNumber | The LED number. |
| temporaryMode | The temporary mode. |
| temporaryOnTime | The temporary on time in units of 100ms. NOTE: Both On and Off time shouldn't be zero, set this to one if not needed. |
| temporaryOffTime | The temporary off time in units of 100ms. |
| temporaryOnColor | Color of the temporary on. |
| temporaryOffColor | Color of the temporary off. |
| temporaryTimer | The temporary timer in units of 100ms. |
| permanentMode | The permanent mode. |
| permanentOnTime | The permanent on time in units of 100ms. NOTE: Both On and Off time shouldn't be zero, set this to one if not needed. |
| permanentOffTime | The permanent off time in units of 100ms. |
| permanentOnColor | Color of the permanent on. |
| permanentOffColor | Color of the permanent off. |
Definition at line 29 of file ReaderLedControl.cs.
References LedNumber, PermanentMode, PermanentOffColor, PermanentOffTime, PermanentOnColor, PermanentOnTime, ReaderNumber, TemporaryMode, TemporaryOffColor, TemporaryOffTime, TemporaryOnColor, TemporaryOnTime, and TemporaryTimer.
Referenced by ParseData().
|
inlinestatic |
Parses the message payload bytes.
| data | Message payload as bytes |
Definition at line 148 of file ReaderLedControl.cs.
References ReaderLedControl().
Referenced by OSDP.Net.Model.CommandData.ReaderLedControls.ParseData().
|
get |
Gets the LED number.
Definition at line 65 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the permanent mode.
Definition at line 100 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the color of the permanent off.
Definition at line 120 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the permanent off time in units of 100ms.
Definition at line 110 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the color of the permanent on.
Definition at line 115 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the permanent on time in units of 100ms.
Definition at line 105 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the reader number starting at 0.
Definition at line 60 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the temporary mode.
Definition at line 70 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the color of the temporary off.
Definition at line 90 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the temporary off time in units of 100ms.
Definition at line 80 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the color of the temporary on.
Definition at line 85 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the temporary on time in units of 100ms.
Definition at line 75 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().
|
get |
Gets the temporary timer in units of 100ms.
Definition at line 95 of file ReaderLedControl.cs.
Referenced by ReaderLedControl().