public class GpioBuffer extends Object
It does not do any IO on its own.
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
How many lines a buffer can drive.
|
| Constructor and Description |
|---|
GpioBuffer()
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
GpioBuffer |
clear()
Clears this buffer by setting every state to false.
|
boolean |
get(GpioLine line)
Retrieves the state of a given line.
|
GpioBuffer |
set(GpioLine line,
boolean value)
Sets the new state of a given line.
|
GpioBuffer |
toggle(GpioLine line)
Toggles the state of a given line.
|
public static final int SIZE
public boolean get(GpioLine line)
line - The GPIO linepublic GpioBuffer set(GpioLine line, boolean value)
line - The GPIO line.value - The new state.public GpioBuffer toggle(GpioLine line)
line - The GPIO line.public GpioBuffer clear()