Table of Contents

Method FromInt32

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

FromInt32(int, MessageType, int)

Returns a HarpMessage with the specified address, message type, and a single value 32-bit signed integer payload.

public static HarpMessage FromInt32(int address, MessageType messageType, int value)

Parameters

address int

The address of the register to which the Harp message refers to.

messageType MessageType

The type of the Harp message.

value int

The value to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type and payload.

FromInt32(int, int, MessageType, int)

Returns a HarpMessage with the specified address, message type, port, and a single value 32-bit signed integer payload.

public static HarpMessage FromInt32(int address, int port, MessageType messageType, int value)

Parameters

address int

The address of the register to which the Harp message refers to.

port int

The origin or destination of the Harp message, for routing purposes.

messageType MessageType

The type of the Harp message.

value int

The value to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type, port, and payload.

FromInt32(int, double, MessageType, int)

Returns a HarpMessage with the specified address, message type, timestamp, and a single value 32-bit signed integer payload.

public static HarpMessage FromInt32(int address, double timestamp, MessageType messageType, int value)

Parameters

address int

The address of the register to which the Harp message refers to.

timestamp double

The timestamp of the message payload, in seconds.

messageType MessageType

The type of the Harp message.

value int

The value to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type, timestamp, and payload.

FromInt32(int, int, double, MessageType, int)

Returns a HarpMessage with the specified address, message type, port, timestamp, and a single value 32-bit signed integer payload.

public static HarpMessage FromInt32(int address, int port, double timestamp, MessageType messageType, int value)

Parameters

address int

The address of the register to which the Harp message refers to.

port int

The origin or destination of the Harp message, for routing purposes.

timestamp double

The timestamp of the message payload, in seconds.

messageType MessageType

The type of the Harp message.

value int

The value to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.

FromInt32(int, MessageType, params int[])

Returns a HarpMessage with the specified address, message type, and an array payload of 32-bit signed integers.

public static HarpMessage FromInt32(int address, MessageType messageType, params int[] values)

Parameters

address int

The address of the register to which the Harp message refers to.

messageType MessageType

The type of the Harp message.

values int[]

The values to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type and payload.

FromInt32(int, int, MessageType, params int[])

Returns a HarpMessage with the specified address, message type, port, and an array payload of 32-bit signed integers.

public static HarpMessage FromInt32(int address, int port, MessageType messageType, params int[] values)

Parameters

address int

The address of the register to which the Harp message refers to.

port int

The origin or destination of the Harp message, for routing purposes.

messageType MessageType

The type of the Harp message.

values int[]

The values to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type, port, and payload.

FromInt32(int, double, MessageType, params int[])

Returns a HarpMessage with the specified address, message type, timestamp, and an array payload of 32-bit signed integers.

public static HarpMessage FromInt32(int address, double timestamp, MessageType messageType, params int[] values)

Parameters

address int

The address of the register to which the Harp message refers to.

timestamp double

The timestamp of the message payload, in seconds.

messageType MessageType

The type of the Harp message.

values int[]

The values to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type, timestamp, and payload.

FromInt32(int, int, double, MessageType, params int[])

Returns a HarpMessage with the specified address, message type, port, timestamp, and an array payload of 32-bit signed integers.

public static HarpMessage FromInt32(int address, int port, double timestamp, MessageType messageType, params int[] values)

Parameters

address int

The address of the register to which the Harp message refers to.

port int

The origin or destination of the Harp message, for routing purposes.

timestamp double

The timestamp of the message payload, in seconds.

messageType MessageType

The type of the Harp message.

values int[]

The values to be stored in the payload.

Returns

HarpMessage

A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.