Table of Contents

Method WriteInt16Async

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

WriteInt16Async(int, short, CancellationToken)

Asynchronously writes a value to a 16-bit signed integer register with the specified address.

public Task WriteInt16Async(int address, short value, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

value short

The value to be stored in the register.

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task

The task object representing the asynchronous write operation.

WriteInt16Async(int, short[], CancellationToken)

Asynchronously writes an array of values to a 16-bit signed integer register with the specified address.

public Task WriteInt16Async(int address, short[] values, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

values short[]

The values to be stored in the register.

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task

The task object representing the asynchronous write operation.