-#endif\r
-\r
-#define IRMP_TIMEOUT_LEN (PAUSE_LEN)(F_INTERRUPTS * IRMP_TIMEOUT_TIME + 0.5)\r
-\r
-/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
- * IR protocols\r
- *---------------------------------------------------------------------------------------------------------------------------------------------------\r
- */\r
-#define IRMP_SIRCS_PROTOCOL 1 // Sony\r
-#define IRMP_NEC_PROTOCOL 2 // NEC, Pioneer, JVC, Toshiba, NoName etc.\r
-#define IRMP_SAMSUNG_PROTOCOL 3 // Samsung\r
-#define IRMP_MATSUSHITA_PROTOCOL 4 // Matsushita\r
-#define IRMP_KASEIKYO_PROTOCOL 5 // Kaseikyo (Panasonic etc)\r
-#define IRMP_RECS80_PROTOCOL 6 // Philips, Thomson, Nordmende, Telefunken, Saba\r
-#define IRMP_RC5_PROTOCOL 7 // Philips etc\r
-#define IRMP_DENON_PROTOCOL 8 // Denon, Sharp\r
-#define IRMP_RC6_PROTOCOL 9 // Philips etc\r
-#define IRMP_SAMSUNG32_PROTOCOL 10 // Samsung32: no sync pulse at bit 16, length 32 instead of 37\r
-#define IRMP_APPLE_PROTOCOL 11 // Apple, very similar to NEC\r
-#define IRMP_RECS80EXT_PROTOCOL 12 // Philips, Technisat, Thomson, Nordmende, Telefunken, Saba\r
-#define IRMP_NUBERT_PROTOCOL 13 // Nubert\r
-#define IRMP_BANG_OLUFSEN_PROTOCOL 14 // Bang & Olufsen\r
-#define IRMP_GRUNDIG_PROTOCOL 15 // Grundig\r
-#define IRMP_NOKIA_PROTOCOL 16 // Nokia\r
-#define IRMP_SIEMENS_PROTOCOL 17 // Siemens, e.g. Gigaset\r
-#define IRMP_FDC_PROTOCOL 18 // FDC keyboard\r
-#define IRMP_RCCAR_PROTOCOL 19 // RC Car\r
-#define IRMP_JVC_PROTOCOL 20 // JVC (NEC with 16 bits)\r
-#define IRMP_RC6A_PROTOCOL 21 // RC6A, e.g. Kathrein, XBOX\r
-#define IRMP_NIKON_PROTOCOL 22 // Nikon\r
-#define IRMP_RUWIDO_PROTOCOL 23 // Ruwido, e.g. T-Home Mediareceiver\r
-#define IRMP_IR60_PROTOCOL 24 // IR60 (SAB2008)\r
-#define IRMP_KATHREIN_PROTOCOL 25 // Kathrein\r
-#define IRMP_NETBOX_PROTOCOL 26 // Netbox keyboard (bitserial)\r
-#define IRMP_NEC16_PROTOCOL 27 // NEC with 16 bits (incl. sync)\r
-#define IRMP_NEC42_PROTOCOL 28 // NEC with 42 bits\r
-#define IRMP_LEGO_PROTOCOL 29 // LEGO Power Functions RC\r
-#define IRMP_THOMSON_PROTOCOL 30 // Thomson\r
-\r
-#define IRMP_N_PROTOCOLS 30 // number of supported protocols\r
-\r
-// some flags of struct IRMP_PARAMETER:\r
-#define IRMP_PARAM_FLAG_IS_MANCHESTER 0x01\r
-#define IRMP_PARAM_FLAG_1ST_PULSE_IS_1 0x02\r
-#define IRMP_PARAM_FLAG_IS_SERIAL 0x04\r
-\r
-#define SIRCS_START_BIT_PULSE_TIME 2400.0e-6 // 2400 usec pulse\r
-#define SIRCS_START_BIT_PAUSE_TIME 600.0e-6 // 600 usec pause\r
-#define SIRCS_1_PULSE_TIME 1200.0e-6 // 1200 usec pulse\r
-#define SIRCS_0_PULSE_TIME 600.0e-6 // 600 usec pulse\r
-#define SIRCS_PAUSE_TIME 600.0e-6 // 600 usec pause\r
-#define SIRCS_FRAMES 3 // SIRCS sends each frame 3 times\r
-#define SIRCS_AUTO_REPETITION_PAUSE_TIME 25.0e-3 // auto repetition after 25ms\r
-#define SIRCS_FRAME_REPEAT_PAUSE_TIME 25.0e-3 // frame repeat after 25ms\r
-#define SIRCS_ADDRESS_OFFSET 15 // skip 15 bits\r
-#define SIRCS_ADDRESS_LEN 5 // read up to 5 address bits\r
-#define SIRCS_COMMAND_OFFSET 0 // skip 0 bits\r
-#define SIRCS_COMMAND_LEN 15 // read 12-15 command bits\r
-#define SIRCS_MINIMUM_DATA_LEN 12 // minimum data length\r
-#define SIRCS_COMPLETE_DATA_LEN 20 // complete length - may be up to 20\r
-#define SIRCS_STOP_BIT 0 // has no stop bit\r
-#define SIRCS_LSB 1 // LSB...MSB\r
-#define SIRCS_FLAGS 0 // flags\r
-\r
-#define NEC_START_BIT_PULSE_TIME 9000.0e-6 // 9000 usec pulse\r
-#define NEC_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause\r
-#define NEC_REPEAT_START_BIT_PAUSE_TIME 2250.0e-6 // 2250 usec pause\r
-#define NEC_PULSE_TIME 560.0e-6 // 560 usec pulse\r
-#define NEC_1_PAUSE_TIME 1690.0e-6 // 1690 usec pause\r
-#define NEC_0_PAUSE_TIME 560.0e-6 // 560 usec pause\r
-#define NEC_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms\r
-#define NEC_ADDRESS_OFFSET 0 // skip 0 bits\r
-#define NEC_ADDRESS_LEN 16 // read 16 address bits\r
-#define NEC_COMMAND_OFFSET 16 // skip 16 bits (8 address + 8 /address)\r
-#define NEC_COMMAND_LEN 16 // read 16 bits (8 command + 8 /command)\r
-#define NEC_COMPLETE_DATA_LEN 32 // complete length\r
-#define NEC_STOP_BIT 1 // has stop bit\r
-#define NEC_LSB 1 // LSB...MSB\r
-#define NEC_FLAGS 0 // flags\r
-\r
-#define NEC42_ADDRESS_OFFSET 0 // skip 0 bits\r
-#define NEC42_ADDRESS_LEN 13 // read 13 address bits\r
-#define NEC42_COMMAND_OFFSET 26 // skip 26 bits (2 x 13 address bits)\r
-#define NEC42_COMMAND_LEN 8 // read 8 command bits\r
-#define NEC42_COMPLETE_DATA_LEN 42 // complete length (2 x 13 + 2 x 8)\r
-\r
-#define NEC16_ADDRESS_OFFSET 0 // skip 0 bits\r
-#define NEC16_ADDRESS_LEN 8 // read 8 address bits\r
-#define NEC16_COMMAND_OFFSET 8 // skip 8 bits (8 address)\r
-#define NEC16_COMMAND_LEN 8 // read 8 bits (8 command)\r
-#define NEC16_COMPLETE_DATA_LEN 16 // complete length\r
-\r
-#define SAMSUNG_START_BIT_PULSE_TIME 4500.0e-6 // 4500 usec pulse\r
-#define SAMSUNG_START_BIT_PAUSE_TIME 4500.0e-6 // 4500 usec pause\r
-#define SAMSUNG_PULSE_TIME 550.0e-6 // 550 usec pulse\r
-#define SAMSUNG_1_PAUSE_TIME 1450.0e-6 // 1450 usec pause\r
-#define SAMSUNG_0_PAUSE_TIME 450.0e-6 // 450 usec pause\r
-#define SAMSUNG_FRAME_REPEAT_PAUSE_TIME 25.0e-3 // frame repeat after 25ms\r
-#define SAMSUNG_ADDRESS_OFFSET 0 // skip 0 bits\r
-#define SAMSUNG_ADDRESS_LEN 16 // read 16 address bits\r
-#define SAMSUNG_ID_OFFSET 17 // skip 16 + 1 sync bit\r
-#define SAMSUNG_ID_LEN 4 // read 4 id bits\r
-#define SAMSUNG_COMMAND_OFFSET 21 // skip 16 + 1 sync + 4 data bits\r
-#define SAMSUNG_COMMAND_LEN 16 // read 16 command bits\r
-#define SAMSUNG_COMPLETE_DATA_LEN 37 // complete length\r
-#define SAMSUNG_STOP_BIT 1 // has stop bit\r
-#define SAMSUNG_LSB 1 // LSB...MSB?\r
-#define SAMSUNG_FLAGS 0 // flags\r
-\r
-#define SAMSUNG32_COMMAND_OFFSET 16 // skip 16 bits\r
-#define SAMSUNG32_COMMAND_LEN 16 // read 16 command bits\r
-#define SAMSUNG32_COMPLETE_DATA_LEN 32 // complete length\r
-#define SAMSUNG32_FRAMES 2 // SAMSUNG32 sends each frame 2 times\r
-#define SAMSUNG32_AUTO_REPETITION_PAUSE_TIME 47.0e-3 // repetition after 47 ms\r
-#define SAMSUNG32_FRAME_REPEAT_PAUSE_TIME 47.0e-3 // frame repeat after 40ms\r
-\r
-#define MATSUSHITA_START_BIT_PULSE_TIME 3488.0e-6 // 3488 usec pulse\r
-#define MATSUSHITA_START_BIT_PAUSE_TIME 3488.0e-6 // 3488 usec pause\r
-#define MATSUSHITA_PULSE_TIME 872.0e-6 // 872 usec pulse\r
-#define MATSUSHITA_1_PAUSE_TIME 2616.0e-6 // 2616 usec pause\r
-#define MATSUSHITA_0_PAUSE_TIME 872.0e-6 // 872 usec pause\r
-#define MATSUSHITA_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
-#define MATSUSHITA_ADDRESS_OFFSET 12 // skip 12 bits\r
-#define MATSUSHITA_ADDRESS_LEN 12 // read 12 address bits\r
-#define MATSUSHITA_COMMAND_OFFSET 0 // skip 0 bits\r
-#define MATSUSHITA_COMMAND_LEN 12 // read 12 bits (6 custom + 6 command)\r
-#define MATSUSHITA_COMPLETE_DATA_LEN 24 // complete length\r
-#define MATSUSHITA_STOP_BIT 1 // has stop bit\r
-#define MATSUSHITA_LSB 1 // LSB...MSB?\r
-#define MATSUSHITA_FLAGS 0 // flags\r
-\r
-#define KASEIKYO_START_BIT_PULSE_TIME 3380.0e-6 // 3380 usec pulse\r
-#define KASEIKYO_START_BIT_PAUSE_TIME 1690.0e-6 // 1690 usec pause\r
-#define KASEIKYO_PULSE_TIME 423.0e-6 // 525 usec pulse\r
-#define KASEIKYO_1_PAUSE_TIME 1269.0e-6 // 525 usec pause\r
-#define KASEIKYO_0_PAUSE_TIME 423.0e-6 // 1690 usec pause\r
-#define KASEIKYO_AUTO_REPETITION_PAUSE_TIME 74.0e-3 // repetition after 74 ms\r
-#define KASEIKYO_FRAME_REPEAT_PAUSE_TIME 74.0e-3 // frame repeat after 74 ms\r
-#define KASEIKYO_ADDRESS_OFFSET 0 // skip 0 bits\r
-#define KASEIKYO_ADDRESS_LEN 16 // read 16 address bits\r
-#define KASEIKYO_COMMAND_OFFSET 28 // skip 28 bits (16 manufacturer & 4 parity & 8 genre)\r
-#define KASEIKYO_COMMAND_LEN 12 // read 12 command bits (10 real command & 2 id)\r
-#define KASEIKYO_COMPLETE_DATA_LEN 48 // complete length\r
-#define KASEIKYO_STOP_BIT 1 // has stop bit\r
-#define KASEIKYO_LSB 1 // LSB...MSB?\r
-#define KASEIKYO_FRAMES 2 // KASEIKYO sends 1st frame 2 times\r
-#define KASEIKYO_FLAGS 0 // flags\r
-\r
-#define RECS80_START_BIT_PULSE_TIME 158.0e-6 // 158 usec pulse\r
-#define RECS80_START_BIT_PAUSE_TIME 7432.0e-6 // 7432 usec pause\r
-#define RECS80_PULSE_TIME 158.0e-6 // 158 usec pulse\r
-#define RECS80_1_PAUSE_TIME 7432.0e-6 // 7432 usec pause\r
-#define RECS80_0_PAUSE_TIME 4902.0e-6 // 4902 usec pause\r
-#define RECS80_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
-#define RECS80_ADDRESS_OFFSET 1 // skip 1 bit (toggle bit)\r
-#define RECS80_ADDRESS_LEN 3 // read 3 address bits\r
-#define RECS80_COMMAND_OFFSET 4 // skip 4 bits (1 toggle + 3 address)\r
-#define RECS80_COMMAND_LEN 6 // read 6 command bits\r
-#define RECS80_COMPLETE_DATA_LEN 10 // complete length\r
-#define RECS80_STOP_BIT 1 // has stop bit\r
-#define RECS80_LSB 0 // MSB...LSB\r
-#define RECS80_FLAGS 0 // flags\r
-\r
-#define RC5_BIT_TIME 889.0e-6 // 889 usec pulse/pause\r
-#define RC5_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
-\r
-#define RC5_ADDRESS_OFFSET 1 // skip 1 bit (2nd start)\r
-#define RC5_ADDRESS_LEN 6 // read 1 toggle bit (for key repetition detection) + 5 address bits\r
-#define RC5_COMMAND_OFFSET 7 // skip 5 bits (2nd start + 1 toggle + 5 address)\r
-#define RC5_COMMAND_LEN 6 // read 6 command bits\r
-#define RC5_COMPLETE_DATA_LEN 13 // complete length\r
-#define RC5_STOP_BIT 0 // has no stop bit\r
-#define RC5_LSB 0 // MSB...LSB\r
-#define RC5_FLAGS IRMP_PARAM_FLAG_IS_MANCHESTER // flags\r