public abstract class DigitalSource extends InterruptableSensorBase
Modifier and Type | Field and Description |
---|---|
protected static Resource |
channels |
protected int |
m_channel |
protected ByteBuffer |
m_port |
interrupts, m_interrupt, m_interruptIndex, m_isSynchronousInterrupt
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPDPChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond
Constructor and Description |
---|
DigitalSource() |
Modifier and Type | Method and Description |
---|---|
void |
free()
Free the resources used by this object
|
boolean |
getAnalogTriggerForRouting()
Is this an analog trigger
|
int |
getChannelForRouting()
Get the channel routing number
|
byte |
getModuleForRouting()
Get the module routing number
|
protected void |
initDigitalPort(int channel,
boolean input) |
allocateInterrupts, cancelInterrupts, disableInterrupts, enableInterrupts, readFallingTimestamp, readRisingTimestamp, requestInterrupts, requestInterrupts, setUpSourceEdge, waitForInterrupt, waitForInterrupt
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModule
protected static Resource channels
protected ByteBuffer m_port
protected int m_channel
protected void initDigitalPort(int channel, boolean input)
public void free()
SensorBase
free
in class SensorBase
public int getChannelForRouting()
public byte getModuleForRouting()
public boolean getAnalogTriggerForRouting()
Copyright © 2015. All rights reserved.