Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/examples/peripherals/rmt/ir_protocols/components/infrared_tools/src/
Dir_parser_rmt_rc5.c55 rc5_parser_t *rc5_parser = __containerof(parser, rc5_parser_t, parent); in rc5_parser_input() local
56 rc5_parser->buffer = raw_data; in rc5_parser_input()
57 rc5_parser->buffer_len = length; in rc5_parser_input()
64 static inline bool rc5_duration_one_unit(rc5_parser_t *rc5_parser, uint32_t duration) in rc5_duration_one_unit() argument
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()
70 static inline bool rc5_duration_two_unit(rc5_parser_t *rc5_parser, uint32_t duration) in rc5_duration_two_unit() argument
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()
86 rc5_parser_t *rc5_parser = __containerof(parser, rc5_parser_t, parent); in rc5_parser_get_scan_code() local
[all …]