Method ReadEnableEncodersAsync
ReadEnableEncodersAsync(CancellationToken)
Asynchronously reads the contents of the EnableEncoders register.
public Task<EncoderInputs> ReadEnableEncodersAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken which can be used to cancel the operation.
Returns
- Task<EncoderInputs>
A task that represents the asynchronous read operation. The Result property contains the register payload.