FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/L1/cust0/l1_rf12.h @ 904:e54abee27e8f
lcdemu: window size hints set correctly
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 07 Sep 2015 08:43:30 +0000 |
parents | 26472940e5b0 |
children |
rev | line source |
---|---|
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /************* Revision Controle System Header ************* |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 * GSM Layer 1 software |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 * |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 * Filename l1_rf12.h |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 * Copyright 2003 (C) Texas Instruments |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 * |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 ************* Revision Controle System Header *************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 #ifndef __L1_RF_H__ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #define __L1_RF_H__ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 #define RF_RITA_10 0x2030 // Check with TIDK |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 //#define RF_HW_BAND_EGSM |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 //#define RF_HW_BAND_DCS |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 #define RF_HW_BAND_PCS 0x4 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 #define RF_HW_BAND_DUAL_US 0x80 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 #define RF_HW_BAND_DUAL_EXT 0x20 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 //#define RF_HW_BAND_SUPPORT (0x0020 | RF_HW_BAND_PCS) // radio_band_support E-GSM/DCS + PCS |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 // radio_band_support E-GSM/DCS + GSM850/PCS |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 #define RF_HW_BAND_SUPPORT (RF_HW_BAND_DUAL_EXT | RF_HW_BAND_DUAL_US) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 // L1 RF SW Multiband configuration |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 //-------------------------- |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 // RF_SW_MULTIBAND_SUPPORT values |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 #define SINGLE_BAND_900 1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 #define SINGLE_BAND_1800 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 #define SINGLE_BAND_850 3 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 #define SINGLE_BAND_1900 4 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 #define DUAL_BAND_900_1800 5 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
33 #define DUAL_BAND_850_1900 6 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
34 #define TRI_BAND_900_1800_1900 7 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
35 #define TRI_BAND_850_1900_1800 8 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
36 #define QUAD_BAND 9 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
37 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
38 //IMPORTANT !: To change RF_SW_MULTIBAND_SUPPORT value, it must be synchronized with other multiband settings in the software |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
39 // To match the protocol stack settings( e.g EF_RFCAP ) in order to make sure that the value of STD sent in MPHC_INIT_L1_REQ is supported by L1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
40 // And also match the RF HW support: RF_HW_BAND_SUPPORT |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
41 #define RF_SW_MULTIBAND_SUPPORT QUAD_BAND |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
42 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 // Generate band dependancy options |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
44 #define RF_SW_BAND900 ((RF_SW_MULTIBAND_SUPPORT == SINGLE_BAND_900)||(RF_SW_MULTIBAND_SUPPORT == DUAL_BAND_900_1800) \ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
45 ||(RF_SW_MULTIBAND_SUPPORT == TRI_BAND_900_1800_1900) ||(RF_SW_MULTIBAND_SUPPORT == QUAD_BAND) ) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
46 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
47 #define RF_SW_BAND1800 ((RF_SW_MULTIBAND_SUPPORT == SINGLE_BAND_1800) ||(RF_SW_MULTIBAND_SUPPORT == DUAL_BAND_900_1800) \ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 ||(RF_SW_MULTIBAND_SUPPORT == TRI_BAND_900_1800_1900) ||(RF_SW_MULTIBAND_SUPPORT == TRI_BAND_850_1900_1800) \ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
49 ||(RF_SW_MULTIBAND_SUPPORT == QUAD_BAND)) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
50 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 #define RF_SW_BAND850 ((RF_SW_MULTIBAND_SUPPORT == SINGLE_BAND_850)||(RF_SW_MULTIBAND_SUPPORT == DUAL_BAND_850_1900) \ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
52 ||(RF_SW_MULTIBAND_SUPPORT == TRI_BAND_850_1900_1800) ||(RF_SW_MULTIBAND_SUPPORT == QUAD_BAND)) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
53 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 #define RF_SW_BAND1900 ((RF_SW_MULTIBAND_SUPPORT == SINGLE_BAND_1900)||(RF_SW_MULTIBAND_SUPPORT == DUAL_BAND_850_1900) \ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
55 ||(RF_SW_MULTIBAND_SUPPORT == TRI_BAND_900_1800_1900)||(RF_SW_MULTIBAND_SUPPORT == TRI_BAND_850_1900_1800) \ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
56 ||(RF_SW_MULTIBAND_SUPPORT == QUAD_BAND)) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
57 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
58 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
59 /* SYNTHESIZER setup time... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
60 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
61 #define RX_SYNTH_SETUP_TIME (PROVISION_TIME - TRF_R1)//RX Synthesizer setup time in qbit. |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
62 #define TX_SYNTH_SETUP_TIME (- TRF_T1) //TX Synthesizer setup time in qbit. |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
63 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
64 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
65 /* time for TPU scenario ending... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
66 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
67 // |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
68 // The following values are used to take into account any TPU activity AFTER |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
69 // BDLON (or BDLENA) down (for RX) and BULON down (for TX) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
70 // - If there are no TPU commands after BDLON (or BDLENA) down and BULON down, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
71 // these defines must be ZERO |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
72 // - If there IS some TPU command after BDLON (or BDLENA) and BULON down, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
73 // these defines must be equal to the time difference (in qbits) between |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
74 // the BDLON (or BDLENA) or BULON time and the last TPU command on |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
75 // the TPU scenario |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
76 #define RX_TPU_SCENARIO_ENDING 0 // execution time of AFTER BDLENA down |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
77 #define TX_TPU_SCENARIO_ENDING 0 // execution time of AFTER BULON down |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
78 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
79 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
80 /******************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
81 /* TXPWR configuration... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
82 /* Fixed TXPWR value when GSM management is disabled. */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
83 /******************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
84 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
85 #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
86 // #define FIXED_TXPWR ((0xFC<<6) | AUXAPC | FALSE) // TXPWR=10, value=252 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
87 //#define FIXED_TXPWR ((0x65<<6) | AUXAPC | FALSE) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
88 #define FIXED_TXPWR ((0x74<<6) | AUXAPC | FALSE) // TXPWR=15 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
89 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
90 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
91 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
92 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
93 /* ANALOG delay (in qbits) */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
94 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
95 #define DL_DELAY_RF 1 // time spent in the Downlink global RF chain by the modulated signal |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
96 #define UL_DELAY_1RF 7 // time spent in the first uplink RF block |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
97 #define UL_DELAY_2RF 0 // time spent in the second uplink RF block |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
98 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
99 #define UL_ABB_DELAY 3 // modulator input to output delay |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
100 #endif |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
101 #if ((ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
102 #define UL_ABB_DELAY 3 // modulator input to output delay |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
103 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
104 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
105 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
106 /* TX Propagation delay... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
107 /************************************/ |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
108 #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
109 #define PRG_TX (DL_DELAY_RF + UL_DELAY_2RF + (GUARD_BITS*4) + UL_DELAY_1RF + UL_ABB_DELAY) // = 40 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
110 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
111 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
112 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
113 /* Initial value for APC DELAY */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
114 /************************************/ |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
115 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
116 //#define APCDEL_DOWN (32 - GUARD_BITS*4) // minimum value: 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
117 #define APCDEL_DOWN 2 // minimum value: 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
118 #define APCDEL_UP (6+5) // minimum value: 6 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
119 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
120 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
121 #if (ANALOG == 2) || (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
122 //#define APCDEL_DOWN (32 - GUARD_BITS*4) // minimum value: 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
123 #define APCDEL_DOWN (2+0) // minimum value: 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
124 #define APCDEL_UP (6+3+1) // minimum value: 6 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
125 // REMOVE // Jerome Modif for ARF7: (6+3) instead of (6+8) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
126 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
127 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
128 #define GUARD_BITS 7 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
129 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
130 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
131 /* Initial value for AFC... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
132 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
133 #define EEPROM_AFC ((150)*8) // F13.3 required!!!!! (default : -952*8, initial deviation of -2400 forced) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
134 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
135 #define SETUP_AFC_AND_RF 6 // AFC converges in 2 frames and RF BAND GAP stable after 4 frames |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
136 // Rita (RF=12) LDO wakeup requires 6 frames |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
137 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
138 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
139 /* Baseband registers */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
140 /************************************/ |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
141 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
142 // Omega registers values will be programmed at 1st DSP communication interrupt |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
143 #define C_DEBUG1 0x0001 // Enable f_tx delay of 400000 cyc DEBUG |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
144 #define C_AFCCTLADD ((0x000 << 6) | AFCCTLADD | TRUE) // Value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
145 #define C_VBUCTRL ((0x106 << 6) | VBUCTRL | TRUE) // Uplink gain amp 0dB, Sidetone gain to mute |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
146 #define C_VBDCTRL ((0x026 << 6) | VBDCTRL | TRUE) // Downlink gain amp 0dB, Volume control 0 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
147 // RITA does not need an APCOFFSET because the PACTRL is internal: |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
148 // REMOVE //#define C_APCOFF 0x1016 | (0x3c << 6) | TRUE // value at reset-Changed from 0x0016- CR 27.12 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
149 #define C_APCOFF ((0x040 << 6) | APCOFF | TRUE) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
150 #define C_BULIOFF ((0x0FF << 6) | BULIOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
151 #define C_BULQOFF ((0x0FF << 6) | BULQOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
152 #define C_DAI_ON_OFF (0x000) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
153 #define C_AUXDAC ((0x000 << 6) | AUXDAC | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
154 #define C_VBCTRL ((0x00B << 6) | VBCTRL | TRUE) // VULSWITCH=1, VDLAUX=1, VDLEAR=1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
155 // BULRUDEL will be initialized on rach only .... |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
156 #define C_APCDEL1 (((APCDEL_DOWN-2) << 11) | ((APCDEL_UP-6) << 6) | APCDEL1) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
157 #define C_BBCTRL ((0x181 << 6) | BBCTRL | TRUE) // OUTLEV1=OUTLEV1=SELVMID1=SELVMID0=1 for B-sample 'modified' |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
158 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
159 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
160 #if (ANALOG == 2) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
161 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
162 // IOTA registers values will be programmed at 1st DSP communication interrupt |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
163 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
164 #define C_DEBUG1 0x0001 // Enable f_tx delay of 400000 cyc DEBUG |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
165 #define C_AFCCTLADD ((0x000 << 6) | AFCCTLADD | TRUE) // Value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
166 #define C_VBUCTRL ((0x0C9 << 6) | VBUCTRL | TRUE) // Uplink gain amp 3 dB, Sidetone gain to -17dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
167 #define C_VBDCTRL ((0x006 << 6) | VBDCTRL | TRUE) // Downlink gain amp 0dB, Volume control -12 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
168 // RITA does not need an APCOFFSET because the PACTRL is internal: |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
169 // REMOVE //#define C_APCOFF 0x1016 | (0x3c << 6) | TRUE // x2 slope 128 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
170 #if (RF_PA == 0 || RF_PA == 3) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
171 #define C_APCOFF ((0x040 << 6) | APCOFF | TRUE) // x2 slope 128 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
172 #elif (RF_PA == 1 || RF_PA == 2 || RF_PA == 4) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
173 #define C_APCOFF ((0x070 << 6) | APCOFF | TRUE) // x2 slope 128 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
174 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
175 #define C_BULIOFF ((0x0FF << 6) | BULIOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
176 #define C_BULQOFF ((0x0FF << 6) | BULQOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
177 #define C_DAI_ON_OFF ((0x000 << 6) | APCOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
178 #define C_AUXDAC ((0x000 << 6) | AUXDAC | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
179 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
180 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
181 // audio patch for H2-sample: |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
182 #if (RAZ_VULSWITCH_REGAUDIO == 1) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
183 #define C_VBCTRL1 ((0x003 << 6) | VBCTRL1 | TRUE) // VBDFAUXG = 1, VULSWITCH=0, VDLAUX=1, VDLEAR=1 // jkb h2sample change |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
184 #else |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
185 #define C_VBCTRL1 ((0x00B << 6) | VBCTRL1 | TRUE) // VULSWITCH=1, VDLAUX=1, VDLEAR=1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
186 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
187 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
188 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
189 #define C_VBCTRL2 ((0x000 << 6) | VBCTRL2 | TRUE) // MICBIASEL=0, VDLHSO=0, MICAUX=0 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
190 // BULRUDEL will be initialized on rach only .... |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
191 #define C_APCDEL1 (((APCDEL_DOWN-2) << 11) | ((APCDEL_UP-6) << 6) | APCDEL1) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
192 #define C_APCDEL2 ((0x000 << 6) | APCDEL2 | TRUE) // |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
193 #define C_BBCTRL ((0x2C1 << 6) | BBCTRL | TRUE) // Internal autocalibration, Output common mode=1.35V |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
194 // Monoslot, Vpp=8/15*Vref |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
195 #define C_BULGCAL ((0x000 << 6) | BULGCAL | TRUE) // IAG=0 dB, QAG=0 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
196 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
197 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
198 #if (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
199 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
200 // SYREN registers values will be programmed at 1st DSP communication interrupt |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
201 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
202 #define C_DEBUG1 0x0001 // Enable f_tx delay of 400000 cyc DEBUG |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
203 #define C_AFCCTLADD ((0x000 << 6) | AFCCTLADD | TRUE) // Value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
204 #define C_VBUCTRL ((0x0C9 << 6) | VBUCTRL | TRUE) // Uplink gain amp 3dB, Sidetone gain to -17 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
205 #define C_VBDCTRL ((0x006 << 6) | VBDCTRL | TRUE) // Downlink gain amp 0dB, Volume control -12 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
206 #if (RF_PA == 0 || RF_PA == 3) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
207 #define C_APCOFF ((0x040 << 6) | APCOFF | TRUE) // x2 slope 128 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
208 #elif (RF_PA == 1 || RF_PA == 2 || RF_PA == 4) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
209 #define C_APCOFF ((0x070 << 6) | APCOFF | TRUE) // x2 slope 128 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
210 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
211 #define C_BULIOFF ((0x0FF << 6) | BULIOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
212 #define C_BULQOFF ((0x0FF << 6) | BULQOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
213 #define C_DAI_ON_OFF ((0x000 << 6) | APCOFF | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
214 #define C_AUXDAC ((0x000 << 6) | AUXDAC | TRUE) // value at reset |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
215 #define C_VBCTRL1 ((0x108 << 6) | VBCTRL1 | TRUE) // VULSWITCH=1 AUXI 28,2 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
216 #define C_VBCTRL2 ((0x001 << 6) | VBCTRL2 | TRUE) // HSMIC on, SPKG gain @ 2,5dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
217 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
218 // BULRUDEL will be initialized on rach only .... |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
219 #define C_APCDEL1 (((APCDEL_DOWN-2) << 11) | ((APCDEL_UP-6)<<6) | APCDEL1) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
220 #define C_APCDEL2 ((0x000 << 6) | APCDEL2 | TRUE) // |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
221 #define C_BBCTRL ((0x2C1 << 6) | BBCTRL | TRUE) // Internal autocalibration, Output common mode=1.35V |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
222 // Monoslot, Vpp=8/15*Vref |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
223 #define C_BULGCAL ((0x000 << 6) | BULGCAL | TRUE) // IAG=0 dB, QAG=0 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
224 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
225 #define C_VBPOP ((0x004 << 6) | VBPOP | TRUE) // HSOAUTO enabled only |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
226 #define C_VAUDINITD 2 // vaud_init_delay init 2 frames |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
227 #define C_VAUDCTRL ((0x000 << 6) | VAUDCTRL | TRUE) // Init to zero |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
228 #define C_VAUOCTRL ((0x155 << 6) | VAUOCTRL | TRUE) // Speech on all outputs |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
229 #define C_VAUSCTRL ((0x000 << 6) | VAUSCTRL | TRUE) // Init to zero |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
230 #define C_VAUDPLL ((0x000 << 6) | VAUDPLL | TRUE) // Init to zero |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
231 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
232 // SYREN registers values programmed by L1 directly through SPI (ABB_on) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
233 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
234 #define C_BBCFG (0x44) // Syren Like BDLF Filter - DC OFFSET removal OFF |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
235 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
236 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
237 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
238 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
239 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
240 /* Automatic frequency compensation */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
241 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
242 /********************* C_Psi_sta definition *****************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
243 /* C_Psi_sta = (2*pi*Fr) / (N * Fb) */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
244 /* (1) = (2*pi*V*ppm*0.9) / (N*V*Fb) */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
245 /* regarding Vega V/N = 2.4/4096 */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
246 /* regarding VCO ppm/V = 16 / 1 (average slope of the VCO) */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
247 /* (1) = (2*pi*2.4*16*0.9) / (4096*1*270.83) */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
248 /* = 0.000195748 */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
249 /* C_Psi_sta_inv = 1/C_Psi_sta = 5108 */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
250 /************************************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
251 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
252 #define C_Psi_sta_inv 5419L // (1/C_Psi_sta) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
253 #define C_Psi_st 10L // C_Psi_sta * 0.8 F0.16 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
254 #define C_Psi_st_32 634112L // F0.32 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
255 #define C_Psi_st_inv 6773L // (1/C_Psi_st) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
256 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
257 #if (VCXO_ALGO == 1) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
258 // Linearity parameters |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
259 #define C_AFC_DAC_CENTER ((111)*8) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
260 #define C_AFC_DAC_MIN ((-1196)*8) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
261 #define C_AFC_DAC_MAX ((1419)*8) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
262 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
263 #define C_AFC_SNR_THR 2560 // 1/0.4 * 2**10 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
264 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
265 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
266 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
267 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
268 WORD16 eeprom_afc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
269 UWORD32 psi_sta_inv; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
270 UWORD32 psi_st; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
271 UWORD32 psi_st_32; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
272 UWORD32 psi_st_inv; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
273 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
274 #if (VCXO_ALGO) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
275 // VCXO adjustment parameters |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
276 // Parameters used when assuming linearity |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
277 WORD16 dac_center; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
278 WORD16 dac_min; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
279 WORD16 dac_max; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
280 WORD16 snr_thr; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
281 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
282 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
283 T_AFC_PARAMS; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
284 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
285 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
286 /* Swap IQ definitions... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
287 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
288 /* 0=No Swap, 1=Swap RX only, 2=Swap TX only, 3=Swap RX and TX */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
289 #if (RF_PG == R_PG_10) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
290 // PG 1.0 -> 1 (Swap RX only) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
291 // GSM 850 => TX is ALWAYS swapped compared to GSM 900 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
292 #define SWAP_IQ_GSM 1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
293 #define SWAP_IQ_DCS 1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
294 #define SWAP_IQ_PCS 1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
295 #define SWAP_IQ_GSM850 3 // Swap TX compared to GSM 900 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
296 #else |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
297 // All PG versions ABOVE 1.0 -> 0 (No Swap) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
298 // GSM 850 => TX is ALWAYS swapped compared to GSM 900 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
299 #define SWAP_IQ_GSM 0 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
300 #define SWAP_IQ_DCS 0 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
301 #define SWAP_IQ_PCS 0 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
302 #define SWAP_IQ_GSM850 2 // Swap TX compared to GSM 900 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
303 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
304 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
305 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
306 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
307 // typedef |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
308 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
309 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
310 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
311 /*************************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
312 /* Define structure for apc of TX Power ******/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
313 /*************************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
314 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
315 { // pcm-file "rf/tx/level.gsm|dcs" |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
316 UWORD16 apc; // 0..31 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
317 UWORD8 ramp_index; // 0..RF_TX_RAMP_SIZE |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
318 UWORD8 chan_cal_index; // 0..RF_TX_CHAN_CAL_TABLE_SIZE |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
319 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
320 T_TX_LEVEL; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
321 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
322 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
323 /* Automatic Gain Control */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
324 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
325 /* Define structure for sub-band definition of TX Power ******/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
326 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
327 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
328 UWORD16 upper_bound; //highest physical arfcn of the sub-band |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
329 WORD16 agc_calib; // AGC for each TXPWR |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
330 }T_RF_AGC_BAND; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
331 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
332 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
333 /* Ramp definitions */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
334 /************************************/ |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
335 #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
336 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
337 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
338 UWORD8 ramp_up [16]; // Ramp-up profile |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
339 UWORD8 ramp_down [16]; // Ramp-down profile |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
340 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
341 T_TX_RAMP; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
342 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
343 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
344 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
345 // RF structure definition |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
346 //======================== |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
347 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
348 // Number of bands supported |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
349 #define GSM_BANDS 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
350 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
351 #define MULTI_BAND1 0 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
352 #define MULTI_BAND2 1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
353 // RF table sizes |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
354 #define RF_RX_CAL_CHAN_SIZE 10 // number of AGC sub-bands |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
355 #define RF_RX_CAL_TEMP_SIZE 11 // number of temperature ranges |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
356 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
357 #define RF_TX_CHAN_CAL_TABLE_SIZE 4 // channel calibration table size |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
358 #define RF_TX_NUM_SUB_BANDS 8 // number of sub-bands in channel calibration table |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
359 #define RF_TX_LEVELS_TABLE_SIZE 32 // level table size |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
360 #define RF_TX_RAMP_SIZE 16 // number of ramp definitions |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
361 #define RF_TX_CAL_TEMP_SIZE 5 // number of temperature ranges |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
362 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
363 #define AGC_TABLE_SIZE 20 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
364 #define MIN_AGC_INDEX 6 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
365 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
366 #define TEMP_TABLE_SIZE 131 // number of elements in ADC->temp conversion table |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
367 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
368 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
369 // RX parameters and tables |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
370 //------------------------- |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
371 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
372 // AGC parameters and tables |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
373 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
374 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
375 UWORD16 low_agc_noise_thr; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
376 UWORD16 high_agc_sat_thr; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
377 UWORD16 low_agc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
378 UWORD16 high_agc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
379 UWORD8 il2agc_pwr[121]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
380 UWORD8 il2agc_max[121]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
381 UWORD8 il2agc_av[121]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
382 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
383 T_AGC; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
384 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
385 // Calibration parameters |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
386 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
387 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
388 UWORD16 g_magic; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
389 UWORD16 lna_att; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
390 UWORD16 lna_switch_thr_low; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
391 UWORD16 lna_switch_thr_high; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
392 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
393 T_RX_CAL_PARAMS; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
394 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
395 // RX temperature compensation |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
396 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
397 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
398 WORD16 temperature; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
399 WORD16 agc_calib; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
400 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
401 T_RX_TEMP_COMP; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
402 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
403 // RF RX structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
404 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
405 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
406 T_AGC agc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
407 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
408 T_RF_RX; //common |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
409 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
410 // RF RX structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
411 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
412 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
413 T_RX_CAL_PARAMS rx_cal_params; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
414 T_RF_AGC_BAND agc_bands[RF_RX_CAL_CHAN_SIZE]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
415 T_RX_TEMP_COMP temp[RF_RX_CAL_TEMP_SIZE]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
416 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
417 T_RF_RX_BAND; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
418 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
419 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
420 // TX parameters and tables |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
421 //------------------------- |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
422 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
423 // TX temperature compensation |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
424 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
425 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
426 WORD16 temperature; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
427 #if (ORDER2_TX_TEMP_CAL==1) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
428 WORD16 a; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
429 WORD16 b; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
430 WORD16 c; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
431 #else |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
432 WORD16 apc_calib; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
433 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
434 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
435 T_TX_TEMP_CAL; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
436 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
437 // Ramp up and ramp down delay |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
438 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
439 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
440 UWORD16 up; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
441 UWORD16 down; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
442 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
443 T_RAMP_DELAY; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
444 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
445 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
446 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
447 UWORD16 arfcn_limit; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
448 WORD16 chan_cal; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
449 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
450 T_TX_CHAN_CAL; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
451 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
452 // RF TX structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
453 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
454 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
455 T_RAMP_DELAY ramp_delay; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
456 UWORD8 guard_bits; // number of guard bits needed for ramp up |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
457 UWORD8 prg_tx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
458 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
459 T_RF_TX; //common |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
460 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
461 // RF TX structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
462 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
463 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
464 T_TX_LEVEL levels[RF_TX_LEVELS_TABLE_SIZE]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
465 T_TX_CHAN_CAL chan_cal_table[RF_TX_CHAN_CAL_TABLE_SIZE][RF_TX_NUM_SUB_BANDS]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
466 T_TX_RAMP ramp_tables[RF_TX_RAMP_SIZE]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
467 T_TX_TEMP_CAL temp[RF_TX_CAL_TEMP_SIZE]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
468 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
469 T_RF_TX_BAND; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
470 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
471 // band structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
472 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
473 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
474 T_RF_RX_BAND rx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
475 T_RF_TX_BAND tx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
476 UWORD8 swap_iq; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
477 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
478 T_RF_BAND; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
479 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
480 // RF structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
481 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
482 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
483 // common for all bands |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
484 UWORD16 rf_revision; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
485 UWORD16 radio_band_support; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
486 T_RF_RX rx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
487 T_RF_TX tx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
488 T_AFC_PARAMS afc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
489 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
490 T_RF; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
491 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
492 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
493 /* MADC definitions */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
494 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
495 // Omega: 5 external channels if touch screen not used, 3 otherwise |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
496 enum ADC_INDEX { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
497 ADC_VBAT, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
498 ADC_VCHARG, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
499 ADC_ICHARG, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
500 ADC_VBACKUP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
501 ADC_BATTYP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
502 ADC_BATTEMP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
503 ADC_ADC3, // name of this ?? |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
504 ADC_RFTEMP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
505 ADC_ADC4, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
506 ADC_INDEX_END // ADC_INDEX_END must be the end of the enums |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
507 }; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
508 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
509 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
510 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
511 WORD16 converted[ADC_INDEX_END]; // converted |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
512 UWORD16 raw[ADC_INDEX_END]; // raw from ADC |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
513 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
514 T_ADC; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
515 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
516 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
517 /* MADC calibration */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
518 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
519 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
520 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
521 UWORD16 a[ADC_INDEX_END]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
522 WORD16 b[ADC_INDEX_END]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
523 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
524 T_ADCCAL; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
525 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
526 // Conversion table: ADC value -> temperature |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
527 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
528 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
529 UWORD16 adc; // ADC reading is 10 bits |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
530 WORD16 temp; // temp is in approx. range -30..+80 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
531 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
532 T_TEMP; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
533 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
534 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
535 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
536 char *name; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
537 void *addr; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
538 int size; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
539 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
540 T_CONFIG_FILE; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
541 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
542 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
543 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
544 char *name; // name of ffs file suffix |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
545 T_RF_BAND *addr; // address to default flash structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
546 UWORD16 max_carrier; // max carrier |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
547 UWORD16 max_txpwr; // max tx power |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
548 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
549 T_BAND_CONFIG; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
550 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
551 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
552 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
553 UWORD8 band[GSM_BANDS]; // index to band address |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
554 UWORD8 txpwr_tp; // tx power turning point |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
555 UWORD16 first_arfcn; // first index |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
556 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
557 T_STD_CONFIG; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
558 enum GSMBAND_DEF |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
559 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
560 BAND_NONE, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
561 BAND_EGSM900, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
562 BAND_DCS1800, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
563 BAND_PCS1900, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
564 BAND_GSM850, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
565 // put new bands here |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
566 BAND_GSM900 //last entry |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
567 }; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
568 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
569 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
570 /* ABB (Omega) Initialization */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
571 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
572 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
573 #if ((ANALOG == 1) || (ANALOG == 2)) |
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
574 #define ABB_TABLE_SIZE 16 |
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
575 #elif (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
576 #define ABB_TABLE_SIZE 22 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
577 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
578 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
579 // Note that this translation is probably not needed at all. But until L1 is |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
580 // (maybe) changed to simply initialize the ABB from a table of words, we |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
581 // use this to make things more easy-readable. |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
582 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
583 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
584 enum ABB_REGISTERS { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
585 ABB_AFCCTLADD = 0, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
586 ABB_VBUCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
587 ABB_VBDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
588 ABB_BBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
589 ABB_APCOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
590 ABB_BULIOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
591 ABB_BULQOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
592 ABB_DAI_ON_OFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
593 ABB_AUXDAC, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
594 ABB_VBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
595 ABB_APCDEL1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
596 }; |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
597 #elif (ANALOG == 2) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
598 enum ABB_REGISTERS { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
599 ABB_AFCCTLADD = 0, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
600 ABB_VBUCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
601 ABB_VBDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
602 ABB_BBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
603 ABB_BULGCAL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
604 ABB_APCOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
605 ABB_BULIOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
606 ABB_BULQOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
607 ABB_DAI_ON_OFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
608 ABB_AUXDAC, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
609 ABB_VBCTRL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
610 ABB_VBCTRL2, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
611 ABB_APCDEL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
612 ABB_APCDEL2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
613 }; |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
614 #elif (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
615 enum ABB_REGISTERS { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
616 ABB_AFCCTLADD = 0, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
617 ABB_VBUCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
618 ABB_VBDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
619 ABB_BBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
620 ABB_BULGCAL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
621 ABB_APCOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
622 ABB_BULIOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
623 ABB_BULQOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
624 ABB_DAI_ON_OFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
625 ABB_AUXDAC, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
626 ABB_VBCTRL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
627 ABB_VBCTRL2, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
628 ABB_APCDEL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
629 ABB_APCDEL2, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
630 ABB_VBPOP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
631 ABB_VAUDINITD, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
632 ABB_VAUDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
633 ABB_VAUOCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
634 ABB_VAUSCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
635 ABB_VAUDPLL |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
636 }; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
637 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
638 #endif |