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
addressintThe address of the register to which the Harp message refers to.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadbyte[]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
addressintThe address of the register to which the Harp message refers to.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadArraySegment<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.