diff 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
line wrap: on
line diff
--- a/rvinterf/tmsh/rftablewr.c	Sun Feb 26 23:26:30 2017 +0000
+++ b/rvinterf/tmsh/rftablewr.c	Sun Feb 26 23:37:56 2017 +0000
@@ -189,3 +189,19 @@
 	fprintf(outf, "%5u\t# lna_switch_thr_low\n", get_u16(bin + 4));
 	fprintf(outf, "%5u\t# lna_switch_thr_high\n", get_u16(bin + 6));
 }
+
+void
+write_tx_ramp(bin, outf)
+	u_char *bin;
+	FILE *outf;
+{
+	int i;
+
+	fputs("ramp-up  ", outf);
+	for (i = 0; i < 16; i++)
+		fprintf(outf, " %3u", bin[i]);
+	putc('\n', outf);
+	fputs("ramp-down", outf);
+	for (i = 0; i < 16; i++)
+		fprintf(outf, " %3u", bin[i+16]);
+}