BowlerKernel
|
Private Member Functions | |
void | fireValueChanged (boolean value) |
Private Attributes | |
ArrayList< IDigitalInputListener > | listeners = new ArrayList<IDigitalInputListener>() |
The Class DigitalInputChannel.
Definition at line 30 of file DigitalInputChannel.java.
com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.DigitalInputChannel | ( | DyIOChannel | channel, |
boolean | async | ||
) |
channel | The channel object to set up as a Digital Input |
async | if this should be in async mode |
Definition at line 43 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.DyIOChannel.addChannelEventListener(), com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.channel, com.neuronrobotics.sdk.dyio.DyIOChannelMode.DIGITAL_IN, com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getChannel(), and com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.setMode().
com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.DigitalInputChannel | ( | int | channel | ) |
Constructor. Creates an counter input input channel that is syncronous only by default.
channel | - the channel object requested from the DyIO |
Definition at line 57 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.channel, com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getChannel(), and com.neuronrobotics.sdk.common.DeviceManager.getSpecificDevice().
com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.DigitalInputChannel | ( | DyIO | dyio, |
int | channel | ||
) |
Constructor. Creates an counter input input channel that is syncronous only by default.
dyio | the dyio |
channel | - the channel object requested from the DyIO |
Definition at line 68 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.channel, and com.neuronrobotics.sdk.dyio.DyIO.getChannel().
com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.DigitalInputChannel | ( | DyIOChannel | channel | ) |
Constructor. Creates an counter input input channel that is syncronous only by default.
channel | - the channel object requested from the DyIO |
Definition at line 78 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.channel.
void com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.addDigitalInputListener | ( | IDigitalInputListener | l | ) |
addDigitalInputListener.
l | add the specified listener |
Definition at line 127 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.listeners.
|
private |
Fire value changed.
value | the value |
Definition at line 140 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.listeners.
Referenced by com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.onChannelEvent().
boolean com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.hasAsync | ( | ) |
This method is to check if this peripheral is capable to be set as up as asynchronous.
Reimplemented from com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.
Definition at line 158 of file DigitalInputChannel.java.
boolean com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.isHigh | ( | ) |
isHigh.
Definition at line 87 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.getValue().
void com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.onChannelEvent | ( | DyIOChannelEvent | e | ) |
On channel event.
e | the e |
Implements com.neuronrobotics.sdk.dyio.IChannelEventListener.
Definition at line 150 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.fireValueChanged(), and com.neuronrobotics.sdk.dyio.DyIOChannelEvent.getUnsignedValue().
void com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.removeAllDigitalInputListeners | ( | ) |
removeAllDigitalInputListeners remove all the listeners.
Definition at line 103 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.listeners.
void com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.removeDigitalInputListener | ( | IDigitalInputListener | l | ) |
removeDigitalInputListener.
l | remove the specified listener |
Definition at line 113 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.listeners.
void com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.setAsync | ( | boolean | isAsync | ) |
Set the channel to be asynchronous or synchronous.
isAsync | - true if the channel should be set to asynchronous and synchronous, false if synchronous only |
Reimplemented from com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.
Definition at line 96 of file DigitalInputChannel.java.
References com.neuronrobotics.sdk.dyio.DyIOChannelMode.DIGITAL_IN, and com.neuronrobotics.sdk.dyio.peripherals.DyIOAbstractPeripheral.setMode().
|
private |
The listeners.
Definition at line 33 of file DigitalInputChannel.java.
Referenced by com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.addDigitalInputListener(), com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.fireValueChanged(), com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.removeAllDigitalInputListeners(), and com.neuronrobotics.sdk.dyio.peripherals.DigitalInputChannel.removeDigitalInputListener().