|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Leds
Set, turn on, turn off, and toggle the platform's LEDs. The LEDs on/off state is represented as a bit-vector encoded as an integer. If the platform has three LEDs, then only the lowest three bits of the int value are significant.
Field Summary |
---|
Fields inherited from interface com.sentilla.system.Action |
---|
DONE, ERROR, IDLE, PENDING |
Method Summary | |
---|---|
void |
off(int value)
Turns off selected LEDs. |
void |
on(int value)
Turns on selected LEDs. |
void |
set(int value)
Set all LED values. |
Leds |
setOff(int value)
Asynchronous interface to turn off selected LEDs. |
Leds |
setOn(int value)
Asynchronous interface to turn on selected LEDs. |
Leds |
setSet(int value)
Asynchronous interface to set all LED values. |
Leds |
setToggle(int value)
Asynchronous interface to toggle selected LEDs. |
void |
toggle(int value)
Toggle selected LEDs. |
Methods inherited from interface com.sentilla.system.Action |
---|
block, block, cancel, getActionState, isDone, submit |
Method Detail |
---|
void set(int value)
value
- a bit mask where true means on and false means offvoid on(int value)
value
- a bit mask where true means on and false means ignorevoid off(int value)
value
- a bit mask where true means off and false means ignorevoid toggle(int value)
value
- a bit mask where true means toggle and false means ignoreLeds setSet(int value)
Prepares the Action to set all LED values but does not initiate the
operation until submit()
is called.
value
- a bit mask where true means on and false means off
Leds setOn(int value)
Prepares the Action to turn on selected LEDs but does not initiate the
operation until submit()
is called.
value
- a bit mask where true means on and false means ignore
Leds setOff(int value)
Prepares the Action to turn off selected LEDs but does not initiate the
operation until submit()
is called.
value
- a bit mask where true means off and false means ignore
Leds setToggle(int value)
Prepares the Action to toggle selected LEDs but does not initiate the
operation until submit()
is called.
value
- a bit mask where true means toggle and false means ignore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |