Table of Contents

Method ReadTimestampedLed0MaxCurrentAsync

Namespace
Harp.Behavior
Assembly
Harp.Behavior.dll

ReadTimestampedLed0MaxCurrentAsync(CancellationToken)

Asynchronously reads the timestamped payload of the Led0MaxCurrent register.

public Task<Timestamped<byte>> ReadTimestampedLed0MaxCurrentAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The token to monitor for cancellation requests. The default value is None.

Returns

Task<Timestamped<byte>>

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

Exceptions

HarpException

The device replied to the read request with an error. This exception is stored into the returned task.

OperationCanceledException

The cancellation token was canceled. This exception is stored into the returned task.