comparison trau-decode/parse-main.c @ 4:d9c095357c32

trau-parse: check and report EFR CRC
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 24 May 2024 09:16:35 +0000
parents b2ef2c80fef1
children bf5c9fb431b8
comparison
equal deleted inserted replaced
3:64b15810dc4c 4:d9c095357c32
117 case 0x02: 117 case 0x02:
118 case 0x1C: 118 case 0x1C:
119 collect_d_bits(); 119 collect_d_bits();
120 print_fr_frame(d_bits); 120 print_fr_frame(d_bits);
121 break; 121 break;
122 case 0x1A:
123 collect_d_bits();
124 check_efr_crc(d_bits);
125 break;
122 } 126 }
123 printf(" C16=%u C17=%u C18=%u C19=%u C20=%u C21=%u\n", 127 printf(" C16=%u C17=%u C18=%u C19=%u C20=%u C21=%u\n",
124 frame_bits[310], frame_bits[311], frame_bits[312], 128 frame_bits[310], frame_bits[311], frame_bits[312],
125 frame_bits[313], frame_bits[314], frame_bits[315]); 129 frame_bits[313], frame_bits[314], frame_bits[315]);
126 printf(" T1=%u T2=%u T3=%u T4=%u\n", frame_bits[316], frame_bits[317], 130 printf(" T1=%u T2=%u T3=%u T4=%u\n", frame_bits[316], frame_bits[317],