led.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* ========================================================================
  2. * [PROJECT] SIR
  3. * [MODULE] LED
  4. * [TITLE] LED control header file
  5. * [FILE] led.h
  6. * [VSN] 1.0
  7. * [CREATED] 1 augustus 2003
  8. * [LASTCHNGD] 23 augustus 2003
  9. * [COPYRIGHT] Copyright (C) STREAMIT BV 2010
  10. * [PURPOSE] LED control routines for SIR
  11. * ======================================================================== */
  12. /*-------------------------------------------------------------------------*/
  13. /* global defines */
  14. /*-------------------------------------------------------------------------*/
  15. #define LED_OFF 0
  16. #define LED_ON 1
  17. #define LED_POWER_ON 2
  18. #define LED_POWER_OFF 3
  19. #define LED_TOGGLE 4
  20. #define LED_FLASH_ON 5
  21. #define LED_FLASH_OFF 6
  22. /*-------------------------------------------------------------------------*/
  23. /* typedefs & structs */
  24. /*-------------------------------------------------------------------------*/
  25. /*-------------------------------------------------------------------------*/
  26. /* export global routines (interface) */
  27. /*-------------------------------------------------------------------------*/
  28. void LedInit(void);
  29. void LedControl(u_char);
  30. u_char LedGetStatus(void);
  31. /* ÍÍÍÍ End Of File ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */