|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Manufacture specific command data sent to a PD. More...
Public Member Functions | |
| ManufacturerSpecific (byte[] vendorCode, byte[] data) | |
| Initializes a new instance of the ManufacturerSpecific class. | |
| override ReadOnlySpan< byte > | SecurityControlBlock () |
| override byte[] | BuildData () |
| override string | ToString () |
| Public Member Functions inherited from OSDP.Net.Model.PayloadData | |
| byte[] | BuildData () |
| Converts the payload into a byte array to be sent over the wire. | |
| ReadOnlySpan< byte > | SecurityControlBlock () |
| Retrieves the security control block for a specific command data type. | |
| virtual void | CustomMessageUpdate (Span< byte > messageBuffer) |
| Updates the message data before sending in the specified byte buffer. | |
Static Public Member Functions | |
| static ManufacturerSpecific | ParseData (ReadOnlySpan< byte > data) |
| Parses the message payload bytes. | |
Properties | |
| byte[] | VendorCode [get] |
| Gets the vendor code. | |
| byte[] | Data [get] |
| Gets the manufacture specific data. | |
| override CommandType | CommandType [get] |
| override byte | Code [get] |
| Properties inherited from OSDP.Net.Model.CommandData.CommandData | |
| CommandType | CommandType [get] |
| Message command code. | |
| Properties inherited from OSDP.Net.Model.PayloadData | |
| byte | Code [get] |
| Gets the command or reply code byte value that represent the type of data. | |
| virtual bool | IsSecurityInitialization [get] |
| Gets a value indicating whether the security initialization is performed by this payload. | |
Additional Inherited Members | |
| Static Protected Member Functions inherited from OSDP.Net.Model.CommandData.CommandData | |
| static T[] | SplitData< T > (int size, Func< byte[], T > parseDataFunction, ReadOnlySpan< byte > payloadData) |
| Splits data into multiple elements of type T based on a specified size. | |
Manufacture specific command data sent to a PD.
Definition at line 13 of file ManufacturerSpecific.cs.
|
inline |
Initializes a new instance of the ManufacturerSpecific class.
| vendorCode | The vendor code. |
| data | The manufacture specific data. |
| ArgumentNullException | vendorCode |
| ArgumentNullException | data |
| ArgumentOutOfRangeException | vendorCode |
Definition at line 23 of file ManufacturerSpecific.cs.
References Data, and VendorCode.
Referenced by ParseData().
|
inline |
Definition at line 51 of file ManufacturerSpecific.cs.
References Data, and VendorCode.
|
inlinestatic |
Parses the message payload bytes.
| data | Message payload as bytes |
Definition at line 66 of file ManufacturerSpecific.cs.
References ManufacturerSpecific().
Referenced by OSDP.Net.Device.EnqueuePollReply(), OSDP.Net.ControlPanel.ManufacturerSpecificCommand(), and OSDP.Net.Model.Packet.ParsePayloadData().
|
inline |
Definition at line 75 of file ManufacturerSpecific.cs.
|
get |
Definition at line 45 of file ManufacturerSpecific.cs.
|
get |
Definition at line 42 of file ManufacturerSpecific.cs.
|
get |
Gets the manufacture specific data.
Definition at line 39 of file ManufacturerSpecific.cs.
Referenced by BuildData(), and ManufacturerSpecific().
|
get |
Gets the vendor code.
Definition at line 34 of file ManufacturerSpecific.cs.
Referenced by BuildData(), and ManufacturerSpecific().