public class DigitalInput extends DigitalSource implements LiveWindowSendable
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. | 
| java.lang.String | getSmartDashboardType()The string representation of the named data type that will be used by the smart dashboard for
 this  Sendable. | 
| ITable | getTable()The table that is associated with this  Sendable. | 
| void | initTable(ITable subtable)Initializes a table for this  Sendableobject. | 
| boolean | isAnalogTrigger()Is this an analog trigger. | 
| void | startLiveWindowMode()Start having this sendable object automatically respond to value changes reflect the value on
 the table. | 
| void | stopLiveWindowMode()Stop having this sendable object automatically respond to value changes. | 
| void | updateTable()Update the table for this sendable object with the latest values. | 
allocateInterrupts, cancelInterrupts, disableInterrupts, enableInterrupts, readFallingTimestamp, readRisingTimestamp, requestInterrupts, requestInterrupts, setUpSourceEdge, waitForInterrupt, waitForInterruptcheckAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModulepublic 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 SensorBasepublic 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 java.lang.String getSmartDashboardType()
SendableSendable.getSmartDashboardType in interface SendableSendable.public void initTable(ITable subtable)
SendableSendable object.public void updateTable()
LiveWindowSendableupdateTable in interface LiveWindowSendablepublic ITable getTable()
SendableSendable.public void startLiveWindowMode()
LiveWindowSendablestartLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
LiveWindowSendablestopLiveWindowMode in interface LiveWindowSendable