|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcontrol.io.GPIO
public class GPIO
Controls JControls available portpins.
The number of ports varies at JControl Modules, for details refer to the tables below.
GPIO # | connector pin # | pin description | special use |
|---|---|---|---|
| CHANNEL_RS422_BOOTCTL | 0x100 | BootCTL | connected to BootCTL-GPIO, used by SerialCommunicator |
| CHANNEL_RS422_RESETCTL | 0x101 | ResetCTL | connected to ResetCTL-GPIO, used by SerialCommunicator |
| Field Summary | |
|---|---|
static int |
CHANNEL_RS422_BOOTCTL
GPIO Port BOOTCTL |
static int |
CHANNEL_RS422_RESETCTL
GPIO Port RESETCTL |
static int |
FLOATING
NOTE: not supported Represents a floating GPIO input mode. |
static boolean |
HIGH
Represents the GPIO state "HIGH". |
static boolean |
LOW
Represents the GPIO state "LOW" Used for input and output channels. |
static int |
OPENDRAIN
NOTE: not supported Represents an GPIO output mode with with integrated pullup resistor. |
static int |
OPENDRAIN_HIGH
NOTE: not supported Represents a GPIO output mode with with integrated pullup resistor. |
static int |
OPENDRAIN_LOW
NOTE: not supported Represents a GPIO output mode with with integrated pullup resistor. |
static int |
PULLUP
NOTE: not supported Represents a GPIO input mode with integrated weak pullup resistor. |
static int |
PUSHPULL
NOTE: not supported Represents a GPIO Push/Pull output mode. |
static int |
PUSHPULL_HIGH
NOTE: not supported Represents a GPIO Push/Pull output mode. |
static int |
PUSHPULL_LOW
NOTE: not supported Represents a GPIO Push/Pull output mode. |
| Method Summary | |
|---|---|
static int |
getMode(int channel)
NOTE: not supported Gets the mode of the given pin. |
static boolean |
getState(int channel)
Gets the state of a single IO-Pin. |
static void |
setMode(int channel,
int mode)
NOTE: not supported Sets the mode of the given pin. |
static void |
setState(int channel,
boolean state)
Sets a single IO-Pin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, notifyAll, toString, wait |
| Field Detail |
|---|
public static final int CHANNEL_RS422_BOOTCTL
public static final int CHANNEL_RS422_RESETCTL
public static final boolean HIGH
setState(int, boolean),
getState(int),
Constant Field Valuespublic static final boolean LOW
setState(int, boolean),
getState(int),
Constant Field Valuespublic static final int FLOATING
setMode(int, int),
getMode(int),
Constant Field Valuespublic static final int PULLUP
setMode(int, int),
getMode(int),
Constant Field Valuespublic static final int OPENDRAIN
setMode(int, int),
getMode(int),
Constant Field Valuespublic static final int OPENDRAIN_LOW
setMode(int, int),
getMode(int),
Constant Field Valuespublic static final int OPENDRAIN_HIGH
setMode(int, int),
getMode(int),
Constant Field Valuespublic static final int PUSHPULL
setMode(int, int),
getMode(int),
Constant Field Valuespublic static final int PUSHPULL_LOW
setMode(int, int),
getMode(int),
Constant Field Valuespublic static final int PUSHPULL_HIGH
setMode(int, int),
getMode(int),
Constant Field Values| Method Detail |
|---|
public static void setState(int channel,
boolean state)
channel - logical identification number of the pinstate - decides, if the Pin is to be turned HIGH or LOWHIGH,
LOW,
setMode(int, int)public static boolean getState(int channel)
channel - logical identification number of the pin
HIGH or LOW.HIGH,
LOW
public static void setMode(int channel,
int mode)
mode is either an input mode identifier or a combination of output mode
identifier and a pin level representation.
channel - logical identification number of the pinmode - a constant or combination of constants, defined in this classgetMode(int),
FLOATING,
PULLUP,
OPENDRAIN,
OPENDRAIN_LOW,
OPENDRAIN_HIGH,
PUSHPULL,
PUSHPULL_LOW,
PUSHPULL_HIGHpublic static int getMode(int channel)
mode is a combination of input or output mode
identifier and a pin level representation.
channel - logical identification number of the pin
setMode(int channel, int mode),
FLOATING,
PULLUP,
OPENDRAIN,
OPENDRAIN_LOW,
OPENDRAIN_HIGH,
PUSHPULL,
PUSHPULL_LOW,
PUSHPULL_HIGH
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||