view autocal/txband.h @ 124:9f09a7c3607a

fc-rfcal-txband: level error tolerance tightened to 0.75 dB
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 12 Jan 2019 20:15:17 +0000
parents 4c3f4231a021
children
line wrap: on
line source

/* 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;
	unsigned	ref_subband;
	unsigned	*calchan_selections;
	unsigned	*calchan_plnum;
};

#define	MAX_BASIS_POINTS	15
#define	MAX_TX_LEVELS		16

struct tx_basis_point {
	unsigned	apc;
	vout_t		vout;
	vout_t		slope;
};

struct tx_level {
	double		target;
	unsigned	apc;
	vout_t		slope;
};