|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAT91_TC
Interface to an AT91 Timer Counter.
| Method Summary | |
|---|---|
void |
blockSync()
Perform a block sync command, which causes a reset of all three counters |
void |
claimTCLK()
Enable PIO use of shared TCLK line |
void |
claimTIOA()
Disable PIO use of shared TIOA line |
void |
claimTIOB()
Disable PIO use of shared TIOB line |
void |
configure(int mask)
Configure the Timer-Counter |
void |
configureXC(int xcMask)
Configure the block mode inputs appropriate to this TC channel |
int |
counter()
Read current counter value |
void |
disable()
Disable the counter |
void |
disableIrq(int mask)
Disable one or more of the interrupt sources associated with this TC channel. |
void |
enable()
Enable counter |
void |
enableAndReset()
Enable counter and cause software trigger which forces a reset on next clock edge |
void |
enableIrq(int mask)
Enable one or more of the interrupt sources associated with this TC channel. |
int |
regA()
Read current Reg A value |
int |
regB()
Read current Reg B value |
void |
setRegA(int i)
Set the value of the A Compare Register |
void |
setRegC(int i)
Set the value of the C Compare Register |
int |
status()
Read current status |
void |
unclaimTIOA()
Enable PIO use of shared TIOA line |
void |
waitForIrq()
Suspend this thread until this TC generates an interrupt. |
| Methods inherited from interface com.sun.spot.peripheral.IDriver |
|---|
name, setUp, tearDown |
| Method Detail |
|---|
void configure(int mask)
mask - bits to set in TC_CMRvoid enableAndReset()
void enable()
int counter()
int status()
void claimTIOA()
void unclaimTIOA()
void claimTIOB()
void claimTCLK()
int regA()
int regB()
void setRegC(int i)
i - Value to be setvoid setRegA(int i)
i - Value to be setvoid disable()
void configureXC(int xcMask)
xcMask - Bits to be set in TC_BMRvoid blockSync()
void enableIrq(int mask)
mask - Bit mask identifying the required interrupt source(s)void waitForIrq()
enableIrq(int) prior to this, and again if you want a subsequent interrupt.
void disableIrq(int mask)
mask - Bit mask identifying the required interrupt source(s)
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||