Class WsDigitalInputConfig
java.lang.Object
org.wildstang.hardware.roborio.inputs.config.WsDigitalInputConfig
- All Implemented Interfaces:
InputConfig
Contains configuration for digital inputs.
-
Constructor Summary
ConstructorsConstructorDescriptionWsDigitalInputConfig(int channel, boolean p_pullup) Construct the digital output config. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the hardware port number.booleanReturns the pull up state.toString()Builds a JSON String describing the digital output config.
-
Constructor Details
-
WsDigitalInputConfig
public WsDigitalInputConfig(int channel, boolean p_pullup) Construct the digital output config.- Parameters:
channel- Digital hardware port number.p_pullup- Enables pull up mode on digital input.
-
-
Method Details
-
getChannel
public int getChannel()Returns the hardware port number.- Returns:
- The hardware port number.
-
getPullup
public boolean getPullup()Returns the pull up state.- Returns:
- True if pull up is enabled.
-
toString
Builds a JSON String describing the digital output config.
-