Method WriteUInt16
WriteUInt16(int, ushort)
Returns a HarpMessage write command with the specified address, and a single value 16-bit unsigned integer payload.
public static HarpMessage WriteUInt16(int address, ushort value)
Parameters
address
intThe address of the register to which the Harp message refers to.
value
ushortThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage write command with the specified address and payload.
WriteUInt16(int, params ushort[])
Returns a HarpMessage write command with the specified address, and an array payload of 16-bit unsigned integers.
public static HarpMessage WriteUInt16(int address, params ushort[] values)
Parameters
address
intThe address of the register to which the Harp message refers to.
values
ushort[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage write command with the specified address and payload.