Table of Contents

Method WriteUInt32Async

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

WriteUInt32Async(int, uint, CancellationToken)

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

public Task WriteUInt32Async(int address, uint value, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

value uint

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.

WriteUInt32Async(int, uint[], CancellationToken)

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

public Task WriteUInt32Async(int address, uint[] values, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to write.

values uint[]

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.