Table of Contents

Method FromSingle

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

FromSingle(int, MessageType, params float[])

Returns a HarpMessage with the specified address, message type, and an array payload of single-precision floating point numbers.

public static HarpMessage FromSingle(int address, MessageType messageType, params float[] 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 float[]

The values to be stored in the payload.

Returns

HarpMessage

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

FromSingle(int, int, MessageType, params float[])

Returns a HarpMessage with the specified address, message type, port, and an array payload of single-precision floating point numbers.

public static HarpMessage FromSingle(int address, int port, MessageType messageType, params float[] 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 float[]

The values to be stored in the payload.

Returns

HarpMessage

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

FromSingle(int, double, MessageType, params float[])

Returns a HarpMessage with the specified address, message type, timestamp, and an array payload of single-precision floating point numbers.

public static HarpMessage FromSingle(int address, double timestamp, MessageType messageType, params float[] 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 float[]

The values to be stored in the payload.

Returns

HarpMessage

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

FromSingle(int, int, double, MessageType, params float[])

Returns a HarpMessage with the specified address, message type, port, timestamp, and an array payload of single-precision floating point numbers.

public static HarpMessage FromSingle(int address, int port, double timestamp, MessageType messageType, params float[] 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 float[]

The values to be stored in the payload.

Returns

HarpMessage

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