Oracle Java Wireless Client

com.oracle.deviceaccess.gpio
Class GPIOManager

java.lang.Object
  extended by com.oracle.deviceaccess.gpio.GPIOManager

public class GPIOManager
extends java.lang.Object

GPIO manager.


Method Summary
static GPIOPin getPin(int id)
          Returns GPIOPin of given id.
static GPIOPin getPin(java.lang.String name)
          Returns GPIOPin of given name.
static GPIOPort getPort(int id)
          Returns GPIOPort of given ID.
static GPIOPort getPort(java.lang.String name)
          Returns GPIOPort of given name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPort

public static GPIOPort getPort(int id)
                        throws java.io.IOException,
                               PeripheralTypeNotSupportedException,
                               PeripheralNotFoundException,
                               PeripheralNotAvailableException
Returns GPIOPort of given ID.

Parameters:
id - GPIO port ID.
Returns:
GPIO port.
Throws:
PeripheralTypeNotSupportedException - would be thrown if the peripheral is not supported.
IOException - if the device has any problem to be used.
java.lang.SecurityException - Application has no permission to access peripheral.
PeripheralNotFoundException
PeripheralNotAvailableException

getPin

public static GPIOPin getPin(int id)
                      throws java.io.IOException,
                             PeripheralTypeNotSupportedException,
                             PeripheralNotFoundException,
                             PeripheralNotAvailableException
Returns GPIOPin of given id.

Parameters:
id - pin ID
Returns:
Instance of GPIOPin.
Throws:
PeripheralTypeNotSupportedException - would be thrown if the peripheral is not supported.
IOException - if the device has any problem to be used.
java.lang.SecurityException - Application has no permission to access peripheral.
PeripheralNotFoundException
PeripheralNotAvailableException

getPort

public static GPIOPort getPort(java.lang.String name)
                        throws java.io.IOException,
                               PeripheralTypeNotSupportedException,
                               PeripheralNotFoundException,
                               PeripheralNotAvailableException
Returns GPIOPort of given name.

Parameters:
name - GPIO port name.
Returns:
GPIO port.
Throws:
PeripheralTypeNotSupportedException - would be thrown if the peripheral is not supported.
IOException - if the device has any problem to be used.
java.lang.SecurityException - Application has no permission to access peripheral.
PeripheralNotFoundException
PeripheralNotAvailableException

getPin

public static GPIOPin getPin(java.lang.String name)
                      throws java.io.IOException,
                             PeripheralTypeNotSupportedException,
                             PeripheralNotFoundException,
                             PeripheralNotAvailableException
Returns GPIOPin of given name.

Parameters:
name - pin name
Returns:
Instance of GPIOPin.
Throws:
PeripheralTypeNotSupportedException - would be thrown if the peripheral is not supported.
IOException - if the device has any problem to be used.
java.lang.SecurityException - Application has no permission to access peripheral.
PeripheralNotFoundException
PeripheralNotAvailableException

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.