u_rc.h 486 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _U_RC_H_
  2. #define _U_RC_H_
  3. #include "u_global.h"
  4. #define RC_GPIO_PORT (0x14)
  5. #define RC_CODE_HIGH_PVT (6)
  6. extern uint8_t g_ir_code[4];
  7. extern uint8_t g_ir_recv_done_flag;
  8. enum //_capture_flow
  9. {
  10. RC_CAPTURE_IDLE,
  11. RC_CAPTURE_START_LOW,
  12. RC_CAPTURE_START_HIGH,
  13. RC_CAPTURE_STATE_CODE,
  14. };
  15. void rc_timer0_cb(void);
  16. void rc_timer1_cb(void);
  17. void u_gpio_int_handle(void);
  18. void rc_init(void);
  19. void rc_timer0_cb(void);
  20. void rc_timer1_cb(void);
  21. uint8_t *rc_decode(void);
  22. #endif