Searched refs:nec_parser (Results 1 – 1 of 1) sorted by relevance
61 static bool nec_parse_head(nec_parser_t *nec_parser) in nec_parse_head() argument63 nec_parser->cursor = 0; in nec_parse_head()64 rmt_item32_t item = nec_parser->buffer[nec_parser->cursor]; in nec_parse_head()65 bool ret = (item.level0 == nec_parser->inverse) && (item.level1 != nec_parser->inverse) && in nec_parse_head()66 …nec_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()68 nec_parser->cursor += 1; in nec_parse_head()72 static bool nec_parse_logic0(nec_parser_t *nec_parser) in nec_parse_logic0() argument74 rmt_item32_t item = nec_parser->buffer[nec_parser->cursor]; in nec_parse_logic0()75 bool ret = (item.level0 == nec_parser->inverse) && (item.level1 != nec_parser->inverse) && in nec_parse_logic0()[all …]