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
addressintThe address of the register to which the Harp message refers to.
valueushortThe 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
addressintThe address of the register to which the Harp message refers to.
valuesushort[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage write command with the specified address and payload.