FreeCalypso > hg > vband-misc
comparison efr-sid/mk-sid-test2.c @ 50:0db059f4632d
efr-sid OS#6538: more sensible 2-bit errors
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 12 Aug 2024 02:49:28 +0000 |
parents | 2daadef1e70d |
children |
comparison
equal
deleted
inserted
replaced
49:2daadef1e70d | 50:0db059f4632d |
---|---|
62 | 62 |
63 static void | 63 static void |
64 emit_2bit_errors() | 64 emit_2bit_errors() |
65 { | 65 { |
66 uint8_t frame_bits[TOTAL_BITS]; | 66 uint8_t frame_bits[TOTAL_BITS]; |
67 unsigned n; | |
67 | 68 |
68 bcopy(input_frame, frame_bits, TOTAL_BITS); | 69 for (n = 0; n < 48; n++) { |
69 frame_bits[SID_codeword_bit_idx[3]] = 0; | 70 bcopy(input_frame, frame_bits, TOTAL_BITS); |
70 frame_bits[SID_codeword_bit_idx[14]] = 0; | 71 frame_bits[SID_codeword_bit_idx[n]] = 0; |
71 emit_out_frame(frame_bits); | 72 frame_bits[SID_codeword_bit_idx[n + 47]] = 0; |
72 bcopy(input_frame, frame_bits, TOTAL_BITS); | 73 emit_out_frame(frame_bits); |
73 frame_bits[SID_codeword_bit_idx[15]] = 0; | 74 } |
74 frame_bits[SID_codeword_bit_idx[92]] = 0; | |
75 emit_out_frame(frame_bits); | |
76 bcopy(input_frame, frame_bits, TOTAL_BITS); | |
77 frame_bits[SID_codeword_bit_idx[65]] = 0; | |
78 frame_bits[SID_codeword_bit_idx[35]] = 0; | |
79 emit_out_frame(frame_bits); | |
80 bcopy(input_frame, frame_bits, TOTAL_BITS); | |
81 frame_bits[SID_codeword_bit_idx[89]] = 0; | |
82 frame_bits[SID_codeword_bit_idx[79]] = 0; | |
83 emit_out_frame(frame_bits); | |
84 bcopy(input_frame, frame_bits, TOTAL_BITS); | |
85 frame_bits[SID_codeword_bit_idx[32]] = 0; | |
86 frame_bits[SID_codeword_bit_idx[38]] = 0; | |
87 emit_out_frame(frame_bits); | |
88 bcopy(input_frame, frame_bits, TOTAL_BITS); | |
89 frame_bits[SID_codeword_bit_idx[46]] = 0; | |
90 frame_bits[SID_codeword_bit_idx[26]] = 0; | |
91 emit_out_frame(frame_bits); | |
92 } | 75 } |
93 | 76 |
94 static void | 77 static void |
95 emit_15bit_errors() | 78 emit_15bit_errors() |
96 { | 79 { |