ioio.lib.api
Class Sequencer.ChannelConfigPwmSpeed

java.lang.Object
  extended by ioio.lib.api.Sequencer.ChannelConfigPwmSpeed
All Implemented Interfaces:
Sequencer.ChannelConfig
Enclosing interface:
Sequencer

public static class Sequencer.ChannelConfigPwmSpeed
extends java.lang.Object
implements Sequencer.ChannelConfig

Configuration for a channel of type PWM speed.

PWM speed channels are channels in which a PWM signal is generated, and the pulse width controls the speed of the actuator. A good example is a DC motor. The main difference from a PWM position channel is that the position channel will go back to its initial pulse width during a stall event.


Field Summary
 Sequencer.Clock clk
          The clock rate for this channel (cannot be changed on a per-cue basis).
 int initialPulseWidth
          The initial pulse width (before any cue is executed), in time-base units, determined by clk.
 int period
          The PWM period, in time-base units, determined by clk.
 DigitalOutput.Spec[] pinSpec
          Specification of the output pin(s) for this channel.
 
Constructor Summary
Sequencer.ChannelConfigPwmSpeed(Sequencer.Clock clk, int period, int initialPulseWidth, DigitalOutput.Spec... pinSpec)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pinSpec

public final DigitalOutput.Spec[] pinSpec
Specification of the output pin(s) for this channel.


clk

public final Sequencer.Clock clk
The clock rate for this channel (cannot be changed on a per-cue basis).


period

public final int period
The PWM period, in time-base units, determined by clk. Valid values are [2..65536].


initialPulseWidth

public final int initialPulseWidth
The initial pulse width (before any cue is executed), in time-base units, determined by clk. Valid values are 0 or [2..65536]. Also used in the event of a stall.

Constructor Detail

Sequencer.ChannelConfigPwmSpeed

public Sequencer.ChannelConfigPwmSpeed(Sequencer.Clock clk,
                                       int period,
                                       int initialPulseWidth,
                                       DigitalOutput.Spec... pinSpec)
Constructor.

Parameters:
clk - See clk.
period - See period.
initialPulseWidth - See initialPulseWidth.
pinSpec - See pinSpec.