00001 #ifndef LED_H
00002 #define LED_H
00003 #include <stdint.h>
00004
00022 typedef enum {
00023 RED0=0, YELLOW0=1, GREEN0=2, BLUE0=3,
00024 RED1=4, YELLOW1=5, GREEN1=6, BLUE1=7
00025 } LED;
00026
00035 int8_t sb_led_on(LED led);
00036
00045 int8_t sb_led_off(LED led);
00046
00055 int8_t sb_led_toggle(LED led);
00056
00071 int8_t sb_led_show_level(uint8_t level, uint8_t max);
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089 static __inline__ int8_t sb_led_showLevel (uint8_t level, uint8_t max) {
00090 return sb_led_show_level(level, max);
00091 }
00092
00101 void sb_led_set_all_leds(uint8_t setting);
00102
00105 #endif
00106