Table of Contents

Class CreatePwm2DutyCyclePayload

Namespace
Harp.OutputExpander
Assembly
Harp.OutputExpander.dll

Represents an operator that creates a message payload that sets the duty cycle of PWM2 (%).

public class CreatePwm2DutyCyclePayload
Inheritance
CreatePwm2DutyCyclePayload
Derived
Inherited Members

Properties

Pwm2DutyCycle

Gets or sets the value that sets the duty cycle of PWM2 (%).

[Range(1, 100)]
public float Pwm2DutyCycle { get; set; }

Property Value

float

Methods

GetMessage(MessageType)

Creates a message that sets the duty cycle of PWM2 (%).

public HarpMessage GetMessage(MessageType messageType)

Parameters

messageType MessageType

Specifies the type of the created message.

Returns

HarpMessage

A new message for the Pwm2DutyCycle register.

GetPayload()

Creates a message payload for the Pwm2DutyCycle register.

public float GetPayload()

Returns

float

The created message payload value.