Class ConfigurePwm
- Namespace
- Harp.OutputExpander
- Assembly
- Harp.OutputExpander.dll
Represents an operator that generates a sequence of Harp messages to configure the PWM feature.
public class ConfigurePwm : Source<HarpMessage>
- Inheritance
-
ConfigurePwm
- Inherited Members
Properties
DutyCycle
Gets or sets the duty cycle of the PWM. The maximum value is 100%.
public float DutyCycle { get; set; }
Property Value
EventConfig
Gets or sets a value specifying whether generation of events for the PWM is enabled.
public EnableFlag EventConfig { get; set; }
Property Value
Frequency
Gets or sets the frequency of the PWM. The maximum frequency is 1000Hz.
public float Frequency { get; set; }
Property Value
PulseCount
Gets or sets the number of pulses to trigger on the specified PWM. If the default value of zero is specified, the PWM will be infinite.
public int PulseCount { get; set; }
Property Value
PwmChannels
Gets or sets the PWM protocol channels to configure.
public PwmChannels PwmChannels { get; set; }
Property Value
TriggerSource
Gets or sets the trigger source of the PWM.
public TriggerSource TriggerSource { get; set; }
Property Value
Methods
Generate()
Generates an observable sequence of Harp messages to configure the PWM feature.
public override IObservable<HarpMessage> Generate()
Returns
- IObservable<HarpMessage>
A sequence of HarpMessage objects representing the commands needed to fully configure the PWM feature.
Generate<TSource>(IObservable<TSource>)
Generates an observable sequence of Harp messages to configure the PWM feature whenever the source sequence emits a notification.
public IObservable<HarpMessage> Generate<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used to emit new configuration messages.
Returns
- IObservable<HarpMessage>
A sequence of HarpMessage objects representing the commands needed to fully configure the PWM feature.
Type Parameters
TSource
The type of the elements in the
source
sequence.