Method ReadPulseTrainGP19Async
- Namespace
- Harp.Hobgoblin
- Assembly
- Harp.Hobgoblin.dll
ReadPulseTrainGP19Async(CancellationToken)
Asynchronously reads the payload of the PulseTrainGP19 register.
public Task<PulseTrainGP19Payload> ReadPulseTrainGP19Async(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe token to monitor for cancellation requests. The default value is None.
Returns
- Task<PulseTrainGP19Payload>
A task that represents the asynchronous read operation. The value of its Result property contains the register payload.
Exceptions
- HarpException
The device replied to the read request with an error. This exception is stored into the returned task.
- OperationCanceledException
The cancellation token was canceled. This exception is stored into the returned task.