Table of Contents

Method ReadReverseSwitchAsync

Namespace
Harp.SyringePump
Assembly
Harp.SyringePump.dll

ReadReverseSwitchAsync(CancellationToken)

Asynchronously reads the contents of the ReverseSwitch register.

public Task<ReverseSwitchState> ReadReverseSwitchAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<ReverseSwitchState>

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