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