Table of Contents

Method WriteMimicPort0ValveAsync

Namespace
Harp.Behavior
Assembly
Harp.Behavior.dll

WriteMimicPort0ValveAsync(MimicOutput, CancellationToken)

Asynchronously writes the specified payload to the MimicPort0Valve register.

public Task WriteMimicPort0ValveAsync(MimicOutput value, CancellationToken cancellationToken = default)

Parameters

value MimicOutput

The payload to write to the register.

cancellationToken CancellationToken

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

Returns

Task

A task that represents the asynchronous write operation.

Exceptions

HarpException

The device replied to the write 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.