Table of Contents

Method ReadMagneticEncoderAsync

Namespace
Harp.OutputExpander
Assembly
Harp.OutputExpander.dll

ReadMagneticEncoderAsync(CancellationToken)

Asynchronously reads the contents of the MagneticEncoder register.

public Task<MagneticEncoderPayload> ReadMagneticEncoderAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<MagneticEncoderPayload>

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