FreeCalypso > hg > freecalypso-citrine
comparison L1/include/l1_signa.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children | f93dab57b032 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /************* Revision Controle System Header ************* | |
2 * GSM Layer 1 software | |
3 * L1_SIGNA.H | |
4 * | |
5 * Filename l1_signa.h | |
6 * Copyright 2003 (C) Texas Instruments | |
7 * | |
8 ************* Revision Controle System Header *************/ | |
9 | |
10 #define P_L1C 0 | |
11 #define P_DLL ( P_L1C + 1 ) | |
12 | |
13 #if ((REL99 == 1) && (FF_BHO == 1)) | |
14 #define P_MSB P_L1C | |
15 #define P_SHIFT1 8 | |
16 #define P_SHIFT2 0 | |
17 #define P_MPHC_UL 0 | |
18 #define P_MPHC_DL 0 | |
19 #endif | |
20 | |
21 // Messages Test/PWRMNGT <-> L1A | |
22 | |
23 /* Message used for software dynamic configuration */ | |
24 #define TST_SW_CONFIG_REQ ( ( P_L1C << 8 ) | 117) | |
25 | |
26 #if (OP_L1_STANDALONE == 1) | |
27 /* Message used for hardware dynamic configuration */ | |
28 #define TST_HW_CONFIG_REQ ( ( P_L1C << 8 ) | 116) | |
29 #endif | |
30 | |
31 #define TST_TEST_HW_REQ ( ( P_L1C << 8 ) | 1 ) // build: trigger | |
32 #define TST_TEST_HW_CON ( ( P_L1C << 8 ) | 2 ) | |
33 #define TST_TIMESTAMP_MSG ( ( P_L1C << 8 ) | 3 ) // build: trigger | |
34 #define TST_SLEEP_REQ ( ( P_L1C << 8 ) | 4 ) // build: T_TST_SLEEP_REQ | |
35 | |
36 | |
37 // Messages L3 <-> L1A | |
38 #define MPHC_RXLEV_REQ ( ( P_L1C << 8 ) | 11 ) // build: T_FULL_LIST_MEAS | |
39 #define MPHC_RXLEV_IND ( ( P_L1C << 8 ) | 12 ) | |
40 | |
41 #define MPHC_STOP_RXLEV_REQ ( ( P_L1C << 8 ) | 13 ) // build: trigger | |
42 #define MPHC_STOP_RXLEV_CON ( ( P_L1C << 8 ) | 14 ) | |
43 | |
44 #define MPHC_NETWORK_SYNC_REQ ( ( P_L1C << 8 ) | 15 ) // build: T_MPHC_NETWORK_SYNC_REQ | |
45 #define MPHC_NETWORK_SYNC_IND ( ( P_L1C << 8 ) | 16 ) | |
46 | |
47 #define MPHC_STOP_NETWORK_SYNC_REQ ( ( P_L1C << 8 ) | 17 ) // build: trigger | |
48 #define MPHC_STOP_NETWORK_SYNC_CON ( ( P_L1C << 8 ) | 18 ) | |
49 | |
50 #define MPHC_NEW_SCELL_REQ ( ( P_L1C << 8 ) | 19 ) // build: T_MPHC_NEW_SCELL_REQ | |
51 #define MPHC_NEW_SCELL_CON ( ( P_L1C << 8 ) | 20 ) | |
52 | |
53 #define MPHC_START_CCCH_REQ ( ( P_L1C << 8 ) | 21 ) // build: T_MPHC_START_CCCH_REQ | |
54 #define MPHC_STOP_CCCH_REQ ( ( P_L1C << 8 ) | 22 ) // build: trigger | |
55 #define MPHC_STOP_CCCH_CON ( ( P_L1C << 8 ) | 23 ) | |
56 | |
57 #define MPHC_SCELL_NBCCH_REQ ( ( P_L1C << 8 ) | 24 ) // build: T_MPHC_SCELL_NBCCH_REQ | |
58 #define MPHC_SCELL_EBCCH_REQ ( ( P_L1C << 8 ) | 25 ) // build: T_MPHC_SCELL_EBCCH_REQ | |
59 #define MPHC_STOP_SCELL_BCCH_REQ ( ( P_L1C << 8 ) | 26 ) // build: trigger | |
60 #define MPHC_STOP_SCELL_BCCH_CON ( ( P_L1C << 8 ) | 27 ) | |
61 | |
62 #define MPHC_NCELL_BCCH_REQ ( ( P_L1C << 8 ) | 28 ) // build: T_MPHC_NCELL_BCCH_REQ | |
63 #define MPHC_NCELL_BCCH_IND ( ( P_L1C << 8 ) | 29 ) | |
64 #define MPHC_STOP_NCELL_BCCH_REQ ( ( P_L1C << 8 ) | 30 ) // build: T_MPHC_STOP_NCELL_BCCH_REQ | |
65 #define MPHC_STOP_NCELL_BCCH_CON ( ( P_L1C << 8 ) | 31 ) | |
66 | |
67 #define MPHC_NCELL_SYNC_REQ ( ( P_L1C << 8 ) | 32 ) // build: T_MPHC_NCELL_SYNC_REQ | |
68 #define MPHC_NCELL_SYNC_IND ( ( P_L1C << 8 ) | 33 ) | |
69 #define MPHC_STOP_NCELL_SYNC_REQ ( ( P_L1C << 8 ) | 34 ) // build: T_MPHC_STOP_NCELL_SYNC_REQ | |
70 #define MPHC_STOP_NCELL_SYNC_CON ( ( P_L1C << 8 ) | 35 ) | |
71 | |
72 #define MPHC_RXLEV_PERIODIC_REQ ( ( P_L1C << 8 ) | 36 ) // build: T_MPHC_RXLEV_PERIODIC_REQ | |
73 #define MPHC_RXLEV_PERIODIC_IND ( ( P_L1C << 8 ) | 37 ) | |
74 #define MPHC_STOP_RXLEV_PERIODIC_REQ ( ( P_L1C << 8 ) | 38 ) // build: trigger | |
75 #define MPHC_STOP_RXLEV_PERIODIC_CON ( ( P_L1C << 8 ) | 39 ) | |
76 | |
77 #define MPHC_CONFIG_CBCH_REQ ( ( P_L1C << 8 ) | 40 ) // build: T_MPHC_CONFIG_CBCH_REQ | |
78 #define MPHC_CBCH_SCHEDULE_REQ ( ( P_L1C << 8 ) | 41 ) // build: T_MPHC_CBCH_SCHEDULE_REQ | |
79 #define MPHC_CBCH_UPDATE_REQ ( ( P_L1C << 8 ) | 42 ) // build: T_MPHC_CBCH_UPDATE_REQ | |
80 #define MPHC_CBCH_INFO_REQ ( ( P_L1C << 8 ) | 43 ) // build: T_MPHC_CBCH_INFO_REQ | |
81 #define MPHC_STOP_CBCH_REQ ( ( P_L1C << 8 ) | 44 ) // build: T_MPHC_STOP_CBCH_REQ | |
82 #define MPHC_STOP_CBCH_CON ( ( P_L1C << 8 ) | 45 ) | |
83 | |
84 #define MPHC_RA_REQ ( ( P_L1C << 8 ) | 46 ) // build: T_MPHC_RA_REQ | |
85 #define MPHC_RA_CON ( ( P_L1C << 8 ) | 47 ) | |
86 | |
87 #define MPHC_STOP_RA_REQ ( ( P_L1C << 8 ) | 48 ) // build: trigger | |
88 #define MPHC_STOP_RA_CON ( ( P_L1C << 8 ) | 49 ) | |
89 | |
90 #define MPHC_DATA_IND ( ( P_L1C << 8 ) | 50 ) | |
91 | |
92 #define MPHC_IMMED_ASSIGN_REQ ( ( P_L1C << 8 ) | 51 ) // build: T_MPHC_IMMED_ASSIGN_REQ | |
93 #define MPHC_CHANNEL_ASSIGN_REQ ( ( P_L1C << 8 ) | 52 ) // build: T_MPHC_CHANNEL_ASSIGN_REQ | |
94 #define MPHC_ASYNC_HO_REQ ( ( P_L1C << 8 ) | 53 ) // build: T_MPHC_ASYNC_HO_REQ | |
95 #define MPHC_SYNC_HO_REQ ( ( P_L1C << 8 ) | 54 ) // build: T_MPHC_SYNC_HO_REQ | |
96 #define MPHC_PRE_SYNC_HO_REQ ( ( P_L1C << 8 ) | 55 ) // build: T_MPHC_PRE_SYNC_HO_REQ | |
97 #define MPHC_PSEUDO_SYNC_HO_REQ ( ( P_L1C << 8 ) | 56 ) // build: T_MPHC_PSEUDO_SYNC_HO_REQ | |
98 #define MPHC_STOP_DEDICATED_REQ ( ( P_L1C << 8 ) | 57 ) // build: trigger | |
99 #define MPHC_STOP_DEDICATED_CON ( ( P_L1C << 8 ) | 128 ) // build: trigger | |
100 | |
101 #define MPHC_CHANGE_FREQUENCY_CON ( ( P_L1C << 8 ) | 58 ) | |
102 #define MPHC_ASYNC_HO_CON ( ( P_L1C << 8 ) | 59 ) | |
103 #define MPHC_CHANNEL_ASSIGN_CON ( ( P_L1C << 8 ) | 60 ) | |
104 #define MPHC_CHANNEL_MODE_MODIFY_CON ( ( P_L1C << 8 ) | 61 ) | |
105 #define MPHC_HANDOVER_FAIL_CON ( ( P_L1C << 8 ) | 62 ) | |
106 #define MPHC_IMMED_ASSIGN_CON ( ( P_L1C << 8 ) | 63 ) | |
107 #define MPHC_PRE_SYNC_HO_CON ( ( P_L1C << 8 ) | 64 ) | |
108 #define MPHC_SET_CIPHERING_CON ( ( P_L1C << 8 ) | 65 ) | |
109 #define MPHC_SYNC_HO_CON ( ( P_L1C << 8 ) | 66 ) | |
110 #define MPHC_TA_FAIL_IND ( ( P_L1C << 8 ) | 67 ) | |
111 | |
112 #define MPHC_HANDOVER_FINISHED ( ( P_L1C << 8 ) | 68 ) | |
113 | |
114 #define MPHC_CHANGE_FREQUENCY ( ( P_L1C << 8 ) | 69 ) // build: T_MPHC_CHANGE_FREQUENCY | |
115 #define MPHC_CHANNEL_MODE_MODIFY_REQ ( ( P_L1C << 8 ) | 70 ) // build: T_MPHC_CHANNEL_MODE_MODIFY_REQ | |
116 #define MPHC_HANDOVER_FAIL_REQ ( ( P_L1C << 8 ) | 71 ) // build: trigger | |
117 #define MPHC_SET_CIPHERING_REQ ( ( P_L1C << 8 ) | 72 ) // build: T_MPHC_SET_CIPHERING_REQ | |
118 | |
119 #define MPHC_MEAS_REPORT ( ( P_L1C << 8 ) | 73 ) // build: T_MPHC_MEAS_REPORT | |
120 #define MPHC_UPDATE_BA_LIST ( ( P_L1C << 8 ) | 74 ) // build: T_NEW_BA_LIST | |
121 | |
122 #define MPHC_NCELL_FB_SB_READ ( ( P_L1C << 8 ) | 75 ) // build: T_MPHC_NCELL_FB_SB_READ | |
123 #define MPHC_NCELL_SB_READ ( ( P_L1C << 8 ) | 76 ) // build: T_MPHC_NCELL_SB_READ | |
124 #define MPHC_NCELL_BCCH_READ ( ( P_L1C << 8 ) | 77 ) // build: T_MPHC_NCELL_BCCH_READ | |
125 | |
126 // Messages L1S -> L1A | |
127 #define L1C_VALID_MEAS_INFO ( ( P_L1C << 8 ) | 80 ) | |
128 #define L1C_FB_INFO ( ( P_L1C << 8 ) | 81 ) | |
129 #define L1C_SB_INFO ( ( P_L1C << 8 ) | 82 ) | |
130 #if ((REL99 == 1) && (FF_BHO == 1)) | |
131 #define L1C_FBSB_INFO ( ( ( ( P_MSB << P_SHIFT1 ) | 118 ) << P_SHIFT2 ) | P_MPHC_DL ) | |
132 #endif | |
133 #define L1C_SBCONF_INFO ( ( P_L1C << 8 ) | 83 ) | |
134 #define L1C_BCCHS_INFO ( ( P_L1C << 8 ) | 84 ) | |
135 #define L1C_BCCHN_INFO ( ( P_L1C << 8 ) | 85 ) | |
136 #define L1C_NP_INFO ( ( P_L1C << 8 ) | 86 ) | |
137 #define L1C_EP_INFO ( ( P_L1C << 8 ) | 87 ) | |
138 #define L1C_ALLC_INFO ( ( P_L1C << 8 ) | 88 ) | |
139 #define L1C_RXLEV_PERIODIC_DONE ( ( P_L1C << 8 ) | 89 ) | |
140 #define L1C_CB_INFO ( ( P_L1C << 8 ) | 90 ) | |
141 #define L1C_RA_DONE ( ( P_L1C << 8 ) | 91 ) | |
142 #define L1C_SACCH_INFO ( ( P_L1C << 8 ) | 92 ) | |
143 #define L1C_MEAS_DONE ( ( P_L1C << 8 ) | 93 ) | |
144 #define L1C_DEDIC_DONE ( ( P_L1C << 8 ) | 94 ) | |
145 #define L1C_HANDOVER_FINISHED ( ( P_L1C << 8 ) | 95 ) | |
146 #define L1C_REDEF_DONE ( ( P_L1C << 8 ) | 96 ) | |
147 #define L1C_STOP_DEDICATED_DONE ( ( P_L1C << 8 ) | 129 ) | |
148 | |
149 // Messages O&M <-> L1A | |
150 #define OML1_CLOSE_TCH_LOOP_REQ ( ( P_L1C << 8 ) | 97 ) // build: T_OML1_CLOSE_TCH_LOOP_REQ | |
151 #define OML1_OPEN_TCH_LOOP_REQ ( ( P_L1C << 8 ) | 98 ) // build: trigger | |
152 #define OML1_START_DAI_TEST_REQ ( ( P_L1C << 8 ) | 99 ) // build: T_OML1_START_DAI_TEST_REQ | |
153 #define OML1_STOP_DAI_TEST_REQ ( ( P_L1C << 8 ) | 100 ) // build: trigger | |
154 | |
155 #define OML1_CLOSE_TCH_LOOP_CON ( ( P_L1C << 8 ) | 101 ) | |
156 #define OML1_OPEN_TCH_LOOP_CON ( ( P_L1C << 8 ) | 102 ) | |
157 #define OML1_START_DAI_TEST_CON ( ( P_L1C << 8 ) | 103 ) | |
158 #define OML1_STOP_DAI_TEST_CON ( ( P_L1C << 8 ) | 104 ) | |
159 | |
160 | |
161 // Message Custom I/F <- L1S | |
162 #define CST_ADC_RESULT ( ( P_L1C << 8 ) | 105 ) | |
163 | |
164 | |
165 // Messages for trace | |
166 #define L1_STATS_REQ ( ( P_L1C << 8 ) | 107 ) // build: T_L1_STATS_REQ | |
167 #define L1_DUMMY_FOR_SIM ( ( P_L1C << 8 ) | 108 ) // build: trigger | |
168 | |
169 #define TRACE_DSP_DEBUG ( ( P_L1C << 8 ) | 106 ) | |
170 #define TRACE_CONFIG ( ( P_L1C << 8 ) | 123 ) | |
171 #define TRACE_CONDENSED_PDTCH ( ( P_L1C << 8 ) | 124 ) | |
172 #define TRACE_INFO ( ( P_L1C << 8 ) | 125 ) | |
173 #define QUICK_TRACE ( ( P_L1C << 8 ) | 126 ) | |
174 #define TRACE_DSP_AMR_DEBUG ( ( P_L1C << 8 ) | 127 ) | |
175 | |
176 #define MPHC_NETWORK_LOST_IND ( ( P_L1C << 8 ) | 110 ) // build: trigger | |
177 | |
178 // Messages MMI <-> L1A | |
179 #define MMI_ADC_REQ ( ( P_L1C << 8 ) | 111 ) // build: T_MMI_ADC_REQ | |
180 #define MMI_STOP_ADC_REQ ( ( P_L1C << 8 ) | 112 ) // build: trigger | |
181 #define MMI_STOP_ADC_CON ( ( P_L1C << 8 ) | 113 ) | |
182 | |
183 #define L1_TEST_HW_INFO ( ( P_L1C << 8 ) | 119 ) | |
184 | |
185 // Multi-band selection E-GSM900/DCS1800/PCS1900/GSM850 | |
186 #define MPHC_INIT_L1_REQ ( ( P_L1C << 8 ) | 114 ) // build: T_MPHC_INIT_L1_REQ | |
187 #define MPHC_INIT_L1_CON ( ( P_L1C << 8 ) | 115 ) | |
188 | |
189 // Message RR -> L1A for Enhanced meas. | |
190 #if (L1_12NEIGH ==1) | |
191 #define MPHC_NCELL_LIST_SYNC_REQ ( ( P_L1C << 8 ) | 122 ) // build: T_MPHC_NCELL_LIST_SYNC_REQ | |
192 #endif | |
193 | |
194 // Messages L2 <-> L1A | |
195 #define PH_DATA_IND ( ( P_DLL << 8 ) | 109 ) | |
196 |