Table of Contents

Method WriteUInt16Async

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

WriteUInt16Async(int, ushort, CancellationToken)

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

public Task WriteUInt16Async(int address, ushort value, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

value ushort

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.

WriteUInt16Async(int, ushort[], CancellationToken)

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

public Task WriteUInt16Async(int address, ushort[] values, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

values ushort[]

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.