Home
last modified time | relevance | path

Searched refs:margin_ticks (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/examples/peripherals/rmt/ir_protocols/components/infrared_tools/src/
Dir_parser_rmt_nec.c47 uint32_t margin_ticks; member
56 …ic inline bool nec_check_in_range(uint32_t raw_ticks, uint32_t target_ticks, uint32_t margin_ticks) in nec_check_in_range() argument
58 … return (raw_ticks < (target_ticks + margin_ticks)) && (raw_ticks > (target_ticks - margin_ticks)); in nec_check_in_range()
66 …ec_check_in_range(item.duration0, nec_parser->leading_code_high_ticks, nec_parser->margin_ticks) && in nec_parse_head()
67 … nec_check_in_range(item.duration1, nec_parser->leading_code_low_ticks, nec_parser->margin_ticks); in nec_parse_head()
76 …_check_in_range(item.duration0, nec_parser->payload_logic0_high_ticks, nec_parser->margin_ticks) && in nec_parse_logic0()
77 …nec_check_in_range(item.duration1, nec_parser->payload_logic0_low_ticks, nec_parser->margin_ticks); in nec_parse_logic0()
85 …_check_in_range(item.duration0, nec_parser->payload_logic1_high_ticks, nec_parser->margin_ticks) && in nec_parse_logic1()
86 …nec_check_in_range(item.duration1, nec_parser->payload_logic1_low_ticks, nec_parser->margin_ticks); in nec_parse_logic1()
114 …nec_check_in_range(item.duration0, nec_parser->repeat_code_high_ticks, nec_parser->margin_ticks) && in nec_parse_repeat_frame()
[all …]
Dir_parser_rmt_rc5.c39 uint32_t margin_ticks; member
47 …ic inline bool rc5_check_in_range(uint32_t raw_ticks, uint32_t target_ticks, uint32_t margin_ticks) in rc5_check_in_range() argument
49 … return (raw_ticks < (target_ticks + margin_ticks)) && (raw_ticks > (target_ticks - margin_ticks)); in rc5_check_in_range()
66 return (duration < (rc5_parser->pulse_duration_ticks + rc5_parser->margin_ticks)) && in rc5_duration_one_unit()
67 (duration > (rc5_parser->pulse_duration_ticks - rc5_parser->margin_ticks)); in rc5_duration_one_unit()
72 return (duration < (rc5_parser->pulse_duration_ticks * 2 + rc5_parser->margin_ticks)) && in rc5_duration_two_unit()
73 (duration > (rc5_parser->pulse_duration_ticks * 2 - rc5_parser->margin_ticks)); in rc5_duration_two_unit()
158 rc5_parser->margin_ticks = (uint32_t)(ratio * config->margin_us); in ir_parser_rmt_new_rc5()