public class DigitalInput extends DigitalSource implements Sendable
InterruptableSensorBase.WaitResultm_interrupt, m_isSynchronousInterruptkAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPCMModules, kPDPChannels, kPDPModules, kPwmChannels, kRelayChannels, kSolenoidChannels, kSystemClockTicksPerMicrosecond| Constructor and Description |
|---|
DigitalInput(int channel)
Create an instance of a Digital Input class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Frees the resources for this output.
|
boolean |
get()
Get the value from a digital input channel.
|
int |
getAnalogTriggerTypeForRouting()
Get the analog trigger type.
|
int |
getChannel()
Get the channel of the digital input.
|
int |
getPortHandleForRouting()
Get the HAL Port Handle.
|
void |
initSendable(SendableBuilder builder)
Initializes this
Sendable object. |
boolean |
isAnalogTrigger()
Is this an analog trigger.
|
allocateInterrupts, cancelInterrupts, disableInterrupts, enableInterrupts, readFallingTimestamp, readRisingTimestamp, requestInterrupts, requestInterrupts, setUpSourceEdge, waitForInterrupt, waitForInterruptcheckAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModuleaddChild, getName, getSubsystem, setName, setName, setName, setSubsystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getSubsystem, setName, setName, setSubsystempublic DigitalInput(int channel)
channel - the DIO channel for the digital input 0-9 are on-board, 10-25 are on the MXPpublic void free()
free in class InterruptableSensorBasepublic boolean get()
public int getChannel()
getChannel in class DigitalSourcepublic int getAnalogTriggerTypeForRouting()
getAnalogTriggerTypeForRouting in class InterruptableSensorBasepublic boolean isAnalogTrigger()
isAnalogTrigger in class DigitalSourcepublic int getPortHandleForRouting()
getPortHandleForRouting in class InterruptableSensorBasepublic void initSendable(SendableBuilder builder)
SendableSendable object.initSendable in interface Sendablebuilder - sendable builder