Table of Contents

Method Write

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

Write(int, PayloadType, params byte[])

Returns a HarpMessage write command with the specified address, and payload.

public static HarpMessage Write(int address, PayloadType payloadType, params byte[] payload)

Parameters

address int

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

payloadType PayloadType

The type of data available in the message payload.

payload byte[]

The raw binary representation of the payload data.

Returns

HarpMessage

A valid HarpMessage write command with the specified address and payload.

Write(int, PayloadType, ArraySegment<byte>)

Returns a HarpMessage write command with the specified address, and payload data stored in the specified array segment.

public static HarpMessage Write(int address, PayloadType payloadType, ArraySegment<byte> payload)

Parameters

address int

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

payloadType PayloadType

The type of data available in the message payload.

payload ArraySegment<byte>

An array segment containing the raw binary representation of the payload data.

Returns

HarpMessage

A valid HarpMessage write command with the specified address and payload.