comparison rvinterf/tmsh/rftablewr.c @ 141:6b01d4ef85c3

fc-tmsh: save-tx-ramp command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 26 Feb 2017 23:37:56 +0000
parents 3803f838e1f3
children d0e482314513
comparison
equal deleted inserted replaced
140:e6c265bf5a6d 141:6b01d4ef85c3
187 fprintf(outf, "%5u\t# g_magic\n", get_u16(bin)); 187 fprintf(outf, "%5u\t# g_magic\n", get_u16(bin));
188 fprintf(outf, "%5u\t# lna_att\n", get_u16(bin + 2)); 188 fprintf(outf, "%5u\t# lna_att\n", get_u16(bin + 2));
189 fprintf(outf, "%5u\t# lna_switch_thr_low\n", get_u16(bin + 4)); 189 fprintf(outf, "%5u\t# lna_switch_thr_low\n", get_u16(bin + 4));
190 fprintf(outf, "%5u\t# lna_switch_thr_high\n", get_u16(bin + 6)); 190 fprintf(outf, "%5u\t# lna_switch_thr_high\n", get_u16(bin + 6));
191 } 191 }
192
193 void
194 write_tx_ramp(bin, outf)
195 u_char *bin;
196 FILE *outf;
197 {
198 int i;
199
200 fputs("ramp-up ", outf);
201 for (i = 0; i < 16; i++)
202 fprintf(outf, " %3u", bin[i]);
203 putc('\n', outf);
204 fputs("ramp-down", outf);
205 for (i = 0; i < 16; i++)
206 fprintf(outf, " %3u", bin[i+16]);
207 }