Table of Contents

Method ReadDirectionAsync

Namespace
Harp.SyringePump
Assembly
Harp.SyringePump.dll

ReadDirectionAsync(CancellationToken)

Asynchronously reads the contents of the Direction register.

public Task<DirectionState> ReadDirectionAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<DirectionState>

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