com.motorola.oem.hapi
Class Gpio

java.lang.Object
  extended by com.motorola.oem.hapi.Gpio
Direct Known Subclasses:
GpioInput, GpioOutput

public abstract class Gpio
extends java.lang.Object

Gpio Class is an abstract base class to support common access methods

Gpio Specific Configuration:


- Available pins: GPIO1-GPIO7, GPIO9-GPIO16.
- Interrupts available on GPIO1, GPIO14, GPIO15 and GPIO16.
- Counters available on GPIO14 and GPIO15.


Method Summary
 void clear()
          Releases the current Gpio.
 int getNumber()
          Get the gpio number.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clear

public void clear()
Releases the current Gpio. Notes for after calling clear() method:
If the Gpio was configured as output, the value on the physical pin will remain unchanged.
If Gpio was configured to interrupt/counter mode, interrupt/counter will be disabled.


getNumber

public int getNumber()
Get the gpio number.

Returns:
the gpio number used