Check whether a duration is within expected range
Create RMT encoder for encoding IR NEC frame into RMT symbols
Check whether a RMT symbol represents NEC logic zero
Check whether a RMT symbol represents NEC logic one
Decode RMT symbols into NEC scan code and print the result
Check whether the RMT symbols represent NEC repeat code
Decode RMT symbols into NEC address and command