Method ReadForwardSwitchAsync
- Namespace
- Harp.SyringePump
- Assembly
- Harp.SyringePump.dll
ReadForwardSwitchAsync(CancellationToken)
Asynchronously reads the contents of the ForwardSwitch register.
public Task<ForwardSwitchState> ReadForwardSwitchAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken which can be used to cancel the operation.
Returns
- Task<ForwardSwitchState>
A task that represents the asynchronous read operation. The Result property contains the register payload.