FreeCalypso > hg > fc-rfcal-tools
comparison 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 |
comparison
equal
deleted
inserted
replaced
59:c87067884da7 | 60:81e8f7e99d89 |
---|---|
1 /* | |
2 * This module contains the RF table upload code for fc-rfcal-rxband. | |
3 */ | |
4 | |
5 #include <stdio.h> | |
6 #include <stdlib.h> | |
7 #include <stdint.h> | |
8 #include <endian.h> | |
9 #include <rvinterf/l1tm.h> | |
10 #include <rvinterf/exitcodes.h> | |
11 #include "rxband.h" | |
12 #include "rxtables.h" | |
13 | |
14 extern struct rxcal_band *rxcal_band; | |
15 | |
16 upload_gmagic(Gmagic) | |
17 unsigned Gmagic; | |
18 { | |
19 struct rx_agc_params agcparams; | |
20 | |
21 do_rftr(RX_AGC_PARAMS, &agcparams, sizeof agcparams); | |
22 agcparams.g_magic = htole16(Gmagic); | |
23 do_rftw(RX_AGC_PARAMS, &agcparams, sizeof agcparams); | |
24 return(0); | |
25 } |