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