|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.peripheral.AbstractAT91_PIO com.sun.spot.peripheral.proxy.ProxyAT91_PIO
public class ProxyAT91_PIO
ProxyAT91_PIO: do not use directly.
IAT91_PIO
Field Summary | |
---|---|
static String |
AT91_PIO_SERVER
|
Fields inherited from class com.sun.spot.peripheral.AbstractAT91_PIO |
---|
baseAddress, PIO_CODR, PIO_IFDR, PIO_IFER, PIO_ODR, PIO_OER, PIO_PDSR, PIO_SODR, pioSelector |
Fields inherited from interface com.sun.spot.peripheral.IAT91_PIO |
---|
CLEAR_OUT, INPUT, OUTPUT, PIOA, PIOB, PIOC, PIOD, SENSE_BIT, SET_OUT |
Constructor Summary | |
---|---|
ProxyAT91_PIO(int pioSelector)
For use by the SPOT library only - to get a handle to an AT91_PIO use Spot.getInstance() and Spot.getAT91_PIO(int) . |
Method Summary | |
---|---|
int |
available()
Return the mask of available pins. |
protected void |
checkOwned(int mask)
|
void |
claim(int mask,
int drive,
boolean claimForPeriphA)
Lay claim to certain PIO pins. |
void |
disableIrq(int irq)
Disable PIO interrupts for the specified pin |
void |
enableIrq(int mask)
Enable PIO interrupts for the specified pin |
void |
release(int mask)
Release claim to certain PIO pins |
void |
waitForIrq(int irq)
Wait for the specified PIO pin to generate an interrupt. |
Methods inherited from class com.sun.spot.peripheral.AbstractAT91_PIO |
---|
claim, disableGlitchFilter, enableGlitchFilter, getBaseAddress, getDriverName, open, read, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String AT91_PIO_SERVER
Constructor Detail |
---|
public ProxyAT91_PIO(int pioSelector)
Spot.getInstance()
and Spot.getAT91_PIO(int)
.
Method Detail |
---|
protected void checkOwned(int mask)
checkOwned
in class AbstractAT91_PIO
public int available()
IAT91_PIO
available
in interface IAT91_PIO
available
in class AbstractAT91_PIO
public void claim(int mask, int drive, boolean claimForPeriphA)
IAT91_PIO
claim
in interface IAT91_PIO
claim
in class AbstractAT91_PIO
mask
- claimed pinsdrive
- bits set to 1 for pins to be controlled by PIOclaimForPeriphA
- if true assign undriven pins to peripheral A; if false to peripheral Bpublic void release(int mask)
IAT91_PIO
release
in interface IAT91_PIO
release
in class AbstractAT91_PIO
mask
- released pinspublic void disableIrq(int irq)
IAT91_PIO
disableIrq
in interface IAT91_PIO
disableIrq
in class AbstractAT91_PIO
irq
- A mask with a single bit set indicating the interruptpublic void enableIrq(int mask)
IAT91_PIO
enableIrq
in interface IAT91_PIO
enableIrq
in class AbstractAT91_PIO
mask
- the pio pin maskpublic void waitForIrq(int irq) throws InterruptedException
IAT91_PIO
waitForIrq
in interface IAT91_PIO
waitForIrq
in class AbstractAT91_PIO
irq
- A mask with a single bit set indicating the interrupt awaited
InterruptedException
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |