FreeCalypso > hg > freecalypso-tools
changeset 282:90c475877d34
librftab writer: added function to write Tx ramps tables
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 17 Nov 2017 23:48:49 +0000 |
parents | feb2ee302d25 |
children | 64bb50fc470f |
files | librftab/rftablewr.c |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/librftab/rftablewr.c Fri Nov 17 23:46:27 2017 +0000 +++ b/librftab/rftablewr.c Fri Nov 17 23:48:49 2017 +0000 @@ -208,3 +208,19 @@ fprintf(outf, " %3u", bin[i+16]); putc('\n', outf); } + +void +write_tx_ramps_table(bin, outf) + u_char *bin; + FILE *outf; +{ + int i; + u_char *p = bin; + + fputs("rf_table tx-ramps\n", outf); + for (i = 0; i < 16; i++) { + fprintf(outf, "\n# Tx ramp template %d:\n\n"); + write_tx_ramp(p, outf); + p += 32; + } +}