Method WritePulseTrainGP16Async
- Namespace
- Harp.Hobgoblin
- Assembly
- Harp.Hobgoblin.dll
WritePulseTrainGP16Async(PulseTrainGP16Payload, CancellationToken)
Asynchronously writes the specified payload to the PulseTrainGP16 register.
public Task WritePulseTrainGP16Async(PulseTrainGP16Payload value, CancellationToken cancellationToken = default)
Parameters
valuePulseTrainGP16PayloadThe payload to write to the register.
cancellationTokenCancellationTokenThe token to monitor for cancellation requests. The default value is None.
Returns
- Task
A task that represents the asynchronous write operation.
Exceptions
- HarpException
The device replied to the write 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.