Table of Contents

Method GetTimestampedPayloadUInt16

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

GetTimestampedPayloadUInt16()

Returns the message payload as a single 16-bit unsigned integer and gets the message timestamp.

public Timestamped<ushort> GetTimestampedPayloadUInt16()

Returns

Timestamped<ushort>

A timestamped ushort representing the message payload.

Exceptions

InvalidOperationException

The message does not have a timestamped payload.

GetTimestampedPayloadUInt16(int)

Returns the element at the specified index of the 16-bit unsigned integer array payload and gets the message timestamp.

public Timestamped<ushort> GetTimestampedPayloadUInt16(int index)

Parameters

index int

The zero-based index of the array element to get.

Returns

Timestamped<ushort>

A timestamped ushort representing the element at the specified index of the array payload.

Exceptions

InvalidOperationException

The message does not have a timestamped payload.