FreeCalypso > hg > fc-rfcal-tools
diff autocal/rxupload.c @ 60:81e8f7e99d89
fc-rfcal-rxband: upload of GMagic to DUT implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 27 May 2017 23:35:06 +0000 |
parents | |
children | 0bf853d1b68e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autocal/rxupload.c Sat May 27 23:35:06 2017 +0000 @@ -0,0 +1,25 @@ +/* + * This module contains the RF table upload code for fc-rfcal-rxband. + */ + +#include <stdio.h> +#include <stdlib.h> +#include <stdint.h> +#include <endian.h> +#include <rvinterf/l1tm.h> +#include <rvinterf/exitcodes.h> +#include "rxband.h" +#include "rxtables.h" + +extern struct rxcal_band *rxcal_band; + +upload_gmagic(Gmagic) + unsigned Gmagic; +{ + struct rx_agc_params agcparams; + + do_rftr(RX_AGC_PARAMS, &agcparams, sizeof agcparams); + agcparams.g_magic = htole16(Gmagic); + do_rftw(RX_AGC_PARAMS, &agcparams, sizeof agcparams); + return(0); +}