Table of Contents

Method ReadDeviceStateAsync

Namespace
Harp.StepperDriver
Assembly
Harp.StepperDriver.dll

ReadDeviceStateAsync(CancellationToken)

Asynchronously reads the contents of the DeviceState register.

public Task<DeviceStateMode> ReadDeviceStateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<DeviceStateMode>

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