Table of Contents

Method ReadInt16ArrayAsync

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

ReadInt16ArrayAsync(int, CancellationToken)

Asynchronously reads the value of a 16-bit signed integer array register with the specified address.

public Task<short[]> ReadInt16ArrayAsync(int address, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to read.

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<short[]>

A task that represents the asynchronous read operation. The Result property contains the state of the array register.