irreceiver.h 903 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef IRRECEIVER_H
  2. #define IRRECEIVER_H
  3. #define MAX_PLUSE 1024
  4. #define AM_IR_DEC_LDR_ACTIVE 0x0
  5. #define AM_IR_DEC_LDR_IDLE 0x4
  6. #define AM_IR_DEC_LDR_REPEAT 0x8
  7. #define AM_IR_DEC_BIT_0 0xc
  8. #define AM_IR_DEC_REG0 0x10
  9. #define AM_IR_DEC_FRAME 0x14
  10. #define AM_IR_DEC_STATUS 0x18
  11. #define AM_IR_DEC_REG1 0x1c
  12. #define am_remote_write_reg(x,val) aml_write_reg32(g_remote_base +x ,val)
  13. #define am_remote_read_reg(x) aml_read_reg32(g_remote_base +x)
  14. #define am_remote_set_mask(x,val) aml_set_reg32_mask(g_remote_base +x,val)
  15. #define am_remote_clear_mask(x,val) aml_clr_reg32_mask(g_remote_base +x,val)
  16. struct ir_window {
  17. unsigned int winNum;
  18. unsigned int winArray[MAX_PLUSE];
  19. };
  20. #define IRRECEIVER_IOC_SEND 0x5500
  21. #define IRRECEIVER_IOC_RECV 0x5501
  22. #define IRRECEIVER_IOC_STUDY_S 0x5502
  23. #define IRRECEIVER_IOC_STUDY_E 0x5503
  24. #endif //IRRECEIVER_H