|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.platform.tmote.Action
com.sentilla.platform.tmote.DigitalPin
com.sentilla.platform.tmote.InterruptPin
com.sentilla.platform.tmote.Button
public class Button
Tmote implementation of the Button interface.
Field Summary |
---|
Fields inherited from class com.sentilla.platform.tmote.DigitalPin |
---|
digitalPinCmd, digitalPinId, digitalPinPortmask, digitalPinTime, digitalPinValue, EDGE_CHANGE, EDGE_FALLING, EDGE_RISING, GET_PORT, GET_VALUE, SET_PORT, SET_VALUE |
Fields inherited from class com.sentilla.platform.tmote.Action |
---|
actionAuto, actionId, actionState, isolateOwner |
Fields inherited from interface com.sentilla.system.Action |
---|
DONE, ERROR, IDLE, PENDING |
Constructor Summary | |
---|---|
Button(int buttonFilter)
|
Method Summary | |
---|---|
void |
change()
Returns when the state of the user button changes. |
int |
getId()
Asynchronous interface to get the pin id for this DigitalPin object. |
void |
press()
Returns when the user button transitions from released to pressed. |
void |
release()
Returns when the user button transitions from pressed to released. |
Button |
setChange()
Sets the button to await a state transition. |
Button |
setPress()
Sets the button to await transition from released to pressed. |
Button |
setRead()
Asynchronous interface to initiate a read operation. |
Button |
setRelease()
Sets the button to await transition from pressed to released. |
Methods inherited from class com.sentilla.platform.tmote.InterruptPin |
---|
checkId, edge, getEdgeTime, isRisingEdge, setEdge |
Methods inherited from class com.sentilla.platform.tmote.DigitalPin |
---|
getTime, getValue, read, read, readPort, setId, setWrite, write, write, writePort |
Methods inherited from class com.sentilla.platform.tmote.Action |
---|
block, block, cancel, getActionState, initAction, isDone, lookup, submit |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sentilla.system.Button |
---|
getTime, getValue, read |
Methods inherited from interface com.sentilla.system.Action |
---|
block, block, cancel, getActionState, isDone, submit |
Methods inherited from interface com.sentilla.system.DigitalPin |
---|
getTime, getValue, read, setWrite, write, writePort |
Constructor Detail |
---|
public Button(int buttonFilter)
Method Detail |
---|
public void press()
Button
press
in interface Button
public void release()
Button
release
in interface Button
public void change()
Button
change
in interface Button
public Button setRelease()
Button
setRelease
in interface Button
public Button setPress()
Button
setPress
in interface Button
public Button setChange()
Button
setChange
in interface Button
public Button setRead()
DigitalPin
Prepares the Action to read a value but does not initiate the read operation
until submit()
is called.
setRead
in interface Button
setRead
in interface DigitalPin
setRead
in class DigitalPin
public int getId()
DigitalPin
id is specified by port and pin value in hex. For example, Port 2, Pin 3 is represented by id 0x23.
getId
in interface Button
getId
in interface DigitalPin
getId
in class DigitalPin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |