remcon.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* ========================================================================
  2. * [PROJECT] SIR
  3. * [MODULE] Remote Control
  4. * [TITLE] remote control header file
  5. * [FILE] remcon.h
  6. * [VSN] 1.0
  7. * [CREATED] 1 july 2003
  8. * [LASTCHNGD] 1 july 2003
  9. * [COPYRIGHT] Copyright (C) STREAMIT BV 2010
  10. * [PURPOSE] remote control routines for SIR
  11. * ======================================================================== */
  12. /*-------------------------------------------------------------------------*/
  13. /* global defines */
  14. /*-------------------------------------------------------------------------*/
  15. #define RC_OK 0x00
  16. #define RC_ERROR 0x01
  17. #define RC_BUSY 0x04
  18. #define RCST_IDLE 0x00
  19. #define RCST_WAITFORLEADER 0x01
  20. #define RCST_SCANADDRESS 0x02
  21. #define RCST_SCANDATA 0x03
  22. #define RC_INT_SENS_MASK 0x03
  23. #define RC_INT_FALLING_EDGE 0x02
  24. #define RC_INT_RISING_EDGE 0x03
  25. #define IR_RECEIVE 4
  26. #define IR_BUFFER_SIZE 1
  27. /*-------------------------------------------------------------------------*/
  28. /* export global routines (interface) */
  29. /*-------------------------------------------------------------------------*/
  30. void RcInit(void);
  31. /* ÍÍÍÍ End Of File ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */