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