Method FromInt64
FromInt64(int, MessageType, long)
Returns a HarpMessage with the specified address, message type, and a single value 64-bit signed integer payload.
public static HarpMessage FromInt64(int address, MessageType messageType, long value)
Parameters
addressintThe address of the register to which the Harp message refers to.
messageTypeMessageTypeThe type of the Harp message.
valuelongThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type and payload.
FromInt64(int, int, MessageType, long)
Returns a HarpMessage with the specified address, message type, port, and a single value 64-bit signed integer payload.
public static HarpMessage FromInt64(int address, int port, MessageType messageType, long value)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
messageTypeMessageTypeThe type of the Harp message.
valuelongThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, and payload.
FromInt64(int, double, MessageType, long)
Returns a HarpMessage with the specified address, message type, timestamp, and a single value 64-bit signed integer payload.
public static HarpMessage FromInt64(int address, double timestamp, MessageType messageType, long value)
Parameters
addressintThe address of the register to which the Harp message refers to.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
valuelongThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, timestamp, and payload.
FromInt64(int, int, double, MessageType, long)
Returns a HarpMessage with the specified address, message type, port, timestamp, and a single value 64-bit signed integer payload.
public static HarpMessage FromInt64(int address, int port, double timestamp, MessageType messageType, long value)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
valuelongThe value to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.
FromInt64(int, MessageType, params long[])
Returns a HarpMessage with the specified address, message type, and an array payload of 64-bit signed integers.
public static HarpMessage FromInt64(int address, MessageType messageType, params long[] values)
Parameters
addressintThe address of the register to which the Harp message refers to.
messageTypeMessageTypeThe type of the Harp message.
valueslong[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type and payload.
FromInt64(int, int, MessageType, params long[])
Returns a HarpMessage with the specified address, message type, port, and an array payload of 64-bit signed integers.
public static HarpMessage FromInt64(int address, int port, MessageType messageType, params long[] values)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
messageTypeMessageTypeThe type of the Harp message.
valueslong[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, and payload.
FromInt64(int, double, MessageType, params long[])
Returns a HarpMessage with the specified address, message type, timestamp, and an array payload of 64-bit signed integers.
public static HarpMessage FromInt64(int address, double timestamp, MessageType messageType, params long[] values)
Parameters
addressintThe address of the register to which the Harp message refers to.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
valueslong[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, timestamp, and payload.
FromInt64(int, int, double, MessageType, params long[])
Returns a HarpMessage with the specified address, message type, port, timestamp, and an array payload of 64-bit signed integers.
public static HarpMessage FromInt64(int address, int port, double timestamp, MessageType messageType, params long[] values)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
valueslong[]The values to be stored in the payload.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.