Z-Stack API Reference  3.2.0
Board LED Functions
enum  board_led_type {
  board_led_type_LED1, board_led_type_LED2, board_led_type_LED3, board_led_type_LED4,
  NO_OF_LEDS
}
 
enum  board_led_state { board_led_state_OFF, board_led_state_ON, board_led_state_BLINK, board_led_state_BLINKING }
 
void Board_Led_initialize (void)
 Initialize LED System.
 
void Board_Led_control (board_led_type led, board_led_state state)
 Control the state of an LED. More...
 
void Board_Led_toggle (board_led_type led)
 Toggle the state of an LED from off to on, and from on or blinking to off. More...
 

Detailed Description


This module is a collection of functions to control LEDs.

Enumeration Type Documentation

§ board_led_state

LED States

§ board_led_type

LED Identifications

Function Documentation

§ Board_Led_control()

void Board_Led_control ( board_led_type  led,
board_led_state  state 
)

Control the state of an LED.

Parameters
led- Which LED
state- control, set to board_led_state_BLINK for blink once, set to board_led_state_BLINKING to continual blinking, set to board_led_state_ON to turn LED on, set to board_led_state_OFF to turn the LED off.

§ Board_Led_toggle()

void Board_Led_toggle ( board_led_type  led)

Toggle the state of an LED from off to on, and from on or blinking to off.

Parameters
led- Which LED