This started as a rough implementation of the SIRC infrared transmission protocol as used by Sony TV and equipment, aimed at being used with CircuitPython.
Following from that, proper decoding of NEC commands was also added, making the project name a misnomer.
Please see SB-Projects for a lot of information about Infrared protocols, including SIRC and NEC.