Method Write
Write(int, PayloadType, params byte[])
Returns a HarpMessage write command with the specified address, and payload.
public static HarpMessage Write(int address, PayloadType payloadType, params byte[] payload)
Parameters
address
intThe address of the register to which the Harp message refers to.
payloadType
PayloadTypeThe type of data available in the message payload.
payload
byte[]The raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage write command with the specified address and payload.
Write(int, PayloadType, ArraySegment<byte>)
Returns a HarpMessage write command with the specified address, and payload data stored in the specified array segment.
public static HarpMessage Write(int address, PayloadType payloadType, ArraySegment<byte> payload)
Parameters
address
intThe address of the register to which the Harp message refers to.
payloadType
PayloadTypeThe type of data available in the message payload.
payload
ArraySegment<byte>An array segment containing the raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage write command with the specified address and payload.