FreeCalypso > hg > fc-rfcal-tools
changeset 72:2db97ef5e169
autocal: started defining structures for fc-rfcal-txband
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 15 Jul 2017 17:58:14 +0000 |
parents | 784ce9f3a80a |
children | c9bd1f75029f |
files | autocal/txband.h autocal/txcalchan.h |
diffstat | 2 files changed, 42 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autocal/txband.h Sat Jul 15 17:58:14 2017 +0000 @@ -0,0 +1,33 @@ +/* internal structures for fc-rfcal-txband */ + +struct tx_calchan_range { + unsigned lower_bound; + unsigned upper_bound; + unsigned test_arfcn; +}; + +struct txcal_band { + char *name; + unsigned rfpw_std_band; + unsigned main_arfcn; + unsigned start_plnum; + unsigned end_plnum; + struct tx_calchan_range *calchan_ranges; +}; + +#define MAX_BASIS_POINTS 15 +#define MAX_TX_LEVELS 16 + +typedef double vout_t; + +struct tx_basis_point { + unsigned apc; + vout_t vout; + vout_t slope; +}; + +struct tx_level { + double target; + unsigned apc; + vout_t slope; +};
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autocal/txcalchan.h Sat Jul 15 17:58:14 2017 +0000 @@ -0,0 +1,9 @@ +/* definitions of the L1 Tx calchan structure and sizes */ + +#define TX_CALCHAN_ENTRIES 8 +#define TX_CALCHAN_TABLES 4 + +struct tx_calchan_entry { + uint16_t arfcn_limit; + uint16_t chan_cal; +};