ioio.lib.api
Class Sequencer.ChannelConfigFmSpeed

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

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

Configuration for a channel of type FM speed.

FM speed channels are channels in which fixed-width pulses are generated with varying frequency, which corresponds to the actuator speed. A good example is a stepper motor in an application which requires speed control and not position control (for the latter see Sequencer.ChannelConfigSteps). An FM speed channel will idle (not produce any pulses) during a stall event.


Field Summary
 Sequencer.Clock clk
          The clock rate for this channel (cannot be changed on a per-cue basis).
 DigitalOutput.Spec[] pinSpec
          Specification of the output pin(s) for this channel.
 int pulseWidth
          The width (duration) of each pulse, in time-base units, determined by clk.
 
Constructor Summary
Sequencer.ChannelConfigFmSpeed(Sequencer.Clock clk, int pulseWidth, 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).


pulseWidth

public final int pulseWidth
The width (duration) of each pulse, in time-base units, determined by clk. Valid values are [2..65536].

Constructor Detail

Sequencer.ChannelConfigFmSpeed

public Sequencer.ChannelConfigFmSpeed(Sequencer.Clock clk,
                                      int pulseWidth,
                                      DigitalOutput.Spec... pinSpec)
Constructor.

Parameters:
clk - See clk.
pulseWidth - See pulseWidth.
pinSpec - See pinSpec.