public interface Gpio
Modifier and Type | Method and Description |
---|---|
int |
getInterruptStatus(boolean[] bValue)
Write value to the specified GPIO pin.
|
int |
init(int[] gpio)
Initialize the GPIO interface
|
int |
read(int portNum,
boolean[] bValue)
Read the value from the specified GPIO pin.
|
int |
write(int portNum,
boolean bValue)
Write value to the specified GPIO pin.
|
int init(int[] gpio)
gpio
- An array defines the directions of GPIO pins. The GPIO direction will be:
GPIO_OUTPUT
GPIO_INPUTint read(int portNum, boolean[] bValue)
portNum
- GPIO port number.bValue
- A variable of typeBOOL which receives the value of the GPIO pin.int write(int portNum, boolean bValue)
portNum
- GPIO port number.bValue
- The output value.int getInterruptStatus(boolean[] bValue)
iValue
- The output value.