Interface: tos.interfaces.Leds
interface Leds
Abstraction of the LEDs.
- Author:
-
Jason Hill
-
David Gay
-
Philip Levis
Commands
command uint8_t get()
command result_t greenOff()
command result_t greenOn()
command result_t init()
command result_t redOff()
command result_t redOn()
command result_t redToggle()
command result_t set(uint8_t value)
command result_t yellowOff()
command result_t yellowOn()
Commands - Details
get
command uint8_t get()
- Returns:
-
A uint8_t typed value representing Leds status
greenOff
command result_t greenOff()
- Returns:
-
SUCCESS always.
greenOn
command result_t greenOn()
- Returns:
-
SUCCESS always.
greenToggle
command result_t greenToggle()
- Returns:
-
SUCCESS always.
init
command result_t init()
- Returns:
-
SUCCESS always.
redOff
command result_t redOff()
- Returns:
-
SUCCESS always.
redOn
command result_t redOn()
- Returns:
-
SUCCESS always.
redToggle
command result_t redToggle()
- Returns:
-
SUCCESS always.
set
command result_t set(uint8_t value)
- Parameters:
-
value
- ranging from 0 to 7 inclusive
- Returns:
-
SUCCESS Always
yellowOff
command result_t yellowOff()
- Returns:
-
SUCCESS always.
yellowOn
command result_t yellowOn()
- Returns:
-
SUCCESS always.
yellowToggle
command result_t yellowToggle()
- Returns:
-
SUCCESS always.