irda_protocols.h 405 B

12345678910111213141516171819
  1. #pragma once
  2. // our tx pin is TIM2_CH4
  3. extern TIM_HandleTypeDef TIM_A;
  4. #define RC5_CARRIER_FREQUENCY 36000
  5. #define RC5_DUTY_CYCLE 0.33
  6. #define RC6_CARRIER_FREQUENCY 36000
  7. #define RC6_DUTY_CYCLE 0.33
  8. #define SAMSUNG_CARRIER_FREQUENCY 37900
  9. #define SAMSUNG_DUTY_CYCLE 0.33
  10. #define NEC_CARRIER_FREQUENCY 38000
  11. #define NEC_DUTY_CYCLE 0.33
  12. #define SIRC_CARRIER_FREQUENCY 40000
  13. #define SIRC_DUTY_CYCLE 0.5