SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
fcdproconst.cpp
Go to the documentation of this file.
1 /*
2  * fcdproconst.cpp
3  *
4  * Created on: Sep 7, 2015
5  * Author: f4exb
6  */
7 
8 #include "fcdproconst.h"
9 
11  {FCDPRO_TLG_N5_0DB, "-5dB"},
12  {FCDPRO_TLG_N2_5DB, "-2.5dB"},
13  {FCDPRO_TLG_P0_0DB, "0dB"},
14  {FCDPRO_TLG_P2_5DB, "2.5dB"},
15  {FCDPRO_TLG_P5_0DB, "5dB"},
16  {FCDPRO_TLG_P7_5DB, "7.5dB"},
17  {FCDPRO_TLG_P10_0DB, "10dB"},
18  {FCDPRO_TLG_P12_5DB, "12.5dB"},
19  {FCDPRO_TLG_P15_0DB, "15dB"},
20  {FCDPRO_TLG_P17_5DB, "17.5dB"},
21  {FCDPRO_TLG_P20_0DB, "20dB"},
22  {FCDPRO_TLG_P25_0DB, "25dB"},
23  {FCDPRO_TLG_P30_0DB, "30dB"}
24 };
25 
27 {
28  return sizeof(lna_gains) / sizeof(fcdpro_lna_gain);
29 }
30 
32  {FCDPRO_TLE_OFF, "Off"},
33  {FCDPRO_TLE_0, "0"},
34  {FCDPRO_TLE_1, "1"},
35  {FCDPRO_TLE_2, "2"},
36  {FCDPRO_TLE_3, "3"}
37 };
38 
40 {
41  return sizeof(lna_enhances) / sizeof(fcdpro_lna_enhance);
42 }
43 
45  {FCDPRO_TB_VHF2, "VHF2"},
46  {FCDPRO_TB_VHF3, "VHF3"},
47  {FCDPRO_TB_UHF, "UHF"},
48  {FCDPRO_TB_LBAND, "L"}
49 };
50 
52 {
53  return sizeof(bands) / sizeof(fcdpro_band);
54 }
55 
57  // Band 0, VHF II
58  {FCDPRO_TRF_LPF268MHZ, "LP268M"},
59  {FCDPRO_TRF_LPF299MHZ, "LP299M"},
60  // Band 1, VHF III
61  {FCDPRO_TRF_LPF509MHZ, "LP509M"},
62  {FCDPRO_TRF_LPF656MHZ, "LP656M"},
63  // Band 2, UHF
64  {FCDPRO_TRF_BPF360MHZ, "BP360M"},
65  {FCDPRO_TRF_BPF380MHZ, "BP390M"},
66  {FCDPRO_TRF_BPF405MHZ, "BP405M"},
67  {FCDPRO_TRF_BPF425MHZ, "BP425M"},
68  {FCDPRO_TRF_BPF450MHZ, "BP450M"},
69  {FCDPRO_TRF_BPF475MHZ, "BP475M"},
70  {FCDPRO_TRF_BPF505MHZ, "BP505M"},
71  {FCDPRO_TRF_BPF540MHZ, "BP540M"},
72  {FCDPRO_TRF_BPF575MHZ, "BP575M"},
73  {FCDPRO_TRF_BPF615MHZ, "BP615M"},
74  {FCDPRO_TRF_BPF670MHZ, "BP670M"},
75  {FCDPRO_TRF_BPF720MHZ, "BP720M"},
76  {FCDPRO_TRF_BPF760MHZ, "BP760M"},
77  {FCDPRO_TRF_BPF840MHZ, "BP840M"},
78  {FCDPRO_TRF_BPF890MHZ, "BP890M"},
79  {FCDPRO_TRF_BPF970MHZ, "BP970M"},
80  // Band 2, L band
81  {FCDPRO_TRF_BPF1300MHZ, "BP1.3G"},
82  {FCDPRO_TRF_BPF1320MHZ, "BP1.32G"},
83  {FCDPRO_TRF_BPF1360MHZ, "BP1.36G"},
84  {FCDPRO_TRF_BPF1410MHZ, "BP1.41G"},
85  {FCDPRO_TRF_BPF1445MHZ, "BP1445M"},
86  {FCDPRO_TRF_BPF1460MHZ, "BP1.46G"},
87  {FCDPRO_TRF_BPF1490MHZ, "BP1.49G"},
88  {FCDPRO_TRF_BPF1530MHZ, "BP1.53G"},
89  {FCDPRO_TRF_BPF1560MHZ, "BP1.56G"},
90  {FCDPRO_TRF_BPF1590MHZ, "BP1.59G"},
91  {FCDPRO_TRF_BPF1640MHZ, "BP1.64G"},
92  {FCDPRO_TRF_BPF1660MHZ, "BP1.66G"},
93  {FCDPRO_TRF_BPF1680MHZ, "BP1.68G"},
94  {FCDPRO_TRF_BPF1700MHZ, "BP1.7G"},
95  {FCDPRO_TRF_BPF1720MHZ, "BP1.72G"},
96  {FCDPRO_TRF_BPF1750MHZ, "BP1.75G"}
97 };
98 
100 {
101  return sizeof(rf_filters) / sizeof(fcdpro_rf_filter);
102 }
103 
105  {FCDPRO_TMG_P4_0DB, "0dB"},
106  {FCDPRO_TMG_P12_0DB, "12dB"}
107 };
108 
110 {
111  return sizeof(mixer_gains) / sizeof(fcdpro_mixer_gain);
112 }
113 
115  {FCDPRO_TBC_LBAND, "L"},
116  {FCDPRO_TBC_1, "1"},
117  {FCDPRO_TBC_2, "2"},
118  {FCDPRO_TBC_VUBAND, "VU"}
119 };
120 
122 {
123  return sizeof(bias_currents) / sizeof(fcdpro_bias_current);
124 }
125 
127  {FCDPRO_TMF_27_0MHZ, "27M"},
128  {FCDPRO_TMF_4_6MHZ, "4.6M"},
129  {FCDPRO_TMF_4_2MHZ, "4.2M"},
130  {FCDPRO_TMF_3_8MHZ, "3.8M"},
131  {FCDPRO_TMF_3_4MHZ, "3.4M"},
132  {FCDPRO_TMF_3_0MHZ, "3.0M"},
133  {FCDPRO_TMF_2_7MHZ, "2.7M"},
134  {FCDPRO_TMF_2_3MHZ, "2.3M"},
135  {FCDPRO_TMF_1_9MHZ, "1.9M"}
136 };
137 
139 {
140  return sizeof(mixer_filters) / sizeof(fcdpro_mixer_filter);
141 }
142 
144  {FCDPRO_TIG1_N3_0DB, "3dB"},
145  {FCDPRO_TIG1_P6_0DB, "6dB"}
146 };
147 
149 {
150  return sizeof(if_gains1) / sizeof(fcdpro_if_gain1);
151 }
152 
154  {FCDPRO_TIGM_LINEARITY, "Lin"},
155  {FCDPRO_TIGM_SENSITIVITY, "Sens"}
156 };
157 
159 {
160  return sizeof(if_gain_modes) / sizeof(fcdpro_if_gain_mode);
161 }
162 
164  {FCDPRO_TIRF_21_4MHZ, "21.4M"},
165  {FCDPRO_TIRF_21_0MHZ, "21.0M"},
166  {FCDPRO_TIRF_17_6MHZ, "17.6M"},
167  {FCDPRO_TIRF_14_7MHZ, "14.7M"},
168  {FCDPRO_TIRF_12_4MHZ, "12.4M"},
169  {FCDPRO_TIRF_10_6MHZ, "18.6M"},
170  {FCDPRO_TIRF_9_0MHZ, "9.0M"},
171  {FCDPRO_TIRF_7_7MHZ, "7.7M"},
172  {FCDPRO_TIRF_6_4MHZ, "6.4M"},
173  {FCDPRO_TIRF_5_3MHZ, "5.3M"},
174  {FCDPRO_TIRF_4_4MHZ, "4.4M"},
175  {FCDPRO_TIRF_3_4MHZ, "3.4M"},
176  {FCDPRO_TIRF_2_6MHZ, "2.6M"},
177  {FCDPRO_TIRF_1_8MHZ, "1.8M"},
178  {FCDPRO_TIRF_1_2MHZ, "1.2M"},
179  {FCDPRO_TIRF_1_0MHZ, "1.0M"}
180 };
181 
183 {
184  return sizeof(if_rc_filters) / sizeof(fcdpro_if_rc_filter);
185 }
186 
188  {FCDPRO_TIG2_P0_0DB, "0dB"},
189  {FCDPRO_TIG2_P3_0DB, "3dB"},
190  {FCDPRO_TIG2_P6_0DB, "6dB"},
191  {FCDPRO_TIG2_P9_0DB, "9dB"}
192 };
193 
195 {
196  return sizeof(if_gains2) / sizeof(fcdpro_if_gain2);
197 }
198 
200  {FCDPRO_TIG3_P0_0DB, "0dB"},
201  {FCDPRO_TIG3_P3_0DB, "3dB"},
202  {FCDPRO_TIG3_P6_0DB, "6dB"},
203  {FCDPRO_TIG3_P9_0DB, "9dB"}
204 };
205 
207 {
208  return sizeof(if_gains3) / sizeof(fcdpro_if_gain3);
209 }
210 
212  {FCDPRO_TIG4_P0_0DB, "0dB"},
213  {FCDPRO_TIG4_P1_0DB, "1dB"},
214  {FCDPRO_TIG4_P2_0DB, "2dB"},
215 };
216 
218 {
219  return sizeof(if_gains4) / sizeof(fcdpro_if_gain4);
220 }
221 
223  {FCDPRO_TIF_5_50MHZ, "5.5M"},
224  {FCDPRO_TIF_5_30MHZ, "5.3M"},
225  {FCDPRO_TIF_5_00MHZ, "5.0M"},
226  {FCDPRO_TIF_4_80MHZ, "4.8M"},
227  {FCDPRO_TIF_4_60MHZ, "4.6M"},
228  {FCDPRO_TIF_4_40MHZ, "4.4M"},
229  {FCDPRO_TIF_4_30MHZ, "4.3M"},
230  {FCDPRO_TIF_4_10MHZ, "4.1M"},
231  {FCDPRO_TIF_3_90MHZ, "3.9M"},
232  {FCDPRO_TIF_3_80MHZ, "3.8M"},
233  {FCDPRO_TIF_3_70MHZ, "3.7M"},
234  {FCDPRO_TIF_3_60MHZ, "3.6M"},
235  {FCDPRO_TIF_3_40MHZ, "3.4M"},
236  {FCDPRO_TIF_3_30MHZ, "3.3M"},
237  {FCDPRO_TIF_3_20MHZ, "3.2M"},
238  {FCDPRO_TIF_3_10MHZ, "3.1M"},
239  {FCDPRO_TIF_3_00MHZ, "3.0M"},
240  {FCDPRO_TIF_2_95MHZ, "2.95M"},
241  {FCDPRO_TIF_2_90MHZ, "2.9M"},
242  {FCDPRO_TIF_2_80MHZ, "2.8M"},
243  {FCDPRO_TIF_2_75MHZ, "2.75M"},
244  {FCDPRO_TIF_2_70MHZ, "2.7M"},
245  {FCDPRO_TIF_2_60MHZ, "2.6M"},
246  {FCDPRO_TIF_2_55MHZ, "2.55M"},
247  {FCDPRO_TIF_2_50MHZ, "2.5M"},
248  {FCDPRO_TIF_2_45MHZ, "2.45M"},
249  {FCDPRO_TIF_2_40MHZ, "2.4M"},
250  {FCDPRO_TIF_2_30MHZ, "2.3M"},
251  {FCDPRO_TIF_2_28MHZ, "2.28M"},
252  {FCDPRO_TIF_2_24MHZ, "2.24M"},
253  {FCDPRO_TIF_2_20MHZ, "2.2M"},
254  {FCDPRO_TIF_2_15MHZ, "2.15M"}
255 };
256 
258 {
259  return sizeof(if_filters) / sizeof(fcdpro_if_filter);
260 }
261 
263  {FCDPRO_TIG5_P3_0DB, "3dB"},
264  {FCDPRO_TIG5_P6_0DB, "6dB"},
265  {FCDPRO_TIG5_P9_0DB, "9dB"},
266  {FCDPRO_TIG5_P12_0DB, "12dB"},
267  {FCDPRO_TIG5_P15_0DB, "15dB"}
268 };
269 
271 {
272  return sizeof(if_gains5) / sizeof(fcdpro_if_gain5);
273 }
274 
276  {FCDPRO_TIG6_P3_0DB, "3dB"},
277  {FCDPRO_TIG6_P6_0DB, "6dB"},
278  {FCDPRO_TIG6_P9_0DB, "9dB"},
279  {FCDPRO_TIG6_P12_0DB, "12dB"},
280  {FCDPRO_TIG6_P15_0DB, "15dB"}
281 };
282 
284 {
285  return sizeof(if_gains6) / sizeof(fcdpro_if_gain6);
286 }
287 
288 
static int fcdpro_if_filter_nb_values()
static int fcdpro_rf_filter_nb_values()
Definition: fcdproconst.cpp:99
static const fcdpro_if_gain3 if_gains3[]
Definition: fcdproconst.h:338
static const fcdpro_bias_current bias_currents[]
Definition: fcdproconst.h:331
static const fcdpro_if_gain1 if_gains1[]
Definition: fcdproconst.h:336
static int fcdpro_mixer_gain_nb_values()
static const fcdpro_if_gain_mode if_gain_modes[]
Definition: fcdproconst.h:333
static int fcdpro_if_gain3_nb_values()
static int fcdpro_bias_current_nb_values()
static const fcdpro_if_gain6 if_gains6[]
Definition: fcdproconst.h:341
static const fcdpro_lna_gain lna_gains[]
Definition: fcdproconst.h:326
static const fcdpro_if_gain2 if_gains2[]
Definition: fcdproconst.h:337
static int fcdpro_if_gain2_nb_values()
static int fcdpro_lna_enhance_nb_values()
Definition: fcdproconst.cpp:39
static int fcdpro_lna_gain_nb_values()
Definition: fcdproconst.cpp:26
static int fcdpro_band_nb_values()
Definition: fcdproconst.cpp:51
static int fcdpro_if_rc_filter_nb_values()
static int fcdpro_if_gain1_nb_values()
static const fcdpro_rf_filter rf_filters[]
Definition: fcdproconst.h:329
static int fcdpro_if_gain6_nb_values()
static const fcdpro_if_filter if_filters[]
Definition: fcdproconst.h:335
static int fcdpro_if_gain_mode_nb_values()
static const fcdpro_if_gain4 if_gains4[]
Definition: fcdproconst.h:339
static const fcdpro_mixer_filter mixer_filters[]
Definition: fcdproconst.h:332
static const fcdpro_band bands[]
Definition: fcdproconst.h:328
static int fcdpro_if_gain4_nb_values()
static const fcdpro_if_gain5 if_gains5[]
Definition: fcdproconst.h:340
static const fcdpro_lna_enhance lna_enhances[]
Definition: fcdproconst.h:327
static int fcdpro_if_gain5_nb_values()
static const fcdpro_mixer_gain mixer_gains[]
Definition: fcdproconst.h:330
static const fcdpro_if_rc_filter if_rc_filters[]
Definition: fcdproconst.h:334
static int fcdpro_mixer_filter_nb_values()