Table of Contents

Method ReadProtocolAsync

Namespace
Harp.SyringePump
Assembly
Harp.SyringePump.dll

ReadProtocolAsync(CancellationToken)

Asynchronously reads the contents of the Protocol register.

public Task<ProtocolState> ReadProtocolAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<ProtocolState>

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