Table of Contents

Method ReadEncoderModeAsync

Namespace
Harp.StepperDriver
Assembly
Harp.StepperDriver.dll

ReadEncoderModeAsync(CancellationToken)

Asynchronously reads the contents of the EncoderMode register.

public Task<EncoderModeConfig> ReadEncoderModeAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<EncoderModeConfig>

A task that represents the asynchronous read operation. The Result property contains the register payload.