|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.motorola.oem.hapi.Gpio com.motorola.oem.hapi.GpioOutput
public final class GpioOutput
GpioOutput class enables configuring each available GPIO in the system as output.
It requires integer parameter to be constructed. This value
represent the GPIO to be configured.
Once object is created it serves as output API to the underlying system through methods being
inhereted from class Gpio and its specific write
method.
Constructor Summary | |
---|---|
GpioOutput(int gpioNum)
Construct a GpioOutput object and configuring specified GPIO as output. |
Method Summary | |
---|---|
void |
write(boolean val)
Write parameter to GPIO. |
Methods inherited from class com.motorola.oem.hapi.Gpio |
---|
clear, getNumber |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GpioOutput(int gpioNum) throws GpioException
gpioNum
- the GPIO to be configured.
GpioException
- when failed to configure.Method Detail |
---|
public void write(boolean val) throws GpioException
val
- the value to be written. False = Low, True = High.
GpioException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |