|
|
@@ -124,128 +124,128 @@ const uint32_t test_decoder_sirc_input1[] = { /* 121 timings */
|
|
|
26263, 2414, 611, 1192, 607, 544, 606, 1197, 602, 569, 606, 1197, 602, 539, 611, 540, 635, 1168, 606, 565, 610, 541, 608, 563, 587, 564,
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_decoder_sirc_expected1[] = {
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x60, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x60, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x60, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x65, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x65, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x65, false},
|
|
|
- {IrdaProtocolSIRC20, 0x410, 0x17, false},
|
|
|
- {IrdaProtocolSIRC20, 0x410, 0x17, false},
|
|
|
- {IrdaProtocolSIRC20, 0x410, 0x17, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x21, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x21, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x21, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7B, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7B, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7B, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x78, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x78, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x78, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x79, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x79, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x79, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7D, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7D, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x7D, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x73, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x73, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x73, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x13, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x13, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x13, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x13, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x12, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x12, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x12, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x12, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x30, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x30, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x30, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x39, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x39, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x39, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x31, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x31, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x31, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x34, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x34, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x34, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x32, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x32, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x32, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x33, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x33, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x33, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x0F, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x0F, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x0F, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x38, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x38, false},
|
|
|
- {IrdaProtocolSIRC20, 0x73A, 0x38, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x10, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x01, 0x2F, false},
|
|
|
- {IrdaProtocolSIRC, 0x01, 0x2F, false},
|
|
|
- {IrdaProtocolSIRC, 0x01, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x01, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x01, 0x15, false},
|
|
|
- {IrdaProtocolSIRC, 0x01, 0x15, false},
|
|
|
+const InfraredMessage test_decoder_sirc_expected1[] = {
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x60, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x60, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x60, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x65, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x65, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x65, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x410, 0x17, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x410, 0x17, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x410, 0x17, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x21, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x21, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x21, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7B, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7B, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7B, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x78, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x78, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x78, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x79, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x79, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x79, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7A, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7C, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7D, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7D, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x7D, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x73, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x73, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x73, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x13, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x13, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x13, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x13, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x12, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x12, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x12, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x12, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x30, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x30, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x30, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x39, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x39, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x39, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x31, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x31, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x31, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x34, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x34, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x34, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x32, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x32, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x32, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x33, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x33, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x33, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x0F, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x0F, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x0F, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x38, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x38, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x73A, 0x38, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x10, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x01, 0x2F, false},
|
|
|
+ {InfraredProtocolSIRC, 0x01, 0x2F, false},
|
|
|
+ {InfraredProtocolSIRC, 0x01, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x01, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x01, 0x15, false},
|
|
|
+ {InfraredProtocolSIRC, 0x01, 0x15, false},
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -284,23 +284,23 @@ const uint32_t test_decoder_sirc_input2[] = {
|
|
|
1000000, 2400, 600, 1200, 600, 1200, 600, 600, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 600, 600,
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_decoder_sirc_expected2[] = {
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
+const InfraredMessage test_decoder_sirc_expected2[] = {
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
/* failed - 13 data bits */
|
|
|
|
|
|
- {IrdaProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
+ {InfraredProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
/* failed - 2 data bits */
|
|
|
- {IrdaProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
+ {InfraredProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
/* failed - sudden end */
|
|
|
- {IrdaProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
+ {InfraredProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
/* failed */
|
|
|
- {IrdaProtocolSIRC, 0x0A, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC, 0x0A, 0x55, false},
|
|
|
|
|
|
- {IrdaProtocolSIRC, 0x00, 0x00, false},
|
|
|
+ {InfraredProtocolSIRC, 0x00, 0x00, false},
|
|
|
|
|
|
- {IrdaProtocolSIRC, 0x0D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC, 0x0D, 0x53, false},
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -334,18 +334,18 @@ const uint32_t test_decoder_sirc_input3[] = {
|
|
|
10000, 2400, 600, 1200, 600, 1200, 600, 600, 600, 600, 600, 1200, 600, 600, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 1200,
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_decoder_sirc_expected3[] = {
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0xFD, 0x13, false},
|
|
|
+const InfraredMessage test_decoder_sirc_expected3[] = {
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x0D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0xFD, 0x13, false},
|
|
|
};
|
|
|
|
|
|
const uint32_t test_decoder_sirc_input4[] = {
|
|
|
@@ -357,13 +357,13 @@ const uint32_t test_decoder_sirc_input4[] = {
|
|
|
1000000, 2400, 600, 1200, 600, 1200, 600, 600, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 600,
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_decoder_sirc_expected4[] = {
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false}, // {IrdaProtocolSIRC20, 0x15, 0x3ED3, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+const InfraredMessage test_decoder_sirc_expected4[] = {
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false}, // {InfraredProtocolSIRC20, 0x15, 0x3ED3, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
};
|
|
|
|
|
|
const uint32_t test_decoder_sirc_input5[] = {
|
|
|
@@ -396,48 +396,48 @@ const uint32_t test_decoder_sirc_input5[] = {
|
|
|
10000, 2400, 600, 1200, 600, 1200, 600, 600, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 600,
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_decoder_sirc_expected5[] = {
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
-
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
-
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
-
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+const InfraredMessage test_decoder_sirc_expected5[] = {
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC20, 0xFB5, 0x53, false},
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_encoder_sirc_input1[] = {
|
|
|
- {IrdaProtocolSIRC, 0xA, 0x55, false},
|
|
|
+const InfraredMessage test_encoder_sirc_input1[] = {
|
|
|
+ {InfraredProtocolSIRC, 0xA, 0x55, false},
|
|
|
};
|
|
|
|
|
|
const uint32_t test_encoder_sirc_expected1[] = {
|
|
|
10000, 2400, 600, 1200, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 600,
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_encoder_sirc_input2[] = {
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
+const InfraredMessage test_encoder_sirc_input2[] = {
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
};
|
|
|
|
|
|
const uint32_t test_encoder_sirc_expected2[] = {
|
|
|
@@ -446,34 +446,34 @@ const uint32_t test_encoder_sirc_expected2[] = {
|
|
|
18600, 2400, 600, 1200, 600, 1200, 600, 600, 600, 600, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 600, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 1200, 600, 600,
|
|
|
};
|
|
|
|
|
|
-const IrdaMessage test_sirc[] = {
|
|
|
- {IrdaProtocolSIRC20, 0x1FFF, 0x7F, false},
|
|
|
- {IrdaProtocolSIRC20, 0x1FFF, 0x7F, true},
|
|
|
- {IrdaProtocolSIRC20, 0x1FFF, 0x7F, true},
|
|
|
- {IrdaProtocolSIRC, 0x00, 0x00, false},
|
|
|
- {IrdaProtocolSIRC, 0x00, 0x00, true},
|
|
|
- {IrdaProtocolSIRC, 0x00, 0x00, true},
|
|
|
-
|
|
|
- {IrdaProtocolSIRC, 0x1A, 0x22, false},
|
|
|
- {IrdaProtocolSIRC, 0x1A, 0x22, true},
|
|
|
- {IrdaProtocolSIRC, 0x1A, 0x22, true},
|
|
|
- {IrdaProtocolSIRC, 0x17, 0x0A, false},
|
|
|
-
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
- {IrdaProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
- {IrdaProtocolSIRC15, 0x71, 0x0, false},
|
|
|
- {IrdaProtocolSIRC15, 0x15, 0x01, false},
|
|
|
- {IrdaProtocolSIRC15, 0x01, 0x15, false},
|
|
|
-
|
|
|
- {IrdaProtocolSIRC20, 0xAA, 0x55, false},
|
|
|
- {IrdaProtocolSIRC20, 0x331, 0x71, false},
|
|
|
-
|
|
|
- {IrdaProtocolSIRC, 0x00, 0x00, false},
|
|
|
- {IrdaProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
- {IrdaProtocolSIRC15, 0x00, 0x00, false},
|
|
|
- {IrdaProtocolSIRC15, 0xFF, 0x7F, false},
|
|
|
- {IrdaProtocolSIRC20, 0x00, 0x00, false},
|
|
|
- {IrdaProtocolSIRC20, 0x1FFF, 0x7F, false},
|
|
|
+const InfraredMessage test_sirc[] = {
|
|
|
+ {InfraredProtocolSIRC20, 0x1FFF, 0x7F, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x1FFF, 0x7F, true},
|
|
|
+ {InfraredProtocolSIRC20, 0x1FFF, 0x7F, true},
|
|
|
+ {InfraredProtocolSIRC, 0x00, 0x00, false},
|
|
|
+ {InfraredProtocolSIRC, 0x00, 0x00, true},
|
|
|
+ {InfraredProtocolSIRC, 0x00, 0x00, true},
|
|
|
+
|
|
|
+ {InfraredProtocolSIRC, 0x1A, 0x22, false},
|
|
|
+ {InfraredProtocolSIRC, 0x1A, 0x22, true},
|
|
|
+ {InfraredProtocolSIRC, 0x1A, 0x22, true},
|
|
|
+ {InfraredProtocolSIRC, 0x17, 0x0A, false},
|
|
|
+
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
+ {InfraredProtocolSIRC15, 0x7D, 0x53, true},
|
|
|
+ {InfraredProtocolSIRC15, 0x71, 0x0, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x15, 0x01, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x01, 0x15, false},
|
|
|
+
|
|
|
+ {InfraredProtocolSIRC20, 0xAA, 0x55, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x331, 0x71, false},
|
|
|
+
|
|
|
+ {InfraredProtocolSIRC, 0x00, 0x00, false},
|
|
|
+ {InfraredProtocolSIRC, 0x1F, 0x7F, false},
|
|
|
+ {InfraredProtocolSIRC15, 0x00, 0x00, false},
|
|
|
+ {InfraredProtocolSIRC15, 0xFF, 0x7F, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x00, 0x00, false},
|
|
|
+ {InfraredProtocolSIRC20, 0x1FFF, 0x7F, false},
|
|
|
};
|
|
|
|