FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/L1/cust0/l1_rf8.h @ 359:144b5d222de8
tfc139 hack utility started, compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 15 May 2014 10:32: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_rf8.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 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 /* SYNTHESIZER setup time... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 #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
|
17 #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
|
18 |
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 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 /* time for TPU scenario ending... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 /************************************/ |
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 #define RX_TPU_SCENARIO_ENDING DLT_1B - SL_SU_DELAY2 // execution time of BDLENA down |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 // minus serialization time |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 #define TX_TPU_SCENARIO_ENDING DLT_1B - SL_SU_DELAY2 // execution time of BULON down |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 // minus serialization time |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 /******************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 /* TXPWR configuration... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 /* Fixed TXPWR value when GSM management is disabled. */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 /******************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
33 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
34 #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
35 // #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
|
36 // #define FIXED_TXPWR ((0x28 << 6) | AUXAPC | FALSE) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
37 #define FIXED_TXPWR ((0x68 << 6) | AUXAPC | FALSE) // TXPWR=15 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
38 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
39 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
40 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
41 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
42 /*(ANALOG)delay (in qbits) */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
44 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
45 #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
|
46 #define UL_DELAY_1RF 5 // time spent in the first uplink RF block |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
47 #define UL_DELAY_2RF 0 // time spent in the second uplink RF block |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
49 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
50 #define UL_ABB_DELAY 0 // modulator input to output delay, theoretical value is 6, needs to be checked |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
52 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
53 #if ((ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 #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
|
55 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
56 |
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 /* TX Propagation delay... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
59 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
60 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
61 #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
62 #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
|
63 #endif |
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 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
66 /* Initial value for APC DELAY */ |
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 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
69 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
70 //#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
|
71 #define APCDEL_DOWN 2 // minimum value: 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
72 #define APCDEL_UP (6+5) // minimum value: 6 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
73 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
74 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
75 #if (ANALOG == 2) || (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
76 //#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
|
77 #define APCDEL_DOWN (2+0) // minimum value: 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
78 #define APCDEL_UP (6+2) // minimum value: 6 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
79 #endif |
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 #define GUARD_BITS 7 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
82 |
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 /* Initial value for AFC... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
85 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
86 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
87 #define EEPROM_AFC ((-1180)*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
|
88 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
89 #define SETUP_AFC_AND_RF 2 // time to have a stable output of the AFC and RF BAND GAP(in Frames) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
90 // !! minimum Value : 1 Frame due to the fact there is no |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
91 // hisr() in the first wake-up frame !!!! |
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 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
94 /* Baseband registers */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
95 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
96 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
97 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
98 // 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
|
99 #define C_DEBUG1 (0x0000 | FALSE) // Enable f_tx delay of 400000 cyc DEBUG |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
100 #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
|
101 #define C_VBUCTRL ((0x0C9 << 6) | VBUCTRL | TRUE ) // Side tone -17 dB, PGA_UL 3 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
102 #define C_VBDCTRL ((0x006 << 6) | VBDCTRL | TRUE ) // PGA_DL 0dB, Volume -12 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
103 #define C_APCOFF ((0x040 << 6) | APCOFF | TRUE) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
104 #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
|
105 #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
|
106 #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
|
107 #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
|
108 #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
|
109 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
110 // BULRUDEL will be initialized on rach only .... |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
111 #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
|
112 #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
|
113 #endif |
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 == 2) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
116 // 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
|
117 #define C_DEBUG1 (0x0000 | TRUE ) // Enable f_tx delay of 400000 cyc DEBUG |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
118 #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
|
119 #define C_VBUCTRL ((0x0C9 << 6) | VBUCTRL | TRUE ) // Side tone -17 dB, PGA_UL 3 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
120 #define C_VBDCTRL ((0x006 << 6) | VBDCTRL | TRUE ) // PGA_DL 0dB, Volume -12 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
121 #define C_APCOFF ((0x040 << 6) | APCOFF | TRUE) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
122 #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
|
123 #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
|
124 #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
|
125 #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
|
126 #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
|
127 #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
|
128 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
129 // BULRUDEL will be initialized on rach only .... |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
130 #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
|
131 #define C_APCDEL2 ((0x000 << 6) | APCDEL2 | TRUE ) // |
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 C_BBCTRL ((0x0C1 << 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
|
134 // Monoslot, Vpp=8/15*Vref |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
135 #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
|
136 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
137 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
138 #if (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
139 // 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
|
140 #define C_DEBUG1 (0x0000 | TRUE ) // Enable f_tx delay of 400000 cyc DEBUG |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
141 #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
|
142 #define C_VBUCTRL ((0x0C9 << 6) | VBUCTRL | TRUE ) // Side tone - 17 dB, PGA_UL 3dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
143 #define C_VBDCTRL ((0x006 << 6) | VBDCTRL | TRUE ) // PGA_DL 0dB, Volume -12 dB |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
144 #define C_APCOFF ((0x07C << 6) | APCOFF | TRUE) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
145 #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
|
146 #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
|
147 #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
|
148 #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
|
149 #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
|
150 #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
|
151 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
152 // BULRUDEL will be initialized on rach only .... |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
153 #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
|
154 #define C_APCDEL2 ((0x000 << 6) | APCDEL2 | TRUE ) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
155 #define C_BBCTRL ((0x0C1 << 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
|
156 // Monoslot, Vpp=8/15*Vref |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
157 #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
|
158 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
159 #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
|
160 #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
|
161 #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
|
162 #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
|
163 #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
|
164 #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
|
165 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
166 // 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
|
167 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
168 #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
|
169 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
170 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
171 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
172 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
173 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
174 /* Automatic frequency compensation */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
175 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
176 /********************* C_Psi_sta definition *****************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
177 /* C_Psi_sta = (2*pi*Fr) / (N * Fb) */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
178 /* (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
|
179 /* regarding Vega V/N = 2.4/4096 */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
180 /* 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
|
181 /* (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
|
182 /* = 0.000195748 */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
183 /* 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
|
184 /************************************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
185 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
186 #define C_Psi_sta_inv 11677L // (1/C_Psi_sta) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
187 #define C_Psi_st 4L // C_Psi_sta * 0.8 F0.16 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
188 #define C_Psi_st_32 294257L // F0.32 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
189 #define C_Psi_st_inv 14596L // (1/C_Psi_st) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
190 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
191 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
192 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
193 WORD16 eeprom_afc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
194 UWORD32 psi_sta_inv; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
195 UWORD32 psi_st; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
196 UWORD32 psi_st_32; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
197 UWORD32 psi_st_inv; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
198 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
199 T_AFC_PARAMS; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
200 |
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 /* Swap IQ definitions... */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
203 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
204 /* 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
|
205 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
206 #define SWAP_IQ_GSM 0 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
207 #define SWAP_IQ_DCS 3 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
208 #define SWAP_IQ_PCS 3 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
209 #define SWAP_IQ_GSM850 0 //TBD |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
210 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
211 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
212 /* RF bands supported */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
213 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
214 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
215 #define RF_HW_BAND_SUPPORT (0x0020 | 0x0004) // radio_band_support E-GSM/DCS + PC |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
216 |
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 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
219 // typedef |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
220 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
221 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
222 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
223 /*************************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
224 /* Define structure for apc of TX Power ******/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
225 /*************************************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
226 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
227 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
228 { // pcm-file "rf/tx/level.gsm|dcs" |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
229 UWORD16 apc; // 0..31 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
230 UWORD8 ramp_index; // 0..RF_TX_RAMP_SIZE |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
231 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
|
232 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
233 T_TX_LEVEL; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
234 |
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 /* Automatic Gain Control */ |
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 /* 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
|
239 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
240 typedef struct |
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 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
|
243 WORD16 agc_calib; // AGC for each TXPWR |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
244 }T_RF_AGC_BAND; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
245 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
246 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
247 /* Ramp definitions */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
248 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
249 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
250 #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
251 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
252 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
253 UWORD8 ramp_up [16]; // Ramp-up profile |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
254 UWORD8 ramp_down [16]; // Ramp-down profile |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
255 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
256 T_TX_RAMP; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
257 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
258 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
259 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
260 // RF structure definition |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
261 //======================== |
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 enum RfRevision { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
264 RF_IGNORE = 0x0000, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
265 RF_SL2 = 0x1000, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
266 RF_GAIA_20X = 0x2000, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
267 RF_GAIA_20A = 0x2001, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
268 RF_GAIA_20B = 0x2002, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
269 RF_ATLAS_20B = 0x2020, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
270 RF_PASCAL_20 = 0x2030 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
271 }; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
272 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
273 // Number of bands supported |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
274 #define GSM_BANDS 2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
275 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
276 #define MULTI_BAND1 0 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
277 #define MULTI_BAND2 1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
278 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
279 // RF table sizes |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
280 #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
|
281 #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
|
282 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
283 #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
|
284 #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
|
285 #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
|
286 #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
|
287 #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
|
288 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
289 #define AGC_TABLE_SIZE 36 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
290 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
291 #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
|
292 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
293 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
294 // RX parameters and tables |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
295 //------------------------- |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
296 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
297 // AGC parameters and tables |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
298 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
299 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
300 UWORD16 low_agc_noise_thr; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
301 UWORD16 high_agc_sat_thr; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
302 UWORD16 low_agc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
303 UWORD16 high_agc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
304 UWORD8 il2agc_pwr[121]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
305 UWORD8 il2agc_max[121]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
306 UWORD8 il2agc_av[121]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
307 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
308 T_AGC; |
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 // Calibration parameters |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
311 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
312 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
313 UWORD16 g_magic; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
314 UWORD16 lna_att; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
315 UWORD16 lna_switch_thr_low; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
316 UWORD16 lna_switch_thr_high; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
317 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
318 T_RX_CAL_PARAMS; |
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 // RX temperature compensation |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
321 typedef struct |
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 WORD16 temperature; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
324 WORD16 agc_calib; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
325 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
326 T_RX_TEMP_COMP; |
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 // RF RX structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
329 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
330 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
331 T_AGC agc; |
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 T_RF_RX; //common |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
334 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
335 // RF RX structure |
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 T_RX_CAL_PARAMS rx_cal_params; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
339 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
|
340 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
|
341 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
342 T_RF_RX_BAND; |
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 // TX parameters and tables |
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 // TX temperature compensation |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
349 typedef struct |
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 WORD16 temperature; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
352 #if (ORDER2_TX_TEMP_CAL==1) |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
353 WORD16 a; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
354 WORD16 b; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
355 WORD16 c; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
356 #else |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
357 WORD16 apc_calib; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
358 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
359 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
360 T_TX_TEMP_CAL; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
361 |
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 // Ramp up and ramp down delay |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
364 typedef struct |
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 UWORD16 up; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
367 UWORD16 down; |
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 T_RAMP_DELAY; |
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 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
372 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
373 UWORD16 arfcn_limit; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
374 WORD16 chan_cal; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
375 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
376 T_TX_CHAN_CAL; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
377 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
378 // RF TX structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
379 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
380 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
381 T_RAMP_DELAY ramp_delay; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
382 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
|
383 UWORD8 prg_tx; |
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 T_RF_TX; //common |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
386 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
387 // RF TX structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
388 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
389 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
390 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
|
391 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
|
392 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
|
393 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
|
394 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
395 T_RF_TX_BAND; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
396 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
397 // band structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
398 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
399 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
400 T_RF_RX_BAND rx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
401 T_RF_TX_BAND tx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
402 UWORD8 swap_iq; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
403 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
404 T_RF_BAND; |
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 // RF structure |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
407 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
408 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
409 // common for all bands |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
410 UWORD16 rf_revision; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
411 UWORD16 radio_band_support; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
412 T_RF_RX rx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
413 T_RF_TX tx; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
414 T_AFC_PARAMS afc; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
415 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
416 T_RF; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
417 |
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 /* MADC definitions */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
420 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
421 // 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
|
422 enum ADC_INDEX { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
423 ADC_VBAT, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
424 ADC_VCHARG, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
425 ADC_ICHARG, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
426 ADC_VBACKUP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
427 ADC_BATTYP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
428 ADC_BATTEMP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
429 ADC_ADC3, // name of this ?? |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
430 ADC_RFTEMP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
431 ADC_ADC4, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
432 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
|
433 }; |
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 typedef struct |
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 WORD16 converted[ADC_INDEX_END]; // converted |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
438 UWORD16 raw[ADC_INDEX_END]; // raw from ADC |
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 T_ADC; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
441 |
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 /* MADC calibration */ |
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 a[ADC_INDEX_END]; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
448 WORD16 b[ADC_INDEX_END]; |
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_ADCCAL; |
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 // Conversion table: ADC value -> temperature |
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 UWORD16 adc; // ADC reading is 10 bits |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
456 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
|
457 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
458 T_TEMP; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
459 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
460 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
461 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
462 char *name; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
463 void *addr; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
464 int size; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
465 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
466 T_CONFIG_FILE; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
467 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
468 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
469 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
470 char *name; // name of ffs file suffix |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
471 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
|
472 UWORD16 max_carrier; // max carrier |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
473 UWORD16 max_txpwr; // max tx power |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
474 } |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
475 T_BAND_CONFIG; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
476 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
477 typedef struct |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
478 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
479 UWORD8 band[GSM_BANDS]; // index to band address |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
480 UWORD8 txpwr_tp; // tx power turning point |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
481 UWORD16 first_arfcn; // first index |
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 T_STD_CONFIG; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
484 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
485 enum GSMBAND_DEF |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
486 { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
487 BAND_NONE, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
488 BAND_EGSM900, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
489 BAND_DCS1800, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
490 BAND_PCS1900, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
491 BAND_GSM850, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
492 // put new bands here |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
493 BAND_GSM900 //last entry |
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 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
496 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
497 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
498 /* ABB (Omega) Initialization */ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
499 /************************************/ |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
500 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
501 #if ((ANALOG == 1) || (ANALOG == 2)) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
502 #define ABB_TABLE_SIZE 16 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
503 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
504 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
505 #if (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
506 #define ABB_TABLE_SIZE 22 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
507 #endif |
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 // 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
|
510 // (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
|
511 // use this to make things more easy-readable. |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
512 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
513 #if (ANALOG == 1) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
514 enum ABB_REGISTERS { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
515 ABB_AFCCTLADD = 0, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
516 ABB_VBUCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
517 ABB_VBDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
518 ABB_BBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
519 ABB_APCOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
520 ABB_BULIOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
521 ABB_BULQOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
522 ABB_DAI_ON_OFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
523 ABB_AUXDAC, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
524 ABB_VBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
525 ABB_APCDEL1 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
526 }; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
527 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
528 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
529 #if (ANALOG == 2) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
530 enum ABB_REGISTERS { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
531 ABB_AFCCTLADD = 0, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
532 ABB_VBUCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
533 ABB_VBDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
534 ABB_BBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
535 ABB_BULGCAL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
536 ABB_APCOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
537 ABB_BULIOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
538 ABB_BULQOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
539 ABB_DAI_ON_OFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
540 ABB_AUXDAC, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
541 ABB_VBCTRL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
542 ABB_VBCTRL2, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
543 ABB_APCDEL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
544 ABB_APCDEL2 |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
545 }; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
546 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
547 |
152
26472940e5b0
l1_rf<N>.h headers preened
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
151
diff
changeset
|
548 #if (ANALOG == 3) |
151
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
549 enum ABB_REGISTERS { |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
550 ABB_AFCCTLADD = 0, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
551 ABB_VBUCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
552 ABB_VBDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
553 ABB_BBCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
554 ABB_BULGCAL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
555 ABB_APCOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
556 ABB_BULIOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
557 ABB_BULQOFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
558 ABB_DAI_ON_OFF, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
559 ABB_AUXDAC, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
560 ABB_VBCTRL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
561 ABB_VBCTRL2, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
562 ABB_APCDEL1, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
563 ABB_APCDEL2, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
564 ABB_VBPOP, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
565 ABB_VAUDINITD, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
566 ABB_VAUDCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
567 ABB_VAUOCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
568 ABB_VAUSCTRL, |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
569 ABB_VAUDPLL |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
570 }; |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
571 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
572 #endif |
d0de2d0a426d
more L1 header files brought in
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
573 |