|
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
public abstract class AbstractAT91_PIO
AbstractAT91_PIO
IAT91_PIO
Field Summary | |
---|---|
protected Address |
baseAddress
|
protected static int |
PIO_CODR
|
protected static int |
PIO_IFDR
|
protected static int |
PIO_IFER
|
protected static int |
PIO_ODR
|
protected static int |
PIO_OER
|
protected static int |
PIO_PDSR
|
protected static int |
PIO_SODR
|
protected int |
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 | |
---|---|
protected |
AbstractAT91_PIO(int pioSelector)
|
Method Summary | |
---|---|
abstract int |
available()
Return the mask of available pins. |
protected abstract void |
checkOwned(int mask)
|
void |
claim(int mask,
int drive)
Lay claim to certain PIO pins |
abstract void |
claim(int mask,
int drive,
boolean claimForPeriphA)
Lay claim to certain PIO pins. |
void |
disableGlitchFilter(int mask)
Disable glitch filters for the specified pin(s) |
abstract void |
disableIrq(int irq)
Disable PIO interrupts for the specified pin |
void |
enableGlitchFilter(int mask)
Enable glitch filters for the specified pin(s) |
abstract void |
enableIrq(int mask)
Enable PIO interrupts for the specified pin |
int |
getBaseAddress()
Get the base address of this PIO |
String |
getDriverName()
|
void |
open(int mask,
int config)
Configure the direction of selected pins. |
int |
read()
Read the instantaneous state of the pio pins |
abstract void |
release(int mask)
Release claim to certain PIO pins |
abstract void |
waitForIrq(int irq)
Wait for the specified PIO pin to generate an interrupt. |
void |
write(int mask,
int state)
Set the state of selected output pins |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int PIO_OER
protected static final int PIO_ODR
protected static final int PIO_IFER
protected static final int PIO_IFDR
protected static final int PIO_SODR
protected static final int PIO_CODR
protected static final int PIO_PDSR
protected Address baseAddress
protected int pioSelector
Constructor Detail |
---|
protected AbstractAT91_PIO(int pioSelector)
Method Detail |
---|
public void write(int mask, int state)
IAT91_PIO
write
in interface IAT91_PIO
mask
- state
- public void open(int mask, int config)
IAT91_PIO
open
in interface IAT91_PIO
mask
- config
- public int read()
IAT91_PIO
read
in interface IAT91_PIO
public int getBaseAddress()
IAT91_PIO
getBaseAddress
in interface IAT91_PIO
public void enableGlitchFilter(int mask)
IAT91_PIO
enableGlitchFilter
in interface IAT91_PIO
mask
- the pio pin maskpublic void disableGlitchFilter(int mask)
IAT91_PIO
disableGlitchFilter
in interface IAT91_PIO
mask
- the pio pin maskpublic void claim(int mask, int drive)
claim
in interface IAT91_PIO
mask
- - claimed pinsdrive
- - bits set to 1 for pins to be controlled by PIO. Bits set to 0 default to peripheral A.public String getDriverName()
getDriverName
in interface IAT91_PIO
public abstract int available()
IAT91_PIO
available
in interface IAT91_PIO
public abstract void claim(int mask, int drive, boolean claimForPeriphA)
IAT91_PIO
claim
in interface IAT91_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 abstract void release(int mask)
IAT91_PIO
release
in interface IAT91_PIO
mask
- released pinspublic abstract void disableIrq(int irq)
IAT91_PIO
disableIrq
in interface IAT91_PIO
irq
- A mask with a single bit set indicating the interruptpublic abstract void enableIrq(int mask)
IAT91_PIO
enableIrq
in interface IAT91_PIO
mask
- the pio pin maskpublic abstract void waitForIrq(int irq) throws InterruptedException
IAT91_PIO
waitForIrq
in interface IAT91_PIO
irq
- A mask with a single bit set indicating the interrupt awaited
InterruptedException
protected abstract void checkOwned(int mask)
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |