FreeCalypso > hg > fc-rfcal-tools
annotate autocal/vcxomain.c @ 28:ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 22 May 2017 23:36:14 +0000 |
parents | 841dd03d5c85 |
children | 4cd55371d3e4 |
rev | line source |
---|---|
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This module contains the main() function for fc-rfcal-vcxo. |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 */ |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
27
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
5 #include <math.h> |
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #include <stdio.h> |
28
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
7 #include <stdint.h> |
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 #include <stdlib.h> |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 #include <rvinterf/l1tm.h> |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 #include <rvinterf/exitcodes.h> |
28
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
11 #include "afcparams.h" |
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 #include "stdband.h" |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 #define VCXOCAL_BAND 900 |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 #define VCXOCAL_BAND_RFPW RFPW_STD_BAND(6, 0) |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 #define VCXOCAL_ARFCN 40 |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
24
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
18 extern float vcxo_freq_meas(); |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
19 |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
20 static float freq_max_neg, freq_max_pos; |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
21 static float lin_a, lin_b, lin_a2, lin_b2; |
26
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
22 static int zero_search_dac1, zero_search_dac2, zero_search_incr; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
23 static float zero_search_freq1, zero_search_freq2; |
27
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
24 static float dac_min, dac_max, dac_init; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
25 static int dac_init_int; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
26 static float Psi_sta, Psi_st; |
24
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
27 |
28
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
28 struct afcparams afcparams_host, afcparams_arm; |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
29 |
23
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
30 prepare_rf_test_system() |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
31 { |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
32 char cmd[80]; |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
33 |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
34 printf("Preparing RF test system for VCXO calibration\n"); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
35 sprintf(cmd, "vcxo-cal-setup %d %d\n", VCXOCAL_BAND, VCXOCAL_ARFCN); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
36 tsid_command(cmd); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
37 return(0); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
38 } |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
39 |
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 main(argc, argv) |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 char **argv; |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 { |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 socket_pathname_options(argc, argv); |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 connect_rvinterf_socket(); |
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 connect_tsid_socket(); |
23
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
46 prepare_rf_test_system(); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
47 |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
48 printf("Putting the DUT into Test Mode\n"); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
49 do_tms(1); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
50 do_rfpw(STD_BAND_FLAG, VCXOCAL_BAND_RFPW); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
51 do_rfpw(TCH_ARFCN, VCXOCAL_ARFCN); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
52 do_rfpw(AFC_ENA_FLAG, 0); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
53 do_txpw(TX_PWR_LEVEL, 12); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
54 printf("Starting RF Tx on the DUT\n"); |
9a9fd9ebe799
autocal/vcxomain.c: coming along
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
55 do_rfe(RX_TX_TCH); |
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 |
24
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
57 /* initial measurements at the DAC extremes */ |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
58 freq_max_neg = vcxo_freq_meas(-2048, "max-neg"); |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
59 freq_max_pos = vcxo_freq_meas(2048, "max-pos"); |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
60 lin_a = (freq_max_pos - freq_max_neg) / 4096.0f; |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
61 lin_b = freq_max_pos - lin_a * 2048.0f; |
26
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
62 zero_search_dac1 = -lin_b / lin_a; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
63 zero_search_freq1 = vcxo_freq_meas(zero_search_dac1, "zero-search"); |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
64 |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
65 /* search for zero crossing */ |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
66 if (zero_search_freq1 < 0) |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
67 zero_search_incr = 100; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
68 else |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
69 zero_search_incr = -100; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
70 for (;;) { |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
71 zero_search_dac2 = zero_search_dac1 + zero_search_incr; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
72 zero_search_freq2 = vcxo_freq_meas(zero_search_dac2, |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
73 "zero-search"); |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
74 if (zero_search_incr > 0 && zero_search_freq2 >= 0) |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
75 break; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
76 if (zero_search_incr < 0 && zero_search_freq2 < 0) |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
77 break; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
78 zero_search_dac1 = zero_search_dac2; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
79 zero_search_freq1 = zero_search_freq2; |
a2e4da9d85cc
fc-rfcal-vcxo: search for zero crossing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
24
diff
changeset
|
80 } |
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 |
27
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
82 /* second linear approximation */ |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
83 lin_a2 = (zero_search_freq2 - zero_search_freq1) / |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
84 (float)(zero_search_dac2 - zero_search_dac1); |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
85 lin_b2 = zero_search_freq2 - lin_a2 * zero_search_dac2; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
86 |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
87 /* DAC settings */ |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
88 dac_min = (-13500.0f - lin_b) / lin_a; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
89 dac_max = (13500.0f - lin_b) / lin_a; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
90 dac_init = -lin_b2 / lin_a2; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
91 dac_init_int = (int) dac_init; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
92 |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
93 /* check the frequency offset at the final DAC value */ |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
94 vcxo_freq_meas(dac_init_int, "zero-check"); |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
95 |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
96 /* done with the measurements and the Tx */ |
24
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
97 printf("Stopping RF Tx on the DUT\n"); |
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
98 do_rfe(STOP_ALL); |
27
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
99 |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
100 /* Psi computations */ |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
101 Psi_sta = 2.0f * (float)M_PI * lin_a / 270833.0f; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
102 Psi_st = Psi_sta * 0.8f; |
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
103 |
28
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
104 /* compute and fill afcparams */ |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
105 afcparams_host.psi_sta_inv = (unsigned)(1.0f / Psi_sta); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
106 afcparams_host.psi_st = (unsigned)(Psi_st * 65536.0f); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
107 afcparams_host.psi_st_32 = (unsigned)(Psi_st * 65536.0f * 65536.0f); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
108 afcparams_host.psi_st_inv = (unsigned)(1.0f / Psi_st); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
109 afcparams_host.dac_center = (int)(dac_init * 8.0f); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
110 afcparams_host.dac_min = (int)(dac_min * 8.0f); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
111 afcparams_host.dac_max = (int)(dac_max * 8.0f); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
112 afcparams_host.snr_thr = 2560; |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
113 |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
114 /* print them out */ |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
115 printf("afcparams Psi_sta_inv: %u\n", afcparams_host.psi_sta_inv); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
116 printf("afcparams Psi_st: %u\n", afcparams_host.psi_st); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
117 printf("afcparams Psi_st_32: %u\n", afcparams_host.psi_st_32); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
118 printf("afcparams Psi_st_inv: %u\n", afcparams_host.psi_st_inv); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
119 printf("afcparams DAC_INIT*8: %d\n", afcparams_host.dac_center); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
120 printf("afcparams DAC_MIN*8: %d\n", afcparams_host.dac_min); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
121 printf("afcparams DAC_MAX*8: %d\n", afcparams_host.dac_max); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
122 printf("afcparams snr_thr: %d\n", afcparams_host.snr_thr); |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
123 |
ba4b6877e227
fc-rfcal-vcxo: afcparams computation implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
124 /* conversion to LE and sending to L1 remain to be implemented */ |
27
841dd03d5c85
fc-rfcal-vcxo: almost done
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
125 |
24
0b6881281d86
fc-rfcal-vcxo ready for first test
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
126 exit(0); |
21
a3f48378658d
autocal: beginning of fc-rfcal-vcxo
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 } |