Table of Contents

Method WriteSingleAsync

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

WriteSingleAsync(int, float, CancellationToken)

Asynchronously writes a value to a single-precision floating point register with the specified address.

public Task WriteSingleAsync(int address, float value, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

value float

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.

WriteSingleAsync(int, float[], CancellationToken)

Asynchronously writes an array of values to a single-precision floating point register with the specified address.

public Task WriteSingleAsync(int address, float[] values, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

values float[]

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.