infrared_protocol_rc5_i.h 710 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "../common/infrared_common_i.h"
  3. #define INFRARED_RC5_CARRIER_FREQUENCY 36000
  4. #define INFRARED_RC5_DUTY_CYCLE 0.33
  5. #define INFRARED_RC5_PREAMBLE_MARK 0
  6. #define INFRARED_RC5_PREAMBLE_SPACE 0
  7. #define INFRARED_RC5_BIT 888 // half of time-quant for 1 bit
  8. #define INFRARED_RC5_PREAMBLE_TOLERANCE 200 // us
  9. #define INFRARED_RC5_BIT_TOLERANCE 120 // us
  10. /* protocol allows 2700 silence, but it is hard to send 1 message without repeat */
  11. #define INFRARED_RC5_SILENCE (2700 * 10)
  12. #define INFRARED_RC5_MIN_SPLIT_TIME 2700
  13. #define INFRARED_RC5_REPEAT_COUNT_MIN 1
  14. extern const InfraredCommonProtocolSpec infrared_protocol_rc5;
  15. bool infrared_decoder_rc5_interpret(InfraredCommonDecoder* decoder);