Table of Contents

Method ReadTimestampedDigitalInputStateAsync

Namespace
Harp.LedArray
Assembly
Harp.LedArray.dll

ReadTimestampedDigitalInputStateAsync(CancellationToken)

Asynchronously reads the timestamped contents of the DigitalInputState register.

public Task<Timestamped<DigitalInputs>> ReadTimestampedDigitalInputStateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<Timestamped<DigitalInputs>>

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