Class CreatePwm1DutyCyclePayload
- Namespace
- Harp.OutputExpander
- Assembly
- Harp.OutputExpander.dll
Represents an operator that creates a message payload that sets the duty cycle of PWM1 (%).
public class CreatePwm1DutyCyclePayload
- Inheritance
-
CreatePwm1DutyCyclePayload
- Derived
- Inherited Members
Properties
Pwm1DutyCycle
Gets or sets the value that sets the duty cycle of PWM1 (%).
[Range(1, 100)]
public float Pwm1DutyCycle { get; set; }
Property Value
Methods
GetMessage(MessageType)
Creates a message that sets the duty cycle of PWM1 (%).
public HarpMessage GetMessage(MessageType messageType)
Parameters
messageType
MessageTypeSpecifies the type of the created message.
Returns
- HarpMessage
A new message for the Pwm1DutyCycle register.
GetPayload()
Creates a message payload for the Pwm1DutyCycle register.
public float GetPayload()
Returns
- float
The created message payload value.