com.motorola.oem.hapi
Class GpioOutput

java.lang.Object
  extended by com.motorola.oem.hapi.Gpio
      extended by com.motorola.oem.hapi.GpioOutput

public final class GpioOutput
extends Gpio

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

GpioOutput

public GpioOutput(int gpioNum)
           throws GpioException
Construct a GpioOutput object and configuring specified GPIO as output.

Parameters:
gpioNum - the GPIO to be configured.
Throws:
GpioException - when failed to configure.
Method Detail

write

public void write(boolean val)
           throws GpioException
Write parameter to GPIO. Write method use native call to change current GPIO line state.

Parameters:
val - the value to be written. False = Low, True = High.
Throws:
GpioException