Table of Contents

Method ReadByteAsync

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

ReadByteAsync(int, CancellationToken)

Asynchronously reads the value of an 8-bit unsigned integer register with the specified address.

public Task<byte> ReadByteAsync(int address, CancellationToken cancellationToken = default)

Parameters

address int

The address of the register to read.

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<byte>

A task that represents the asynchronous read operation. The Result property contains the value of the register.