|
Oracle Java Wireless Client | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oracle.deviceaccess.gpio.GPIOManager
public class GPIOManager
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 |
public static GPIOPort getPort(int id) throws java.io.IOException, PeripheralTypeNotSupportedException, PeripheralNotFoundException, PeripheralNotAvailableException
GPIOPort
of given ID.
id
- GPIO port ID.
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
public static GPIOPin getPin(int id) throws java.io.IOException, PeripheralTypeNotSupportedException, PeripheralNotFoundException, PeripheralNotAvailableException
GPIOPin
of given id.
id
- pin ID
GPIOPin
.
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
public static GPIOPort getPort(java.lang.String name) throws java.io.IOException, PeripheralTypeNotSupportedException, PeripheralNotFoundException, PeripheralNotAvailableException
GPIOPort
of given name.
name
- GPIO port name.
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
public static GPIOPin getPin(java.lang.String name) throws java.io.IOException, PeripheralTypeNotSupportedException, PeripheralNotFoundException, PeripheralNotAvailableException
GPIOPin
of given name.
name
- pin name
GPIOPin
.
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 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |