ioio.lib.api
Class Sequencer.ChannelConfigBinary

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

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

Configuration for a binary channel.

A binary channel is a simple digital output, which is driven in synchronization with the sequence. Solenoids, DC motors running at full speed (no PWM) or LED are all examples for actuators that can be controlled by a binary channel. During a stall event, the channel can be configured to either retain its last state, or go to its initial state.


Field Summary
 boolean initialValue
          Initial value for this channel (true = HIGH, false = LOW).
 boolean initWhenIdle
          When true, channel will go to initial state when stalled or stopped.
 DigitalOutput.Spec pinSpec
          Specification of the output pin(s) for this channel.
 
Constructor Summary
Sequencer.ChannelConfigBinary(boolean initialValue, boolean initWhenIdle, 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.


initialValue

public final boolean initialValue
Initial value for this channel (true = HIGH, false = LOW).


initWhenIdle

public final boolean initWhenIdle
When true, channel will go to initial state when stalled or stopped. Otherwise, channel will retain its last state.

Constructor Detail

Sequencer.ChannelConfigBinary

public Sequencer.ChannelConfigBinary(boolean initialValue,
                                     boolean initWhenIdle,
                                     DigitalOutput.Spec pinSpec)
Constructor.

Parameters:
initialValue - See initialValue.
initWhenIdle - See initWhenIdle.
pinSpec - See pinSpec.