public class AnalogIO extends Interface
| Modifier and Type | Class and Description |
|---|---|
static class |
AnalogIO.AnalogChannel
The Enum Channel.
|
static class |
AnalogIO.Direction
The Enum Direction.
|
Interface.InterfaceType| Modifier and Type | Field and Description |
|---|---|
protected AnalogIO.AnalogChannel |
m_channel |
protected java.nio.ByteBuffer |
m_port |
protected java.nio.ByteBuffer |
m_portPointer |
private static boolean[] |
USED_IN_CHANNELS
Keep track of already used channels.
|
private static boolean[] |
USED_OUT_CHANNELS
The m_used out channels.
|
m_ifaceType, MAX_ANALOG_IN_CHANNELS, MAX_ANALOG_OUT_CHANNELS, MAX_DIGITAL_CHANNELS, MAX_PWM_CHANNELS, MAX_RELAY_CHANNELS| Modifier | Constructor and Description |
|---|---|
protected |
AnalogIO(AnalogIO.AnalogChannel channel,
AnalogIO.Direction dir)
Instantiates a new analog.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Release the resources used by this object
|
AnalogIO.AnalogChannel |
getChannel()
Get the AnalogChannel.
|
int |
getChannelNumber()
Get the channel number.
|
allocateMXPPin, checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPWMChannel, checkRelayChannel, freeMXPPin, getInterfaceTypeprivate static final boolean[] USED_IN_CHANNELS
private static final boolean[] USED_OUT_CHANNELS
protected final java.nio.ByteBuffer m_port
protected final java.nio.ByteBuffer m_portPointer
protected AnalogIO.AnalogChannel m_channel
protected AnalogIO(AnalogIO.AnalogChannel channel, AnalogIO.Direction dir)
channel - the channeldir - the dirpublic void free()
public final AnalogIO.AnalogChannel getChannel()
public final int getChannelNumber()