Table of Contents

Method WriteSByteAsync

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

WriteSByteAsync(int, sbyte, CancellationToken)

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

public Task WriteSByteAsync(int address, sbyte value, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

value sbyte

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.

WriteSByteAsync(int, sbyte[], CancellationToken)

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

public Task WriteSByteAsync(int address, sbyte[] values, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

values sbyte[]

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.