ioio.lib.api
Class Sequencer.ChannelConfigPwmPosition

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

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

Configuration for a channel of type PWM Position.

PWM position channels are channels in which a PWM signal is generated, and the pulse width controls the position of the actuator. A good example is a hobby servo motor. The main difference from a PWM speed channel is that the position channel will retain its 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.ChannelConfigPwmPosition(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].

Constructor Detail

Sequencer.ChannelConfigPwmPosition

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

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