Class WsDigitalInputConfig
- java.lang.Object
-
- org.wildstang.hardware.roborio.inputs.config.WsDigitalInputConfig
-
- All Implemented Interfaces:
InputConfig
public class WsDigitalInputConfig extends java.lang.Object implements InputConfig
Contains configuration for digital inputs.
-
-
Constructor Summary
Constructors Constructor Description WsDigitalInputConfig(int channel, boolean p_pullup)
Construct the digital output config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChannel()
Returns the hardware port number.boolean
getPullup()
Returns the pull up state.java.lang.String
toString()
Builds a JSON String describing the digital output config.
-
-
-
Method Detail
-
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
public java.lang.String toString()
Builds a JSON String describing the digital output config.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Channel number and pull up state.
-
-