Table of Contents

Method ReadDigitalInputStateAsync

Namespace
Harp.StepperDriver
Assembly
Harp.StepperDriver.dll

ReadDigitalInputStateAsync(CancellationToken)

Asynchronously reads the contents of the DigitalInputState register.

public Task<DigitalInputStates> ReadDigitalInputStateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<DigitalInputStates>

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