Table of Contents

Method ReadPwm2DutyCycleAsync

Namespace
Harp.OutputExpander
Assembly
Harp.OutputExpander.dll

ReadPwm2DutyCycleAsync(CancellationToken)

Asynchronously reads the contents of the Pwm2DutyCycle register.

public Task<float> ReadPwm2DutyCycleAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken which can be used to cancel the operation.

Returns

Task<float>

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