blob: d6251d0baf8377c6c127b50b106839a6d1384819 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*****************************************************************************
2 *°æ±¾ËùÓÐ (C)2009ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾
3 * Ä£¿éÃû £ºPS-PHY½Ó¿Ú¶¨Òå
4 * ÎļþÃû £ºps_ephy_interface.h
5 * Îļþ±êʶ£º500000859505
6 * Ïà¹ØÎļþ£ºLTEЭÒéÕ»ÓëÎïÀí²ãÈí¼þ½Ó¿Ú˵Ã÷Êé
7 * ʵÏÖ¹¦ÄÜ£ºLTEЭÒéÕ»ÓëLTEÎïÀí²ãÖ®¼äµÄ½Ó¿Ú¶¨Òå
8 * ×÷Õß £ºÁõÖÇÅô ЭÒéÕ»²¿
9 * °æ±¾ £ºV1.0
10 * Íê³ÉÈÕÆÚ£º2009-8-10
11 * ÆäËü˵Ã÷£ºÐ½¨
12 *
13 * Ð޸ļǼ1£º// ÐÞ¸ÄÀúÊ·¼Ç¼£¬°üÀ¨ÐÞ¸ÄÈÕÆÚ¡¢ÐÞ¸ÄÕß¼°ÐÞ¸ÄÄÚÈÝ
14 * ÈÕ ÆÚ£º2010.5.10
15 * Ð޸ļǼºÅ(»ò°æ±¾ºÅ):
16 * ÐÞ¸ÄÈË£ºÁõÖÇÅô
17 * ÐÞ¸ÄÄÚÈÝ£ºÍ¬²½Í·ÎļþÓë×îеĽӿÚÉè¼ÆÎĵµ
18 * Ð޸ļǼ2£º
19 * ÈÕ ÆÚ£º2011.7.27
20 * Ð޸ļǼºÅ(»ò°æ±¾ºÅ):
21 * ÐÞ¸ÄÈË£ºÁõÖÇÅô
22 * ÐÞ¸ÄÄÚÈÝ£ºÔö¼Ó¶àÄ£½Ó¿Ú
23 * Ð޸ļǼ3£º
24 * ÈÕ ÆÚ£º2012.9.5
25 * Ð޸ļǼºÅ(»ò°æ±¾ºÅ):
26 * ÐÞ¸ÄÈË£ºÁõÖÇÅô
27 * ÐÞ¸ÄÄÚÈÝ£ºÔö¼ÓATÃüÁîʵÏÖÎïÀí²ã²ÎÊýÅäÖõÄÏûÏ¢½Ó¿Ú
28 *****************************************************************************/
29#ifndef _PS_EPHY_INTERFACE_H
30#define _PS_EPHY_INTERFACE_H
31
32/**************************************************************************
33 * Í·Îļþ°üº¬ *
34 **************************************************************************/
35#ifndef _OS_WIN
36#include "ram_config.h"
37#endif
38#include "psl1com.h"
39
40
41
42/**************************************************************************
43 * ºê¶¨Òå *
44 **************************************************************************/
45#ifndef _USE_LTEA_MERGE_LTE//DLMacbufÓÅ»¯LTE-AÔÝʱûÓл®·ÖµØÖ·¿Õ¼äby zcc
46#define Z_EUMAC_UL_PDU_BUF_NUM 16
47/*µ¥¸ö»º´æ´óС µ¥Î» BYTE*/
48#define Z_EUMAC_DL_PDU_BUF_SIZE 18736//18724
49#define ZPS_LTE_P_MAX_TB_NUM 4/*MACÒ»´Î½ÓÊÕµÄÏÂÐÐTBµÄ×î´ó¸öÊý*/
50#else
51#define Z_EUMAC_UL_PDU_BUF_NUM 8
52/*µ¥¸ö»º´æ´óС µ¥Î» BYTE*/
53#define Z_EUMAC_DL_PDU_BUF_SIZE 13000 //Áô¸øC#½Å±¾×ö»Ø¹é²âÊÔÓ㬺óÆÚTDDºÍC#½Å±¾ÍêÉÆºó¿ÉÒÔÈ¥µô
54
55/*Large and small DlMacPduBuf*/
56#define Z_EUMAC_DL_LARGEPDU_BUF_NUM 86 //210 //DDRÄÚ´æÑ¹Ëõ¸ÄΪ110
57#define Z_EUMAC_DL_SMALLPDU_PRE_MALLOC_MIN 16
58#define Z_EUMAC_DL_SMALLPDU_PRE_MALLOC_MAX 32
59
60/*µ¥¸ö»º´æ´óС µ¥Î» BYTE*/
61#define Z_EUMAC_DL_LARGEPDU_BUF_SIZE 9472
62#define Z_EUMAC_DL_SMALLPDU_BUF_SIZE 4000 //+64½Ó½ü4096
63#define ZPS_LTE_P_MAX_TB_NUM 2/*MACÒ»´Î½ÓÊÕµÄÏÂÐÐTBµÄ×î´ó¸öÊý*/
64#endif
65
66#define Z_EMBMS_DL_PDU_BUF_NUM 32 //8*4
67#define Z_EMBMS_DL_PDU_BUF_SIZE 9440
68
69/*µ¥¸ö»º´æ´óС µ¥Î» BYTE*/
70#define Z_EUMAC_UL_PDU_BUF_SIZE 9696
71#define Z_LTE_P_MAX_PCH_BUF_SIZE 500
72#define Z_LTE_P_MAX_SI_BUF_SIZE 2048
73#define Z_LTE_P_MAX_ETWS_BUF_SIZE 2048
74
75#define Z_LTE_P_HARQ_BUF_SIZE 64
76
77
78/* category3 ʱµÄPDU×î´óÖµ*/
79#define Z_LTE_P_MAX_UL_MACPDU_SIZE 9422
80#define Z_LTE_P_MAX_DL_MACPDU_SIZE 12756
81
82/* ²âÁ¿Ïà¹Øºê */
83#define ZPS_LTE_P_MAX_REPORT_CELL_PER_FREQ 32
84#define ZPS_LTE_P_MAX_MEAS_CELL_NUM_PER_FREQ 32
85#define ZPS_LTE_P_MAX_BLACK_CELL_PER_FREQ 32
86#define ZPS_LTE_P_MAX_FREQ_NUM 8
87#define ZPS_LTE_P_MAX_INTER_FREQ_NUM (ZPS_LTE_P_MAX_FREQ_NUM - 1)
88#define ZPS_LTE_P_MAX_SCELL_NUM 4
89#define ZPS_LTE_P_MAX_MBSFN_SUBFRAME_CFG_NUM 8
90#define ZPS_LTE_P_MAX_SINR_RESULT_NUM 4
91#define ZPS_LTE_P_MAX_RSSI_RESULT_NUM 2
92#define ZPS_LTE_P_MAX_N1PUCCH_AN_CSLISTP1_NUM 4
93
94#define Z_LTE_MAX_MBSFN_AREA_NUM_IN_CELL 8
95#define Z_LTE_P_MAX_SESSION_NUM_IN_PMCH 29
96#define Z_LTE_P_MAX_PMCH_NUM 15
97
98/*ZEPCG½Ó¿Úºê*/
99#define Z_ZEPCG_PARAM_NUM 25
100
101/*ºË¼äͬ²½ ±êÖ¾×Ö·û*/
102#define INTER_CORE_SYNC 0x5555AAAA
103
104/**************************************************************************
105 * È«¾ÖÊý¾Ý½á¹¹ÉùÃ÷ *
106 **************************************************************************/
107
108/*
109Á¬½Ó̬ϵÄÎÞÏßÁ´Â·¼à¿Ø²ÎÊý R9
110*/
111typedef struct
112{
113 WORD wCtrlFlg; /*1:ÆôÓñ¾IEÄÚЯ´øµÄÎÞÏßÁ´Â·¼à¿Ø²ÎÊý 0:ʹÓÃCommConfigÖÐÎÞÏßÁ´Â·¼à¿Ø²ÎÊý*/
114 /*
115 ȡֵ·¶Î§£º1, 2, 3, 4, 6, 8, 10, 20
116 µÈͬЭÒé²ÎÊý£ºÎÞ
117 ²ÎÊýÓÃ;£ºEPHY¼ì²âµ½N310´Îʧ²½ºó£¬Éϱ¨ZPS_LTE_P_OUT_OF_SYNC_IND_EvÏûÏ¢¸øEURRC
118 */
119 WORD wN310; /*bCtrlFlg=1ʱÓÐЧ*/
120 /*
121 ȡֵ·¶Î§£º1, 2, 3, 4, 5, 6, 8, 10
122 µÈͬЭÒé²ÎÊý£ºÎÞ
123 ²ÎÊýÓÃ;£ºEPHY¼ì²âµ½N311´Îͬ²½ºó£¬Éϱ¨ZPS_LTE_P_RECOVERY_SYNC_IND_EvÏûÏ¢¸øEURRC
124 */
125 WORD wN311; /*bCtrlFlg=1ʱÓÐЧ*/
126 WORD wPadding;
127}T_zPS_LTE_P_TimerConfig;
128
129/*
130EPHYÒ»¸öÐ¡ÇøµÄ²âÁ¿½á¹ûÐÅÏ¢
131*/
132typedef struct
133{
134 WORD wPhyCellId; //ȡֵ·¶Î§£º 0~503
135 WORD wRsrp; //ȡֵ·¶Î§£º 0~97
136 WORD wRsrq; //ȡֵ·¶Î§£º 0~34
137 WORD wPadding;
138} T_zPS_LTE_P_MeasResult;
139
140/*
141Ò»¸öƵµãµÄ²âÁ¿½á¹û,ÓÃÓÚÒìÆµ²âÁ¿½á¹ûµÄÉϱ¨
142*/
143typedef struct
144{
145 DWORD dwReportEarfcn; //ȡֵ·¶Î§£º 0~65535
146 WORD wCellNum; //ȡֵ·¶Î§£º 0~32
147 WORD wPadding;
148 T_zPS_LTE_P_MeasResult atResultList[ZPS_LTE_P_MAX_REPORT_CELL_PER_FREQ];
149} T_zPS_LTE_P_FreqMeasResult;
150
151/*
152¶¨ÒåµÄºÚÃûµ¥ÖÐÎïÀíÐ¡ÇøID µÄ·¶Î§
153*/
154typedef struct
155{
156 WORD wStartPhyCellId;
157 /*
158 ´ÓwStartPhyCellId¿ªÊ¼µÄÎïÀíÐ¡ÇøIDµÄ¸öÊý,
159 ȡֵ·¶Î§£º 1, 4, 8, 12, 16, 24, 32, 48, 64, 84, 96, 128, 168, 252, 504
160 */
161 WORD wPhyCellIdNum;
162} T_zPS_LTE_P_PhyCellIdRange;
163
164typedef struct
165{
166 WORD wMeasSubframePattern;
167 WORD awSubframeConfigBit[5];
168} T_zPS_LTE_P_MeasSubframePattern;
169
170typedef struct
171{
172 WORD wSetupFlg;
173 WORD wCellRangeNum;
174 T_zPS_LTE_P_MeasSubframePattern tMeasSubframePattern;
175 T_zPS_LTE_P_PhyCellIdRange atPhyCellIdRangeList[ZPS_LTE_P_MAX_MEAS_CELL_NUM_PER_FREQ];
176} T_zPS_LTE_P_MeasSubframeConfigNeigh;
177
178/*
179²âÁ¿¶ÔÏóµÄÐÅÏ¢
180*/
181typedef struct
182{
183 DWORD dwEarfcn;
184 /*
185 wMeasBandWidth ȡֵ·¶Î§£º 6£¬15£¬25£¬50£¬75£¬100£¬255
186 255±íÊ¾ÍøÂç²àûÓÐÅäÖòâÁ¿´ø¿í£¬²ÉÓúͷþÎñÐ¡ÇøÏàͬµÄÏÂÐдø¿í½øÐвâÁ¿
187 */
188 WORD wMeasBandWidth;
189 WORD wCellNum;
190 /*
191 1:¸ÃƵµãÏà¶ÔÓÚ·þÎñƵµãÊǸßÓÅÏȼ¶Æµµã
192 0:¸ÃƵµãÏà¶ÔÓÚ·þÎñƵµã²»ÊǸßÓÅÏȼ¶Æµµã
193 */
194 WORD wHighPrioFlg;
195 WORD wPadding0;
196 WORD awPhyCellIdList[ZPS_LTE_P_MAX_MEAS_CELL_NUM_PER_FREQ];
197 /*
198 ÒìÆµµÄÖÆÊ½,ȡֵ·¶Î§£º 0£¬1
199 0:FDDÒìÆµ£»
200 1:TDD񓮵
201 */
202 WORD wAdditionalEarfcnInd;
203 /*
204 wPresenceAntennaPort1 : ÊÇ·ñʹÓÃÌìÏß¶Ë¿Ú1
205 TRUE£ºÊ¹ÓÃÌìÏß¶Ë¿Ú1.Ò²¾ÍÊÇËùÓÐÁÚÐ¡ÇøÖÁÉÙʹÓÃÁ½¸öÌØ¶¨µÄÌìÏß¶Ë¿Ú
206 FALSE£º²»ÊÊÓÃÌìÏß¶Ë¿Ú1.
207 */
208 WORD wPresenceAntennaPort1;
209 /*ÓÃÓÚCONNECTED̬£¬ÌṩintraÁÚÇøµÄMBSFNºÍTDD UL/DLÐÅÏ¢*/
210 WORD wNCellConfig;
211 /*Ö¸¶¨µÄºÚÃûµ¥ÎïÀíÐ¡ÇøID·¶Î§µÄÊýÄ¿, ȡֵ·¶Î§£º 0~32*/
212 WORD wBlackCellNum;
213 /*Ö¸¶¨µÄºÚÃûµ¥ÎïÀíÐ¡ÇøID·¶Î§µÄÁбí*/
214 T_zPS_LTE_P_PhyCellIdRange atPhyCellIdRangeList[ZPS_LTE_P_MAX_BLACK_CELL_PER_FREQ];
215 /*No DRX used״̬ϵı¨¸æÖÜÆÚ£¬µ¥Î»ms*/
216 DWORD dwNoDrxReportPeriod;
217 /*DRX used״̬ϵı¨¸æÖÜÆÚ£¬µ¥Î»ms*/
218 DWORD dwDrxReportPeriod;
219 /*Ô¼ÊøÅäÖñê־λ£¬Ö¸Ê¾atNeighMeasSubframeConfigÊÇ·ñ´æÔÚ£¬0-²»´æÔÚ£¬1-´æÔÚ*/
220 WORD wMeasSubFrameConfigFlg;
221 /*Scell²âÁ¿ÖÜÆÚ£¬ÒÔ×ÓÖ¡ÊýΪµ¥Î»±íʾ*/
222 WORD wMeasCycleScell;
223 /*ÁÚÇø²âÁ¿Ô¼ÊøÅäÖÃ*/
224 T_zPS_LTE_P_MeasSubframeConfigNeigh atNeighMeasSubframeConfig;
225
226} T_zPS_LTE_P_MeasFreqInfo;
227
228typedef struct
229{
230 WORD wMsgId;
231 /*
232 wReportQuantity: ȡֵ·¶Î§£º0£¬1£¬2
233 0: Ö»²âRSRP
234 1: Ö»²âRSRQ,
235 2: RSRPºÍRSRQÁ½¸ö¶¼²â
236 */
237 WORD wReportQuantity;
238 /*
239 wMaxCellReportPerFreq ÅäÖÃÿ¸öƵµãÉÏEPHYÉϱ¨Ð¡ÇøµÄ×î´ó¸öÊý¡£
240 ÒòΪ³ýÁËÅäÖõÄCellInfoListÍ⣬ÎïÀí²ã»¹ÄܽøÐÐÆäËû·ÇblacklistÄÚµÄÐ¡ÇøµÄ¼ì²âºÍ²âÁ¿Éϱ¨¡£
241 Òò´Ë¿ÉÒÔÀûÓô˽ӿڶÔÎïÀí²ãÉϱ¨µÄ×î´ó¸öÊý½øÐÐÁé»îÅäÖá£Ä¿Ç°Í³Ò»ÉèÖÃΪ32¡£
242 */
243 WORD wMaxCellReportPerFreq;
244 /*
245 ±»²âµÄƵµã¸öÊý¡£¸ù¾ÝĿǰLTEÎïÀí²ãµÄ²âÁ¿ÄÜÁ¦×î¶àÖ§³Ö3¸öÒìÆµÆµµã£¬¼ÓÉÏͬƵµÄƵµã£¬×î´óֵΪ4¡£
246 */
247 WORD wFreqNum;
248 /*
249 Rx-Tx²âÁ¿Ö¸Ê¾
250 */
251 WORD wRxTxMeas; /* 1±íʾ¿ªÆôRx-Tx²âÁ¿Éϱ¨£¬0±íʾֹͣ */
252 WORD wRsrpFilterFactor; /* RSRPµÄL3¹ýÂËϵÊý£¬È±Ê¡ÖµÎª4 */
253 WORD wRsrqFilterFactor;
254 WORD wPadding;
255 /*
256 ²âÁ¿¶ÔÏóµÄÐÅÏ¢ÁÐ±í£¨º¬Í¬ÆµºÍÒìÆµ£©, ÔªËØ0¹Ì¶¨ÎªintraƵµãµÄ²ÎÊý¡£1~3ΪinterƵµã²ÎÊý
257 */
258 T_zPS_LTE_P_MeasFreqInfo atMeasFreqInfoList[ZPS_LTE_P_MAX_FREQ_NUM];
259} T_zPS_LTE_P_MeasConfig_Req;
260
261/*
262ЭÒéÕ»¸øÎïÀí²ãÅäÖòâÁ¿GAPµÄÏûÏ¢¡£Èç¹ûÅäÖÃÁËеÄGAP PATTEN£¬ÎïÀí²ãÐèҪֹͣ¾ÉµÄGAP
263*/
264typedef struct
265{
266 WORD wMsgId;
267 /*
268 wActivated: ȡֵ·¶Î§ 1£¬0
269 1£º¼¤»îÏÂÃæÅäÖõÄmeas_gap,ֹ֮ͣǰµÄGAP
270 0£ºÈ¥»îµ±Ç°ÕýÔÚʹÓõÄmeas_gap£¬ÏÂÃæµÄ²ÎÊýÎÞЧ
271 */
272 WORD wActivated;
273 /*
274 wGapPatternId ȡֵ·¶Î§£º0£¬1
275 0Ϊpattern0,
276 1Ϊpattern1
277 */
278 WORD wGapPatternId;
279 /*
280 PATTEN_0µÄ·¶Î§£¨0~39£©
281 PATTEN_1µÄ·¶Î§£¨0~79£©
282 */
283 WORD wGapOffset;
284} T_zPS_LTE_P_MeasGapConfig_Req;
285
286/*
287ЭÒéÕ»¸øÎïÀí²ãÅäÖòâÁ¿¶ÔÏóµÄÑÚÂëÐÅÏ¢(Æô¶¯/ֹͣijЩƵµãµÄÁÚÇø²âÁ¿)
288*/
289typedef struct
290{
291 WORD wMsgId;
292 /*
293 ÿ¸öbit¶ÔÓ¦meas_freq_infoÖеÄÒ»¸öƵµã£¬ÎïÀí²ãÖ»Æô¶¯¶ÔÓ¦µÄbitλΪ1µÄƵµãµÄ²âÁ¿¡£
294 Bitn¶ÔÓ¦ZPS_LTE_P_MEAS_CONFIG_REQ_EvÖеÄatMeasFreqInfoList[n]£¬n£º0~3
295 */
296 WORD wMeasBitMask;
297 /*
298 µ±·þÎñÐ¡ÇøSr>SnonintraPÇÒSq>SnonintraQʱ£¬¸ÃÖµ±»ÖÃΪ1£¬·ñÔòÖÃ0
299 */
300 WORD wEnableHighSearch;
301 /*
302 ÒìÖÆÊ½¸öÊý£¬ÓÃÀ´¼ÆËã¸ßÓÅÏȼ¶ËÑË÷ÖÜÆÚ£¬µ±wEnableHighSearchΪ1ʱÓÐЧ£¬Îª0ºöÂÔ¸ÃÖµ
303 */
304 WORD wIratNum;
305
306 WORD wMeasTypeBitMask;/*ÿ¸öƵµã²âÁ¿Æô¶¯µÄ³¡¾°Î»Í¼£¬È¡Öµ0±íʾ°´Ð­ÒéÃÅÏÞÆô¶¯£¬È¡Öµ1±íʾ°´RSRQ<=TH1(-12.5dB)Æô¶¯ */
307 WORD wPadding;
308
309} T_zPS_LTE_P_MeasMaskSet_Req;
310
311typedef struct
312{
313 WORD wMsgId;
314 WORD wMeasPeriodChgMask;
315} T_zPS_LTE_P_MeasPeriodChg_Req;
316
317/*
318ÏòЭÒéÕ»Éϱ¨Í¬ÆµÐ¡ÇøºÍ·þÎñÐ¡ÇøµÄ²âÁ¿½á¹û
319*/
320typedef struct
321{
322 WORD wRxTxTimeDiff;
323 WORD wCurSFN;
324} T_zPS_LTE_P_RxTxResult;
325
326typedef struct
327{
328 DWORD dwEarfcn;
329 WORD wPci;
330 WORD wRsrp;
331 WORD wRsrq;
332 WORD wNeighCellNum;
333 T_zPS_LTE_P_MeasResult tSccNeiCellRlstList[ZPS_LTE_P_MAX_REPORT_CELL_PER_FREQ];
334} T_zPS_LTE_P_ScellMeasResult;
335
336typedef struct
337{
338 SHORT sSinrInt; //ȡֵ·¶Î§ -20~40
339 WORD wSinrDec; //ȡֵ·¶Î§ 0~9
340} T_zPS_LTE_P_SinrResult;
341
342typedef struct
343{
344 SHORT sRssiInt; //ȡֵ·¶Î§ -128~-4£¬ÕûÊý²¿·Ö
345 WORD wRssiDec; //ȡֵ·¶Î§ 0~9£¬Ð¡Êý²¿·Ö
346} T_zPS_LTE_P_RssiResult;
347
348typedef struct
349{
350 WORD wNeibExistFlg;
351 WORD wCellNum;
352 WORD wRxTxRsltFlg;
353 WORD wSccRsltFlg;
354 DWORD dwServEarfcn;//·þÎñÐ¡ÇøÆµµãºÅ£¬·ÀÖ¹PSÖØÑ¡³É¹¦ºóÎóʹÓÃÖ®Ç°Ð¡Çø²âÁ¿½á¹û×öÆÀ¹À
355
356 WORD wRankInd; //µ¥Ë«Á÷ָʾ£¬È¡Öµ1±íʾµ¥Á÷£¬2±íʾ˫Á÷£¬0±íʾÎÞЧ£¬
357 WORD wPadding;
358
359 T_zPS_LTE_P_RxTxResult tRxTxRslt;
360 T_zPS_LTE_P_SinrResult tSinrRslt[ZPS_LTE_P_MAX_SINR_RESULT_NUM];
361 T_zPS_LTE_P_RssiResult tRssiRslt[ZPS_LTE_P_MAX_RSSI_RESULT_NUM];
362 T_zPS_LTE_P_MeasResult atResultList[ZPS_LTE_P_MAX_REPORT_CELL_PER_FREQ];
363 T_zPS_LTE_P_ScellMeasResult atScellResult[ZPS_LTE_P_MAX_SCELL_NUM];
364} T_zPS_LTE_P_IntraMeas_Ind;
365
366/*
367ÏòЭÒéÕ»Éϱ¨ÒìÆµÐ¡ÇøµÄ²âÁ¿½á¹û
368*/
369typedef struct
370{
371 WORD wFreqNum;
372 WORD wSpecFreqRltFg; //ȡֵΪ1ʱ±íʾ°üº¬ÁËÖ¸¶¨ÒìÆµÆµµãµÄ²âÁ¿½á¹û
373 T_zPS_LTE_P_FreqMeasResult atFreqResultList[ZPS_LTE_P_MAX_INTER_FREQ_NUM];
374} T_zPS_LTE_P_InterMeas_Ind;
375
376/*
377Í£Ö¹EPHYµÄNCELL²âÁ¿Éϱ¨£¬SCELLµÄ²âÁ¿ÈÔÈ»¼ÌÐøÉϱ¨¡£
378*/
379typedef struct
380{
381 WORD wMsgId;
382 WORD wPadding0;
383} T_zPS_LTE_P_AbortMeas_Req;
384
385
386/*
387EPHYÉϱ¨µÄDRX״̬
388*/
389typedef struct
390{
391 /*
392 1:drx is used£¬0: no drx is used
393 */
394 WORD wDrxState ;
395 WORD wPadding0;
396} T_zPS_LTE_P_DrxStateInd;
397
398/**************************************************************************
399 * Ð¡ÇøÑ¡Ôñ¡¢Ñ°ºôÏà¹Ø½Ó¿Ú *
400 **************************************************************************/
401#define ZPS_LTE_P_MAX_NUM_OF_BAND 32
402#define ZPS_LTE_P_MAX_NUM_OF_EARFCN_SCAN 64
403#define ZPS_LTE_P_MAX_NUM_OF_STORED_CELL 8
404#define ZPS_LTE_P_MAX_NUM_OF_CELL_SEARCH 8
405
406typedef struct
407{
408 WORD wPhyCellId;
409 /*
410 ¶ÔÓ¦Ð¡ÇøµÄRS½ÓÊܹ¦ÂʵÄÖµ, 0¡«97
411 */
412 WORD wRsrp;
413 WORD wRsrq;
414 WORD wPadding;
415} T_zPS_LTE_P_CellSearchResult;
416
417typedef struct
418{
419 DWORD dwEarfcn;
420 WORD wRssi;
421 WORD wPadding;
422} T_zPS_LTE_P_FreqScanResult;
423
424typedef struct
425{
426 /*
427 ij¸öƵ¶ÎµÄÆðʼƵµã,
428 ȡֵ·¶Î§£º1830~2619¡²¶ÔÓ¦ÓÚTDDģʽ£¬²Î¼ûЭÒé36.101- Table 5.7.3-1¡³
429 */
430 DWORD dwStartEarfcn;
431 DWORD dwEndEarfcn;
432} T_zPS_LTE_P_FreqBand;
433
434 typedef struct
435{
436 WORD wMsgId;
437 WORD wBandNum;
438 WORD wProcId; /* Ôö¼Ó */
439 WORD wFreqScanType;
440 T_zPS_LTE_P_FreqBand atFreqBandList[ZPS_LTE_P_MAX_NUM_OF_BAND];
441} T_zPS_LTE_P_FreqScan_Req;
442
443typedef struct
444{
445 WORD wReportEarfcnNum;
446 WORD wProcId; /* Ôö¼Ó */
447 /*
448 ȡֵ·¶Î§£º1830~2619¡²¶ÔÓ¦ÓÚTDDģʽ£¬²Î¼ûЭÒé36.101- Table 5.7.3-1¡³
449 µÈͬЭÒé²ÎÊý£ºFDL = FDL_low + 0.1(NDL - NOffs-DL) ²Î¼ûЭÒé36.101-5.7.3
450 ²ÎÊýÓÃ;£º½«±¾´ÎƵµãɨÃ賬¹ýÃÅÏ޵ĸ÷Ƶµã£¬°´ÕÕRSSIÄÜÁ¿´Ó´óµ½Ð¡Ë³ÐòÅÅÁУ¬
451 ²¢×ª»¯ÎªÐ­Òé±ê×¼µÄFDLƵµãºÅÉϱ¨Ð­ÒéÕ»¡£
452 */
453 DWORD adwEarfcn[ZPS_LTE_P_MAX_NUM_OF_EARFCN_SCAN];
454} T_zPS_LTE_P_FreqScan_Cnf;
455
456typedef struct
457{
458 WORD wMsgId;
459 /*
460 ±êÊ¶Ð¡ÇøËÑË÷µÄÐÎʽºÍËÑË÷½á¹ûÉϱ¨µÄÐÎʽ
461 1:Éϱ¨×îÇ¿Ð¡Çø£»2:Éϱ¨Ò»¸öÐ¡ÇøÁÐ±í£»3:´æ´¢Ð¡ÇøµÄËÑË÷£¬²ÉÓÃwPhyCellIdListÖÐÖ¸¶¨µÄÐ¡Çø
462 */
463 WORD wSearchType;
464 WORD wProcId;
465 WORD wIratFg; //1:-->2/3Gµ½4GµÄÖØÑ¡¡¢Öض¨Ïò³¡¾°Ö¸Ê¾
466 DWORD dwEarfcn;
467 /*
468 ´æ´¢Ð¡ÇøËÑË÷ʱ,Ö¸¶¨µÄÐ¡ÇøÁбí.½ö´æ´¢Ð¡ÇøËÑË÷ʱÓÐЧ
469 */
470 WORD wCellNum;
471 WORD wBlackCellListNum;
472 WORD awPhyCellIdList[ZPS_LTE_P_MAX_NUM_OF_STORED_CELL];
473 T_zPS_LTE_P_PhyCellIdRange atBlackCellList[ZPS_LTE_P_MAX_BLACK_CELL_PER_FREQ];
474} T_zPS_LTE_P_CellSearch_Req;
475
476/*
477EPHYÐ¡ÇøËÑË÷½á¹ûÉϱ¨
478*/
479typedef struct
480{
481 WORD wProcId;
482 WORD wCellNum;
483 DWORD dwEarfcn;
484 T_zPS_LTE_P_RssiResult tRssiRslt; /*¸ÃƵµãµÄRSSI£¬¹¤³ÌģʽɨƵÉϱ¨ÐèÇóÐÂÔö*/
485 T_zPS_LTE_P_CellSearchResult atCellSearchResultList[ZPS_LTE_P_MAX_NUM_OF_CELL_SEARCH];
486} T_zPS_LTE_P_CellSearch_Cnf;
487
488/*
489ÖÕÖ¹EPHYÕýÔÚ½øÐеÄÐ¡ÇøËÑË÷ÒÔ¼°ÆµµãɨÃè
490*/
491typedef struct
492{
493 WORD wMsgId;
494 WORD wPadding0;
495} T_zPS_LTE_P_AbortCellSearch_Req;
496
497
498
499/*
500PSÄÚ²¿µÄÏûÏ¢£¬ÓÉPHYµÄ²Ù×÷À´´¥·¢
501ÏûÏ¢·½Ïò£ºHISR->ESIR
502*/
503typedef struct
504{
505 WORD wDataLen;
506 WORD wPadding;
507 PBYTE pbPchData;
508} T_zPS_LTE_P_PchData_Ind;
509
510
511/**************************************************************************
512 * ϵͳÏûÏ¢¶ÁÈ¡Ïà¹Ø½Ó¿Ú *
513 **************************************************************************/
514#define ZPS_LTE_P_MAX_NUM_OF_SI 10
515
516typedef struct
517{
518 /*
519 wSiPeriodicity: ȡֵ·¶Î§:
520 ȡֵ·¶Î§£º rf8, rf16, rf32, rf64, rf128, rf256, rf512 (ÎÞÏßÖ¡µ¥Î»)
521 µÈͬЭÒé²ÎÊý£ºsi-Periodicity£¬²Î¼û²Î¼ûTS36.331-5.2.3
522 ²ÎÊýÓÃ;£º±êʾÏàÓ¦SIBµÄ½ÓÊÕ´°¿Ú³öÏÖµÄÖØ¸´ÖÜÆÚ
523 */
524 WORD wSiPeriodicity;
525 /*
526 wSiIndex ȡֵ·¶Î§£º 1¡«32
527 µÈͬЭÒé²ÎÊý£º n£¬²Î¼û²Î¼ûTS36.331£­5.2.3£¬ 6.2.2
528 ²ÎÊýÓÃ;£ºÎªSIÏûÏ¢¶ÔÓ¦µÄnÖµ£¬ÓÃÓÚ¼ÆËãÿ¸öSIBµÄ´°¿ÚÆðʼʱ¼äµã£¨²Î¼û36331-5.2.3ЭÒéÃèÊö£©£¬
529 ´ÓÏûÏ¢½á¹¹ÉÏ¿´£¬Ã¿¸öSIBµÄ´°¿Ú³¤¶ÈÊÇÏàͬµÄ£¬Ö»ÐèÒª¸ù¾ÝSIBµÄϱê¾Í¿ÉÒÔÍÆËã³öÿ¸ö´°¿ÚµÄÆðʼλÖá£
530 for the concerned SI message, determine the number n which corresponds to the order of entry
531 in the list of SI messages configured by schedulingInfoList in SystemInformationBlockType1;
532 2> determine the integer value x = (n - 1)*w, where w is the si-WindowLength;
533 2> the SI-window starts at the subframe #a, where a = x mod 10, in the radio frame for which
534 SFN mod T = FLOOR(x/10), where T is the si-Periodicity of the concerned SI message;
535 */
536 WORD wSiIndex;
537} T_zPS_LTE_P_SiSchedInfo;
538
539/*
540RRCÇëÇóEPHY¶ÁÈ¡SIB1(PHY¸ù¾ÝÐèÒª¶ÁÈ¡MIB)£¬
541×¢£ºÊÕµ½´ËÇëÇóºó£¬EPHYÁ¢¼´Í£Ö¹Ö®Ç°µÄϵͳÏûÏ¢µ÷¶È£¬²¢¿ªÊ¼¶ÁÈ¡SIB1¡£MIBµÄ¶ÁÈ¡ÓÉÎïÀí²ã×Ô¼ºÈ·¶¨¡£
542*/
543 typedef struct
544{
545 WORD wMsgId;
546 WORD wSiRequestForHO;
547 WORD wProcId;
548 /*
549 ÐèÒª¶ÁÈ¡SIµÄÎïÀíÐ¡ÇøID
550 */
551 WORD wPhyCellId;
552 DWORD dwEarfcn;
553 //WORD wPadding;
554} T_zPS_LTE_P_ReadSib1_Req;
555
556/*
557RRCÇëÇóEPHYÍ£Ö¹ËùÓÐϵͳÐÅÏ¢µÄ¶ÁÈ¡
558*/
559typedef struct
560{
561 WORD wMsgId;
562 WORD wPadding1;
563} T_zPS_LTE_P_AbortSiRead_Req;
564
565/*
566ÇëÇóEPHY¸ù¾ÝÏ·¢µÄµ÷¶ÈÐÅÏ¢¶ÁÈ¡ÏàÓ¦µÄSI
567*/
568typedef struct
569{
570 WORD wMsgId;
571 WORD wPadding;
572 DWORD dwEarfcn;
573
574 WORD wSubFrameAssign;
575 WORD wSpecialSubFramePatterns;
576 WORD wReadMode;
577 WORD wPhyCellId;
578 /*
579 wSiWindowLen£ºÈ¡Öµ·¶Î§£ºms1, ms2, ms5, ms10, ms15, ms20, ms40 (ºÁÃ뵥λ),
580 ±íÕ÷ij¸öSI¿ÉÄÜ´æÔÚµÄʱ¼ä´°µÄ³¤¶È£¬Õâ¸öÕâ¸öʱ¼ä´°ÄÚµÄ×ÓÖ¡ÓпÉÄܳÐÔØSIÒ²¿ÉÄܲ»³ÐÔØSI£¬
581 UEÐèÒªÔÚ´°ÄÚ³ÖÐø¼ì²âÖ±µ½½â³öÕýÈ·µÄSIΪֹ£¬´°ÄڵijÐÔØSIµÄPDSCHÐèÒª²ÉÓÃHARQ¹ý³Ì£¬
582 µ«ÎÞÐèÏòÍøÂç²à·´À¡ACK/NACK¡£Ò»¸ö´°¿ÚÄÚ½ö½ö»á³ÐÔØ1¸öSIµÄÐÅÏ¢¡£
583 */
584 WORD wSiWindowLen;
585 /*
586 ָʾ±¾´ÎSIµ÷¶ÈÐèÒª¶ÁÈ¡µÄSI¸öÊý
587 */
588 WORD wSiSchedNum;
589 /*
590 ÿ¸öÄ¿±êSIµÄʱ¼ä·Ö²¼ÐÅÏ¢£¬ÓÃÓÚ¼ÆËãSIµÄ½ÓÊÕʱ¼ä´°
591 */
592 T_zPS_LTE_P_SiSchedInfo atSiSchedInfoList[ZPS_LTE_P_MAX_NUM_OF_SI];
593} T_zPS_LTE_P_SchedSi_Req;
594
595/*
596EPHY·´À¡¸øÐ­ÒéÕ»µÄSIBÐÅÏ¢Êý¾Ý¸ñʽ
597*/
598typedef struct
599{
600 /*
601 wReadResultȡֵ·¶Î§£º0£ºÓÐЧϵͳÏûÏ¢£¬ 1£ºÔ¤Áô
602 ±êʾµ±Ç°bufferÖеÄÊý¾ÝÊÇ·ñΪSIBÊý¾Ý¡£¸Ã²ÎÊýÓпÉÄÜÀ©Õ¹ÎªCRCÐÅÏ¢£»
603 ĿǰЭÒéÕ»Ô¤ÆÚPHYÉϱ¨µÄÊý¾Ý×ÜÊÇCRC okµÄ£»Èç¹ûCRC fail Ôò²»ÒªÉϱ¨¡£
604 */
605 WORD wReadResult;
606 WORD wDlBandWidth;
607 WORD wProcId; /* Ôö¼Ó */
608 /*
609 ±êʾµ±Ç°bufferÖеÄSIBÊý¾Ý³¤¶È, 0¡«2Kbyte
610 */
611 WORD wDataLen;
612 PBYTE pbSiData;
613 T_zPS_LTE_P_SinrResult tSinrRslt; /*¸ÃÐ¡ÇøµÄSINR£¬¹¤³ÌģʽɨƵÉϱ¨ÐèÇóÐÂÔö*/
614} T_zPS_LTE_P_SiData_Ind;
615
616/*
617EPHY¶ÁÈ¡MIBʧ°ÜºóÉϱ¨´ËÏûÏ¢
618µ±PHYÊÕµ½¶ÁÈ¡SIB1µÄÇëÇóºó£¬×Ô¶¯Ñ¡Ôñ½øÐÐMIBµÄ¶ÁÈ¡£¬Èç¹û¶à´Î£û³õ²½Ô¼¶¨Îª3´Î£¬ ¼´Ô¼3*40ms£ý
619¶ÁÈ¡MIBʧ°Üºó£¬PHYÓ¦¸ÃÍ£Ö¹MIBµÄ¶ÁÈ¡³¢ÊÔ£¬Éϱ¨´íÎó¸øÐ­ÒéÕ»£¬ÓÉЭÒéջѡÔñÆäËûÐ¡Çø½øÐг¢ÊÔ¡£
620*/
621typedef struct
622{
623 WORD wProcId;
624 WORD wPadding;
625} T_zPS_LTE_P_PbchReadFail_Ind;
626/**************************************************************************
627 * ÅäÖÃÏà¹Ø½Ó¿Ú *
628 **************************************************************************/
629#define ZPS_LTE_P_MAX_N1PAN_NUM 4
630#define ZPS_LTE_P_MAX_SRS_CFG_NUM 3
631#define ZPS_LTE_P_MAX_CSI_MEAS_SF_PATTERN_NUM 2
632#define ZPS_LTE_P_MAX_N3PAN_NUM 4
633#define ZPS_LTE_P_MAX_N1PANLIST_NUM 2
634
635typedef struct
636{
637 DWORD dwDlEarfcn;
638 DWORD dwUlEarfcn;
639 WORD wPhyCellId;
640 WORD wDlBandWidth;
641 WORD wUlBandWidth;
642 WORD wPadding;
643} T_zPS_LTE_P_PhyCellInfo;
644
645typedef struct
646{
647 /*
648 wPowerRampStep:
649 ȡֵ·¶Î§£ºdB0, dB2,dB4, dB6
650 µÈͬЭÒé²ÎÊý£º321.5.1.1 powerRampingStep
651 ²ÎÊýÓÃ;£ºÉÏÐз¢ËÍpreamble¹¦Âʵ÷Õû²½³¤£¬ÓÃÓÚÖØ·¢preamble¹ý³ÌÖе÷Õû·¢É书ÂÊ
652 */
653 WORD wPowerRampStep;
654 /*
655 ȡֵ·¶Î§£º{dBm-120, dBm-118, dBm-116, dBm-114,dBm-112, dBm-110, dBm-108,
656 dBm-106, dBm-104, dBm-102, dBm-100, dBm-98, dBm-96, dBm-94, dBm-92, dBm-90}
657 µÈͬЭÒé²ÎÊý£º321.5.1.1 preambleInitialReceivedTargetPower
658 ²ÎÊýÓÃ;£ºRRCÅäÖÃÏÂÀ´µÄ³õʼpreamble¹¦ÂÊ£¬ÓÃÓÚ¼ÆËãpreamble·¢É书ÂÊ
659 */
660 WORD wPreamInitialRecvTargetPower;
661 /*
662 ȡֵ·¶Î§£º{n3, n4, n5, n6, n7, n8, n10, n20, n50, n100, n200}
663 µÈͬЭÒé²ÎÊý£º321.5.1.1 preambleTransMax
664 ²ÎÊýÓÃ;£ºpreamble×î´óÖØ´«´ÎÊý£¬ÖØ´«´ÎÊý³¬¹ý´ËÊýÖµÔòÐèÒªÉϱ¨´íÎó£¬ÖØÐ·¢ÆðËæ»ú½ÓÈë¹ý³Ì¡£
665 */
666 WORD wPreamTransMax;
667 /*
668 ȡֵ·¶Î§£º{ sf2, sf3, sf4, sf5, sf6, sf7, sf8, sf10}
669 µÈͬЭÒé²ÎÊý£º321.5.1.1 ra-ResponseWindowSize
670 ²ÎÊýÓÃ;£º¼ì²âRARÐÅϢʱ¼ä´°³¤¶È¡£ÓÃÓÚ·¢ËÍpreambleºóÔÚÖ¸¶¨µÄʱ¼äÄÚ¼ì²âÊÇ·ñÓжÔÓ¦µÄRARÐÅÏ¢£¬
671 ²¢ÅжϽÓÊÕ·¢ËÍpreamble¹ý³Ì£¨msg1£©ÊÇ·ñ³É¹¦£¬³¬¹ý´Ë¶Îʱ¼äÒÀ¾ÉûÓÐÏàÓ¦µÄRARÐÅÏ¢£¬ÔòÅжϷ¢ËÍpreamble¹ý³Ìʧ°Ü¡£
672 ÐèÖØÐ·¢ËÍ¡£
673 */
674 WORD wRaResponseWinSize;
675 /*
676 ȡֵ·¶Î§£ºINTEGER 1~8
677 µÈͬЭÒé²ÎÊý£º321.5.1.1 maxHARQ-Msg3Tx.
678 ²ÎÊýÓÃ;£º¾ºÕù½â¾öÖз¢ËÍmsg3ʱ£¬µ÷ÓÃHARQ¹ý³Ì×î´óÖØ´«´ÎÊý¡£
679 */
680 WORD wMaxHarqMsg3Tx;
681 /*
682 ȡֵ·¶Î§£ºINTEGER (0..837)
683 µÈͬЭÒé²ÎÊý£º211.5.7.2 RACH_ROOT_SEQUENCE£¨Logical root sequence number£©
684 ²ÎÊýÓÃ;£ºZCÐòÁÐÁãÏà¹ØÇøÓòÂß¼­¸ùÖµ¡£ÓÃÓÚ²éÕÒÎïÀí¸ùÖµ£¬×÷ΪÆäÖÐÒ»¸ö²ÎÊý£¬¼ÆËãµ±Ç°Ð¡Çø²úÉúµÄpreambleÐòÁС£
685 */
686 WORD wRootSeqIdx;
687 /*
688 ȡֵ·¶Î§£ºINTEGER 0~63
689 µÈͬЭÒé²ÎÊý£º211.5.7.1 prach-ConfigurationIndex
690 ²ÎÊýÓÃ;£ºÐ­Òéջָʾµ±Ç°PHY¿ÉÓõÄprach resource¡£ÓÃÓÚ×ÊÔ´Ñ¡Ôñ£¬ÒÔ¼°»ñÈ¡preambleµ±Ç°ËùÓøñʽ¡£
691 */
692 WORD wPrachConfigIdx;
693 /*
694 ȡֵ·¶Î§£º1Ϊ¸ßËÙָʾ£¨ÏÞÖÆÐ¡Çø£©£¬0Ϊ·Ç¸ßËÙ£¨·ÇÏÞÖÆÐ¡Çø£©
695 µÈͬЭÒé²ÎÊý£º211.5.7.2 High-speed-flag
696 ²ÎÊýÓÃ;£º±êÖ¾µ±Ç°Ð¡ÇøÀàÐÍ£¨¸ßËÙÐ¡Çø»¹ÊǷǸßËÙÐ¡Çø£©¡£
697 */
698 WORD wHighSpeedFlag;
699 /*
700 ȡֵ·¶Î§£ºINTEGER (0..15)
701 µÈͬЭÒé²ÎÊý£º211.5.7.2 NCS configuration
702 ²ÎÊýÓÃ;£ºÐòÁÐÉú³ÉÖеÄÑ­»·ÒÆÎ»±í¸ñË÷Òý¡£²éѯµ±Ç°Ð¡ÇøÐòÁÐÉú³ÉËùÓõÄÑ­»·ÒÆÎ»Öµ£¬ÓÃÓÚÉú³ÉpreambleÐòÁС£
703 */
704 WORD wZeroCorrelZoneConfig;
705 /*
706 ȡֵ·¶Î§£ºINTEGER (0..94)
707 µÈͬЭÒé²ÎÊý£º211.5.7.1 prach-FrequencyOffset£¬
708 ²ÎÊýÓÃ;£ºprach resourceÔÚOFDM·ûºÅÉÏÆµÓòÉÏµÄÆ«ÒÆÖµ¡£ÓÃÓÚ¼ÆËãprach resourceµÚÒ»¸öÎïÀí×ÊÔ´¿éÆðʼλÖà £¬
709 */
710 WORD wPrachFreqOffset;
711
712 /*
713 ȡֵ·¶Î§£º4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64
714 µÈͬЭÒé²ÎÊý£º
715 ²ÎÊýÓÃ;£ºËæ»ú½ÓÈëǰµ¼¸öÊý
716 */
717 WORD wNumOfRAPreambles;
718 /*
719 ȡֵ·¶Î§£º4, 8, 12, 16 ,20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60
720 µÈͬЭÒé²ÎÊý£º
721 ²ÎÊýÓÃ;£ºËæ»ú½ÓÈëǰµ¼×éAµÄ¸öÊý
722 */
723 WORD wSizeOfRAPinGroupA;
724 /*
725 ȡֵ·¶Î§£º56¡¢144¡¢208¡¢256
726 µÈͬЭÒé²ÎÊý£º
727 ²ÎÊýÓÃ;£ºËæ»úǰµ¼×éAµÄÏûÏ¢³¤¶È
728 */
729 WORD wMsgSizeGroupA;
730
731
732 /*
733 ȡֵ·¶Î§£ºÈ¡ÖµÎª0µ½7£¬·Ö±ð¶ÔÓ¦minusinfinity, dB0, dB5, dB8, dB10, dB12, dB15, dB18£¬µ¥Î»ÊÇdB
734 µÈͬЭÒé²ÎÊý£º
735 ²ÎÊýÓÃ;£ºÓÃÓÚ½øÐÐǰµ¼Ñ¡Ôñ
736 */
737 WORD wPwrOffsetGroupB;
738 /*
739 ȡֵ·¶Î§£º {sf8, sf16, sf24, sf32, sf40, sf48, sf56, sf64}
740 µÈͬЭÒé²ÎÊý£º321.5.1.1 mac-ContentionResolutionTimer
741 ²ÎÊýÓÃ;£º¾ºÕùËæ»ú½ÓÈë¹ý³ÌÖмì²âmsg4ʱ¼ä´°¿Ú´óС¡£
742 ÓÃÓÚÔÚ·¢ËÍmsg3ºó¿ªÊ¼µÄmsg4¼ì²â£¬Ã¿´ÎÖØ·¢msg3£¬ÐèÒªÖØÐÂÆô¶¯´Ë¼ÆÊ±Æ÷¡£
743 */
744 WORD wConResoTimer;
745 WORD wPadding;
746} T_zPS_LTE_P_PhyRaConfig;
747
748typedef struct
749{
750 /*
751 ȡֵ·¶Î§£º 1~4
752 ²ÎÊýÓÃ;£ºÒ»¸öʱ϶ÄÚPRBËùÕ¼×Ó´ø¸öÊý£¬ÓÃÓÚ¼ÆËãPUSCHµÄʱƵ×ÊԴλÖá£
753 */
754 WORD wNsb;
755 /*
756 ȡֵ·¶Î§£º 0£¬1
757 µÈͬЭÒé²ÎÊý£ºÎÞ¡£
758 ²ÎÊýÓÃ;£ºÌøÆµÄ£Ê½£º0Ϊ×ÓÖ¡¼ä£¬1Ϊ×ÓÖ¡ÄÚºÍ×ÓÖ¡¼ä£¬ÓÃÓÚ¼ÆËãPUSCHµÄʱƵ×ÊԴλÖá£
759 */
760 WORD wHoppingMode;
761 /*
762 ȡֵ·¶Î§£º 0~98 £¨TS331-860/850¸Ã·¶Î§Îª0~98£©
763 µÈͬЭÒé²ÎÊý£º ¡£
764 ²ÎÊýÓÃ;£ºÌøÆµÆ«ÒÆ£¬ÒÔRBΪµ¥Î»£¬ÓÃÓÚ¼ÆËãPUSCHµÄʱƵ×ÊԴλÖá£
765 */
766 WORD wPuschHoppingOffset;
767 /*
768 ȡֵ·¶Î§£º 0£¬1
769 µÈͬЭÒé²ÎÊý£ºÎÞ¡£
770 ²ÎÊýÓÃ;£ºPUSCH 64QAMµ÷ÖÆÊ¹ÄܱêÖ¾£¬1ΪENABLE£¬0ΪDISABLE¡£
771 */
772 WORD wEnable64Qam;
773 /*
774 ȡֵ·¶Î§£º 0£¬1
775 µÈͬЭÒé²ÎÊý£ºÎÞ¡£
776 ²ÎÊýÓÃ;£º²Î¿¼ÐźŵÄÐòÁÐ×éÌø±ä£¨Sequence-group hopping£©Ê¹ÄܱêÖ¾£¬
777 1ΪENABLE£¬0ΪDISABLE£¬ÓÃÓÚ¼ÆËãPUSCHºÍPUCCH²Î¿¼ÐźÅÐòÁС£
778 */
779 WORD wGroupHoppingEnable;
780 /*
781 ȡֵ·¶Î§£º 0 ~ 29
782 µÈͬЭÒé²ÎÊý£º¦¤SS¡£
783 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãPUSCH²Î¿¼ÐźŵÄÐòÁÐÒÆÎ»Í¼Ñù £¬¼Ì¶øµÃµ½Ê±Ï¶ µÄ²Î¿¼ÐźŵĻùÐòÁÐ×éÐòºÅ ¡£
784 PUSCHµÄÐòÁÐÒÆÎ»Í¼ÑùÊÇÔÚPUCCHµÄÐòÁÐÒÆÎ»Í¼Ñù ÉÏ¼ÓÆ«ÒƦ¤SS£¬²Î¼ûЭÒé36.211-870£¬µÚ5.5.1.3½Ú¡£
785 */
786 WORD wGroupAssignPusch;
787 /*
788 ȡֵ·¶Î§£º 0£¬1
789 µÈͬЭÒé²ÎÊý£ºÎÞ¡£
790 ²ÎÊýÓÃ;£º²Î¿¼ÐźŵÄÐòÁÐÌø±ä£¨sequence hopping£©Ê¹ÄܱêÖ¾£¬
791 1ΪENABLE£¬0ΪDISABLE£¬ÓÃÓÚ¼ÆËãʱ϶ µÄ»ùÐòÁÐ×éÖеĻùÐòÁÐÐòºÅ ¡£²Î¼ûЭÒé36.211-870£¬µÚ5.5.1.4½Ú.
792 */
793 WORD wSeqHoppingEnable;
794 /*
795 ȡֵ·¶Î§£º0~7
796 µÈͬЭÒé²ÎÊý£ºÎÞ¡£
797 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËã²Î¿¼Ðźš£²Î¼ûЭÒé36.211-870£¬µÚ5.5.2.1.1½Ú¡£
798 */
799 WORD wCyclicShift;
800} T_zPS_LTE_P_PuschConfigComm;
801
802/*
803PUSCHÐŵÀרÓÃÅäÖòÎÊýÐÅÏ¢£¬ÓÃÓÚACK/RI/CQIµÄ±àÂëËÙÂÊÆ¥Åä¡£¿É²Î¼ûЭÒé36.212-870£¬µÚ5.5.2.6½Ú¡£
804*/
805typedef struct
806{
807 /*
808 ȡֵ·¶Î§£º 0~15
809 µÈͬЭÒé²ÎÊý£º
810 ²ÎÊýÓÃ;£º²Î¼ûЭÒé36.213-870£¬µÚ8.6.3½Ú¡£
811 */
812 WORD wBetaOffsetAckIndex;
813 /*
814 ȡֵ·¶Î§£º 0~15
815 µÈͬЭÒé²ÎÊý£º
816 ²ÎÊýÓÃ;£º²Î¼ûЭÒé36.213-870£¬µÚ8.6.3½Ú¡£
817 */
818 WORD wBetaOffsetRiIndex;
819 /*
820 ȡֵ·¶Î§£º 0~15
821 µÈͬЭÒé²ÎÊý£º
822 ²ÎÊýÓÃ;£º²Î¼ûЭÒé36.213-870£¬µÚ8.6.3½Ú¡£
823 */
824 WORD wBetaOffsetCqiIndex;
825 WORD wPadding;
826 WORD wBetaOffsetMcFlag;
827 WORD wBetaOffsetAckIndexMc;
828
829 WORD wBetaOffsetRiIndexMc;
830 WORD wBetaOffsetCqiIndexMc;
831
832 WORD wGroupHoppingDisabledFlag;
833 WORD wDmrsWithOccActivatedFlag;
834} T_zPS_LTE_P_PuschConfigDedi;
835
836/*
837PUCCHÐŵÀ¹«¹²ÅäÖòÎÊý£¬¿É½áºÏÏÂÐÐPDCCHʹÓõÄÎïÀí×ÊÔ´ÐÅÏ¢½øÐÐPUCCHÐŵÀ·ûºÅÊý¾ÝÉú³É¼°ÎïÀí×ÊÔ´Ó³É䣬
838¿É²Î¼û36.211-870£¬µÚ5.4½Ú¼°36.213-870£¬µÚ10.1½Ú¡£
839*/
840typedef struct
841{
842 /*
843 ȡֵ·¶Î§£º 1£¬2£¬3
844 µÈͬЭÒé²ÎÊý£º
845 ²ÎÊýÓÃ;£ºÓÃÓÚPUCCH¡¡format 1,1a,1bµÄ²ÎÊýcyclic shift ¼°·¢ËÍ×ÊÔ´ µÄ¼ÆË㣬Ïêϸ²Î¼û36.211ЭÒéµÄ5.4½Ú¡£
846 */
847 WORD wDeltPucchShift;
848 /*
849 ȡֵ·¶Î§£º0~98
850 µÈͬЭÒé²ÎÊý£º
851 ²ÎÊýÓÃ;£º±íʾPUCCH format 2,2a,2b¸ñʽÏ£¬Ð¡ÇøPUCCHÐŵÀÕ¼ÓõÄPRBÊýÄ¿£¬¶ÔÓÚUEÕâ¸ö²ÎÊýÓÃÓÚ¼ÆËãcyclic shift £¬
852 Ïêϸ²Î¼û36.211ЭÒéµÄ5.4.2½Ú¡£
853 */
854 WORD wNrbCqi;
855
856 WORD wNcsAn;
857 WORD wN1PucchAn;
858} T_zPS_LTE_P_PucchConfigComm;
859
860typedef struct
861{
862 WORD wN3PucchAnListNum;
863 WORD wTwoAntennaPortActivatedPucchFormat3Tpye;
864
865 WORD wN3PucchAnList[ZPS_LTE_P_MAX_N3PAN_NUM];
866
867 WORD wN3PucchAnListP1Num;
868 WORD wPadding1;
869
870 WORD wN3PucchAnListP1[ZPS_LTE_P_MAX_N3PAN_NUM];
871} T_zPS_LTE_P_PucchFormat3;
872
873typedef struct
874{
875 WORD wNum;
876 WORD wPadding;
877 WORD wList[ZPS_LTE_P_MAX_N1PAN_NUM];
878} T_zPS_LTE_P_N1PucchAnCs;
879
880typedef struct
881{
882 WORD wN1PucchAnCsTpye;
883 WORD wN1PucchAnCsListNum;
884 T_zPS_LTE_P_N1PucchAnCs tN1PucchAnCsList[ZPS_LTE_P_MAX_N1PANLIST_NUM];
885}T_zPS_LTE_P_PucchChnlSele;
886
887typedef struct
888{
889 WORD wAckNackRepetitionInd;
890 WORD wRepetitionFactor;
891 WORD wN1PucchAnRep;
892 WORD wTddAckNackFeedbackMode;
893 WORD wPucchFormatFlag;
894 WORD wPadding1;
895
896 T_zPS_LTE_P_PucchFormat3 tPucchFormat3;
897 T_zPS_LTE_P_PucchChnlSele tPucchChnlSele;
898
899 WORD wTwoAntennaPortActivatedFormat1a1bFlag;
900 WORD wN1PucchAnRepP1Flag;
901 WORD wN1PucchAnRepP1;
902 WORD wSimultaneousPucchPuschFlag;
903 WORD wN1PucchAnCsListP1Num;//0±íʾ¹Ø±Õ¹¦ÄÜtxDiv-PUCCH1b-ChSelect-r11
904 WORD wPadding2;
905 WORD awN1PucchAnCsListP1[ZPS_LTE_P_MAX_N1PUCCH_AN_CSLISTP1_NUM];//Ó¦¸Ã¼Ó¸öºê
906} T_zPS_LTE_P_PucchConfigDedi;
907
908typedef struct
909{
910 /*
911 ȡֵ·¶Î§£º0,1
912 µÈͬЭÒé²ÎÊý£º¿ØÖÆÓòÎÊý£¬Ð­ÒéÉÏûÓд˲ÎÊý¡£
913 ²ÎÊýÓÃ;£º1Ϊsetup£¬¾ÍÊÇÅäÖÃSRS×ÊÔ´£» 0Ϊrelease£¬¾ÍÊÇÒªÊͷŵ±Ç°µÄSRS×ÊÔ´£¨ºóÃæµÄ²ÎÊý¾ÍÊÇÎÞЧֵÁË£©£¬
914 ÊÍ·Å×ÊÔ´ºó£¬PHY²»ÐèÒª·´À¡¸øÐ­ÒéÕ»ÊÍ·ÅÍê³ÉµÄÏûÏ¢
915 */
916
917 WORD wCtrlFlag;
918 /*
919 ȡֵ·¶Î§£º0,1,2,3,4,5,6,7
920 µÈͬЭÒé²ÎÊý£ºCsrs
921 ²ÎÊýÓÃ;£º¸ù¾Ý²ÎÊýCsrs£¬ BsrsºÍÉÏÐдø¿íN(UL,RB) ²é±í¿ÉÈ·¶¨SRSƵÓòÆðʼλÖúʹø¿íµÄ¼ÆËã²ÎÊýmsrsºÍNb ¡£
922 Ïêϸ²Î¼û36.211ЭÒéµÄ5.5.3.2½Ú¡£
923 */
924 WORD wSrsBandWidthConfig;
925 /*
926 ȡֵ·¶Î§£º0~15
927 µÈͬЭÒé²ÎÊý£ºsrsSubframeConfiguration
928 ²ÎÊýÓÃ;£º´Ë²ÎÊýΪcell specific subframe configuration¡¡Ë÷Òý£¬¸ù¾Ý´ËË÷Òý²é36.211ЭÒéµÄ±í5.5.3.3-2£¬
929 ¿ÉµÃ²ÎÊýT_SFCºÍ ¦¤SFC£¬ ÓÃÓÚÈ·¶¨CELLÔÚÄÄЩ×ÓÖ¡½ÓÊÕUEµÄSRS¡£Ïêϸ²Î¼û36.211ЭÒéµÄ5.5.3.3½Ú¡£
930 */
931 WORD wSrsSubFrameConfig;
932 /*
933 ȡֵ·¶Î§1£ºÔÊÐíÔÚͬһ×ÓÖ¡´«ÊäACK/NACKºÍSRS£¬0£º²»ÔÊÐí
934 µÈͬЭÒé²ÎÊý£ºSimultaneous-AN-and-SRS
935 ²ÎÊýÓÃ;£ºÔÚÉÏÐз¢ËÍPUCCHÇé¿öÏ£¬ÓÃÓÚÈ·¶¨ACK/NACKºÍSRSÊÇ·ñ¿ÉÔÚͬһ×ÓÖ¡·¢ËÍ
936 */
937 WORD wAckNackSrsSimulTrans;
938 /*
939 ȡֵ·¶Î§£º0,1
940 µÈͬЭÒé²ÎÊý£ºsrsMaxUpPts
941 ²ÎÊýÓÃ;£º¶ÔÓÚUpPTS£¬µ±²ÎÊýΪ1ʱ£¬Ê¹ÄÜ µÄÖØÅ䣬µ±²ÎÊýΪ0ʱ£¬½ûÖ¹ ÖØÅä¡£
942 Ïêϸ²Î¼û36.211ЭÒéµÄ5.5.3.2¡£
943 */
944 WORD wSrsMaxUpPts;
945 WORD wPadding;
946} T_zPS_LTE_P_SrsUlConfigComm;
947
948/*
949SRSרÓÃÅäÖòÎÊýÐÅÏ¢£¬°üÀ¨UEÌØ¶¨µÄʱƵ²ÎÊý¼°ÓÃÓÚSRS·ûºÅÉú³ÉµÄ²ÎÊýµÈ¡£
950*/
951typedef struct
952{
953 /*
954 ȡֵ·¶Î§£º0,1
955 µÈͬЭÒé²ÎÊý£º¿ØÖÆÓòÎÊý£¬Ð­ÒéÉÏûÓд˲ÎÊý¡£
956 ²ÎÊýÓÃ;£º1Ϊsetup£¬¾ÍÊÇÅäÖÃSRS×ÊÔ´£» 0Ϊrelease£¬¾ÍÊÇÒªÊͷŵ±Ç°µÄSRS×ÊÔ´£¨ºóÃæµÄ²ÎÊý¾ÍÊÇÎÞЧֵÁË£©£¬
957 ÊÍ·Å×ÊÔ´ºó£¬PHY²»ÐèÒª·´À¡¸øÐ­ÒéÕ»ÊÍ·ÅÍê³ÉµÄÏûÏ¢
958 */
959 WORD wCtrlFlag;
960 /*
961 ȡֵ·¶Î§£º0,1,2,3
962 µÈͬЭÒé²ÎÊý£º
963 ²ÎÊýÓÃ;£º¸ù¾Ý²ÎÊýCsrs£¬B_SRS ºÍÉÏÐдø¿íN(UL,RB) ²é±í¿ÉÈ·¶¨SRSƵÓòÆðʼλÖúʹø¿íµÄ¼ÆËã²ÎÊým(SRS,b) ºÍNb ¡£
964 Ïêϸ²Î¼û36.211ЭÒéµÄ5.5.3.2½Ú¡£
965 */
966 WORD wSrsBandWidthConfig;
967 /*
968 ȡֵ·¶Î§£º 0,1,2,3
969 µÈͬЭÒé²ÎÊý£ºsrs-HoppingBandwidth¡¡
970 ²ÎÊýÓÃ;£ºB_SRS ºÍ b_hopÒ»ÆðÈ·¶¨SRSÊÇ·ñÐèÒªÌøÆµ¡£ÏêϸÃèÊö²Î¼û36.211ЭÒéµÄ5.5.3.2½Ú¡£
971 */
972 WORD wSrsHoppingBandWidth;
973 /*
974 ȡֵ·¶Î§£º0~23
975 µÈͬЭÒé²ÎÊý£ºfreqDomainPosition
976 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãSRSµÄƵÓòÆðʼλÖã¬ÏêϸÃèÊö²Î¼û36.211ЭÒéµÄ5.5.3.2½Ú¡£
977 */
978 WORD wFreqDomainPos;
979 /*
980 ȡֵ·¶Î§£º0 ,1
981 µÈͬЭÒé²ÎÊý£ºDuration
982 ²ÎÊýÓÃ;£ºÐ­ÒéÕ»Óô˲ÎÊýÅäÖÃUEµÄSRSÊǵ¥´Î·¢ËÍ£¬»¹ÊÇÖÜÆÚ·¢ËÍ£¬0-µ¥´Î·¢ËÍ£»1-ÖÜÆÚ·¢ËÍ¡£
983 */
984 WORD wDuration;
985 /*
986 ȡֵ·¶Î§£º0~1023
987 µÈͬЭÒé²ÎÊý£º Isrs
988 ²ÎÊýÓÃ;£ºÀûÓô˲ÎÊý£¬²é36.213ЭÒéµÄ±í8.2-1£¬¿ÉµÃ²ÎÊýTsrsºÍToffset£¬
989 ÔÙÀûÓÃTsrsºÍToffset¿É¼ÆËã³öUEÐèÒª·¢ËÍSRSµÄ×ÓÖ¡ºÅ¡£
990 */
991 WORD wSrsConfigIndex;
992 /*
993 ȡֵ·¶Î§£º0~1
994 µÈͬЭÒé²ÎÊý£ºtransmissionComb¡¡ Ktc
995 ²ÎÊýÓÃ;£º´Ë²ÎÊýÓÃÓÚ¼ÆËãSRSƵÓòÆðʼλÖã¬ÏêϸÃèÊö²Î¼û36.211ЭÒéµÄ5.5.3.2½Ú¡£
996 */
997 WORD wTransComb;
998 /*
999 ȡֵ·¶Î§£º0~7
1000 µÈͬЭÒé²ÎÊý£º n(cs,SRS)
1001 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãSRSµÄcyclic shift £¬ÏêϸÃèÊö¼û36.211ЭÒéµÄ5.5.3.1½Ú¡£
1002 */
1003 WORD wCyclicShift;
1004 WORD wSrsAntennaPort;
1005 WORD wPadding1;
1006} T_zPS_LTE_P_SrsUlConfigDedi;
1007
1008/*
1009ÉÏÐй¦ÂÊ¿ØÖÆÏà¹ØµÄ¹«¹²ÅäÖòÎÊý£¬º­¸ÇÁËËùÓÐÉÏÐÐÐŵÀ¼°SRS£¬Ö÷Òª°üÀ¨Ð¡ÇøÌض¨µÄ¿ª»·¹¦¿Ø³õÖµ£¬
1010PUCCHÖв»Í¬formatÏà¶Ôformat1aµÄdeltaÖµ¼°Â·Ëð²¹³¥ÏµÊýµÈ²ÎÊý¡£
1011*/
1012typedef struct
1013{
1014 /* ȡֵ·¶Î§£ºÕæÊµÖµ·¶Î§[-126,24] dBm
1015 PSÏ·¢µÄ²ÎÊýÖµÔÚÕæÊµÖµÉÏ+126£¬²ÎÊý·¶Î§£º[0£¬150]
1016 */
1017 WORD wP0NominalPusch;
1018 /*
1019 ȡֵ·¶Î§£ºÕæÊµÖµÎª£º{0, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1}
1020 PSÏ·¢µÄ²ÎÊýÖµ=ÕæÊµÖµ*10£¬ ²ÎÊý·¶Î§£º[0£¬4£¬5£¬6£¬7£¬8£¬9£¬10]
1021 */
1022 WORD wAlpha;
1023 /*
1024 ÕæÊµÖµÎª[-127£¬-96], PSÏ·¢µÄ²ÎÊýÖµÎªÕæÊµÖµÈ¡·´
1025 */
1026 WORD wP0NominalPucch;
1027 /*
1028 ȡֵ·¶Î§£º0£ºdeltaF-2; 1£ºdeltaF0; 2£ºdeltaF2; 0xFF£ºÎÞЧ
1029 deltaF-2 ´ú±í -2db£¬ deltaF0 ´ú±í0db£¬ ÒÔ´ËÀàÍÆ
1030 */
1031 WORD wDeltaFPucchFormat1;
1032 /*
1033 ȡֵ·¶Î§£º0£ºdeltaF1; 1£ºdeltaF3; 2£ºdeltaF5; 0xFF£ºÎÞЧ
1034 */
1035 WORD wDeltaFPucchFormat1b;
1036 /*
1037 ȡֵ·¶Î§£º0£ºdeltaF-2; 1£ºdeltaF0; 2£ºdeltaF1; 3£ºdeltaF2
1038 */
1039 WORD wDeltaFPucchFormat2;
1040 /*
1041 ȡֵ·¶Î§£º0£ºdeltaF-2; 1£ºdeltaF0; 2£ºdeltaF2; 0xFF£ºÎÞЧ
1042 */
1043 WORD wDeltaFPucchFormat2a;
1044 /*
1045 ȡֵ·¶Î§£º0£ºdeltaF-2; 1£ºdeltaF0; 2£ºdeltaF2; 0xFF£ºÎÞЧ
1046 */
1047 WORD wDeltaFPucchFormat2b;
1048 /*
1049 ȡֵ·¶Î§£º[-1~6] PSÏ·¢µÄ²ÎÊýÖµ=ÕæÊµÖµ+1£¬²ÎÊý·¶Î§£º[0~7]
1050 */
1051 WORD wDeltaPreamMsg3;
1052 WORD wDeltaFPucchFormat31bCSFg;
1053 WORD wDeltaFPucchFormat3;
1054 WORD wDeltaFPucchFormat1bCS;
1055} T_zPS_LTE_P_UlPowerCtrlComm;
1056
1057/*
1058ÉÏÐй¦ÂÊ¿ØÖÆÏà¹ØµÄרÓÃÅäÖòÎÊý£¬º­¸ÇÁËËùÓÐÉÏÐÐÐŵÀ¼°SRS£¬Ö÷Òª°üÀ¨UEÌØ¶¨µÄ¿ª»·¹¦¿Ø³õÖµ£¬
1059ÊÇ·ñ½øÐÐMCSÏà¹ØµÄ¹¦Âʵ÷ÖÆ£¬ÊÇ·ñ²ÉÓÃÀÛ¼ÓµÄTPC commandµ÷ÕûµÈÐÅÏ¢¡£
1060*/
1061typedef struct
1062{
1063 /*
1064 ȡֵ·¶Î§£º[-126,24]
1065 PSÏ·¢µÄ²ÎÊýÖµÔÚÕæÊµÖµÉÏ+126£¬²ÎÊý·¶Î§£º[0£¬150]
1066 */
1067 WORD wP0UePusch;
1068 /*
1069 ȡֵ·¶Î§£º
1070 0 corresponds to value 0 corresponding to state "disabled".
1071 1 corresponds to value 1.25 corresponding to "enabled".
1072 */
1073 WORD wDeltaMcsEnabled;
1074 /*
1075 ȡֵ·¶Î§£º1£ºEnable; 0:Disable
1076 */
1077 WORD wAccumulationEnabled;
1078 /*
1079 ȡֵ·¶Î§£º[-8£¬7]
1080 PSÏ·¢µÄ²ÎÊýÖµÔÚÕæÊµÖµÉÏ+8£¬²ÎÊý·¶Î§£º[0£¬15]
1081 */
1082 WORD wP0UePucch;
1083 /*
1084 ȡֵ·¶Î§£º0~15
1085 For Ks=1.25, the actual parameter value is pSRS-Offset value - 3.
1086 For Ks=0, the actual parameter value is -10.5 + 1.5*pSRS-Offset value. See TS 36.213 [23, 5.1.3.1].
1087 */
1088 WORD wPsrsOffset;
1089 /*
1090 ȡֵ·¶Î§£ºfc0, fc1, fc2, fc3, fc4, fc5, fc6, fc7, fc8, fc9, fc11, fc13, fc15, fc17, fc19¡£È¡Öµ0xFFʱΪÎÞЧֵ
1091 See TS 36.331 [5.5.3.2] fc0 ´ú±í k =0£¬fc1 ´ú±í k =1
1092 µÈͬЭÒé²ÎÊý£ºÎÞ
1093 ²ÎÊýÓÃ;£ºÓÃ×÷RSRP²âÁ¿Ê±µÄÂ˲¨Æ÷ϵÊý£¬ÓÃ×÷¼ÆËãPL
1094 */
1095 WORD wFilterCoefficient;
1096 WORD wDeltaTxDOffsetListPucchCtrlFlag;
1097 WORD wDeltaTxDOffsetListPucchFormat1;
1098
1099 WORD wDeltaTxDOffsetListPucchFormat1a1b;
1100 WORD wDeltaTxDOffsetListPucchFormat22a2b;
1101 WORD wDeltaTxDOffsetListPucchFormat3;
1102 WORD wPsrsOffsetApCtrlFlag;
1103
1104 WORD wPsrsOffsetAp;
1105 WORD wPadding1;
1106} T_zPS_LTE_P_UlPowerCtrlDedi;
1107
1108/*
1109ÏÂÐÐSPSÅäÖÃÐÅÏ¢£¬¸ù¾Ý´ËÅäÖýøÐÐÏÂÐÐSPSµ÷¶È¡£
1110²Î¼û36.321.850µÄ5.10.1½Ú¡¢36.331.850µÄ6.3.2½ÚµÄSPS-Config¡£
1111*/
1112typedef struct
1113{
1114 /*
1115 ȡֵ·¶Î§£º0£¬1
1116 µÈͬЭÒé²ÎÊý£ºÎÞ
1117 ²ÎÊýÓÃ;£ºSPS½¨Á¢»òÕßÊͷŵÄÃüÁîָʾ
1118 */
1119 WORD wCtrlFlag;
1120 /*
1121 ȡֵ·¶Î§£º[1£¬8]
1122 µÈͬЭÒé²ÎÊý£ºnumberOfConfSPS-Processes
1123 ²ÎÊýÓÃ;£ºSPS½ø³ÌÊýÁ¿
1124 */
1125 WORD wSpsProcessNum;
1126 /*
1127 ȡֵ·¶Î§£ºsf10, sf20, sf32, sf40, sf64, sf80, sf128, sf160, sf320, sf640£¬È¡ÖµÎª0xFFFFʱΪÎÞЧ
1128 µÈͬЭÒé²ÎÊý£ºsemiPersistSchedIntervalDL
1129 ²ÎÊýÓÃ;£ºÏÂÐÐSPSµ÷¶È¼ä¸ô
1130 */
1131 WORD wSpsIntervalDl;
1132 /*
1133 ȡֵ·¶Î§£º[1£¬4]
1134 µÈͬЭÒé²ÎÊý£ºn1-PUCCH-AN-PersistentList
1135 ²ÎÊýÓÃ;£ºÏÂÐÐSPSµÄHARQ·´À¡×ÊÔ´ÁбíÖеÄ×ÊÔ´ÊýÁ¿£¬Óɸ߲ãÅäÖ㬹²ÓÐ4¸ö·´À¡×ÊÔ´¡£
1136 ¾ßÌåʹÓÃÄĸöÓÉSPS DCIÖеÄTPCÓòָʾ¡£²Î¼û36.213.860µÄ9.2½Ú¡£
1137 */
1138 WORD wN1PAPNum;
1139 /*
1140 ȡֵ·¶Î§£º[0~2047]
1141 µÈͬЭÒé²ÎÊý£ºn1-PUCCH-AN-PersistentList
1142 ²ÎÊýÓÃ;£ºÏÂÐÐSPSµÄHARQ·´À¡×ÊÔ´ÁÐ±í£¬Óɸ߲ãÅäÖᣲμû36.213.860µÄ9.2½Ú¡£
1143 */
1144 WORD awN1PucchAnPersistentList[ZPS_LTE_P_MAX_N1PAN_NUM];
1145 WORD wTwoAntennaPortActivatedCtrlFlag;
1146 WORD wN1PAPNumP1;
1147 WORD awN1PucchAnPersistentP1List[ZPS_LTE_P_MAX_N1PAN_NUM];
1148} T_zPS_LTE_P_SpsConfigDl;
1149
1150/*
1151ÉÏÐÐSPSÅäÖÃÐÅÏ¢£¬¸ù¾Ý´ËÅäÖýøÐÐÉÏÐÐSPSµ÷¶È¡£
1152²Î¼û36.321.850µÄ5.10.2½Ú¡¢36.331.850µÄ6.3.2½ÚµÄSPS-Config¡£
1153*/
1154typedef struct
1155{
1156 /*
1157 wCtrlFlag: 1Ϊsetup, 0Ϊrelease
1158 ȡֵ·¶Î§£º0£¬1
1159 µÈͬЭÒé²ÎÊý£ºÎÞ
1160 ²ÎÊýÓÃ;£ºSPS½¨Á¢»òÕßÊͷŵÄÃüÁîָʾ
1161 */
1162 WORD wCtrlFlag;
1163 /*
1164 ȡֵ·¶Î§£º2£¬3£¬4£¬8
1165 µÈͬЭÒé²ÎÊý£ºsemiPersistSchedIntervalUL
1166 ²ÎÊýÓÃ;£ºUEÔÚÖ¸¶¨´ÎÊýµÄ¿Õ´«Êý¾ÝºóÒþʽÊÍ·ÅSPSÅäÖÃ
1167 */
1168 WORD wImplicitReleaseAfter;
1169 /*
1170 ȡֵ·¶Î§£ºsf10, sf20, sf32, sf40, sf64, sf80, sf128, sf160, sf320, sf640£¬È¡ÖµÎª0xFFFFʱΪÎÞЧ
1171 µÈͬЭÒé²ÎÊý£ºsemiPersistSchedIntervalUL
1172 ²ÎÊýÓÃ;£ºÉÏÐÐSPSµ÷¶È¼ä¸ô
1173 */
1174 WORD wSpsIntervalUl;
1175 /*
1176 ȡֵ·¶Î§£ºÕæÊµÖµ·¶Î§£º[-126£¬24]£¬×¢£ºPSÏ·¢µÄ²ÎÊýÖµÎªÕæÊµÖµ+126¡£²ÎÊýȡֵ·¶Î§[0£¬150]
1177 µÈͬЭÒé²ÎÊý£ºp0-NominalPUSCH-Persistent£¨36.331£©£¬P0,NOMINAL_PUSCH (0)£¨36.213£©
1178 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãPUSCH·¢Ë͹¦ÂÊ£¬²Î¼û36.213µÄ5.1.1.1½Ú¡£
1179 */
1180 WORD wP0NominalPuschPersistent;
1181 /*
1182 ȡֵ·¶Î§£ºÕæÊµÖµ·¶Î§£º[-8£¬7]dB£¬×¢£ºPSÏ·¢µÄ²ÎÊýÖµÎªÕæÊµÖµ+8¡£²ÎÊýȡֵ·¶Î§[0£¬15]
1183 µÈͬЭÒé²ÎÊý£ºp0-UE-PUSCH-Persistent£¨36¡£331£©£¬P0,UE; PUSCH (0) £¨36.213£©
1184 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãPUSCH·¢Ë͹¦ÂÊ£¬²Î¼û36.213µÄ5.1.1.1½Ú¡£
1185 */
1186 WORD wP0UePuschPersistent;
1187 /*
1188 ȡֵ·¶Î§£º0£¬1
1189 µÈͬЭÒé²ÎÊý£ºtwoIntervalsConfig
1190 ²ÎÊýÓÃ;£ºÁ½ÖÖÉÏÐÐSPSµ÷¶È¼ä¸ô£¬ÒÔ±ÜÃâÉÏÐÐSPSÐÂÊý¾Ý·¢ËͺÍͬ²½HARQÖØ´«µÄ³åÍ»¡£
1191 */
1192 WORD wTwoIntervalsConfig;
1193} T_zPS_LTE_P_SpsConfigUl;
1194
1195/*
1196DRXÅäÖÃÐÅÏ¢£¬¸ù¾Ý´ËÅäÖýøÐÐÁ¬½Ó̬DRXµ÷¶È´¦Àí£¬¼´Åж¨Active timeºÍNon-active timeµÄ½øÈëʱ»ú¡£
1197²Î¼û36.321.850µÄ5.7½Ú¡¢36.331.850µÄ6.3.2½ÚµÄDRX-Config¡£
1198*/
1199typedef struct
1200{
1201 /*
1202 ȡֵ·¶Î§£º0£¬1
1203 µÈͬЭÒé²ÎÊý£ºÎÞ
1204 ²ÎÊýÓÃ;£ºÆô¶¯»òÍ£Ö¹Á¬½Ó̬DRXµ÷¶È´¦Àí
1205 */
1206 WORD wCtrlFlag;
1207 /*
1208 ´¦ÓÚOn durationµÄʱ³¤£¬ÓÉPDCCH×ÓÖ¡µÄ¸öÊýÀ´ºâÁ¿¡£
1209 ȡֵ·¶Î§£ºpsf1, psf2, psf3, psf4, psf5, psf6,psf8, psf10, psf20, psf30, psf40,psf50,
1210 psf60, psf80, psf100, psf200
1211 µÈͬЭÒé²ÎÊý£ºonDurationTimer
1212 ²ÎÊýÓÃ;£º´¦ÓÚOn durationµÄʱ³¤£¬ÔÚ´ËÆÚ¼äPHYÐèÒª¼à²âPDCCH¡£Ò²±íʾÿ´ÎDRX»½ÐѺóµÄ×îСactiveʱ¼ä¡£
1213 */
1214 WORD wOnDurationTimer;
1215 /*
1216 psf0, psf1, psf2, psf3, psf4, psf5, psf6, psf8, psf10, psf20, psf30, psf40, psf50, psf60,
1217 psf80, psf100, psf200, psf300, psf500, psf750, psf1280, psf1920, psf2560¡£ÓÉPDCCH×ÓÖ¡µÄ¸öÊýÀ´ºâÁ¿¡£
1218 µÈͬЭÒé²ÎÊý£ºdrx-InactivityTimer
1219 ²ÎÊýÓÃ;£º¶¨ÒåÁËÊÕµ½Ò»´ÎPDCCHµ÷¶ÈÉÏ¡¢ÏÂÐÐд«Êäºó£¬ÐèÒª¼ÌÐø¼à²âPDCCHµÄʱ¼ä¡£
1220 */
1221 WORD wDrxInactivityTimer;
1222 /*
1223 ȡֵ·¶Î§£ºpsf1, psf2, psf4, psf6, psf8, psf16, psf24, psf33¡£ÓÉPDCCH×ÓÖ¡µÄ¸öÊýÀ´ºâÁ¿¡£
1224 µÈͬЭÒé²ÎÊý£ºdrx-RetransmissionTimer
1225 ²ÎÊýÓÃ;£º¶¨ÒåÁËÕë¶ÔÏÂÐÐHARQÖØ´«£¬ÐèÒª¼à²âPDCCH£¨ÏÂÐÐÖØ´«µ÷¶È£©µÄʱ¼ä¡£
1226 */
1227 WORD wDrxRetransTimer;
1228 /*
1229 ȡֵ·¶Î§£º1~16¡£ÎªwShortDrxCycleµÄ±¶Êý¡£
1230 µÈͬЭÒé²ÎÊý£ºdrxShortCycleTimer
1231 ²ÎÊýÓÃ;£º¶¨ÒåÁ˶ÌDRXÖÜÆÚ¶¨Ê±Æ÷£¬ÔÚwDrxInactivityTimer³¬Ê±ºÍÊÕµ½DRXÃüÁDRX Command MAC control element£©Ê±£¬Æô¶¯´Ë¶¨Ê±Æ÷¡£
1232 wDrxShortCycleTimer¶¨Ê±Æ÷³¬Ê±£¬½øÈ볤DRXÖÜÆÚ´¦Àí¡£
1233 */
1234 WORD wDrxShortCycleTimer;
1235 /*
1236 ȡֵ·¶Î§£º£¨µ¥Î»Îª×ÓÖ¡Êý£©£º10¡¢20¡¢32¡¢40¡¢64¡¢80¡¢128¡¢160¡¢256¡¢320¡¢512¡¢640¡¢1024¡¢1280¡¢2048¡¢2560
1237 µÈͬЭÒé²ÎÊý£ºlongDRX-CycleStartOffset
1238 ²ÎÊýÓÃ;£º¶¨ÒåÁ˳¤DRXÖÜÆÚÖµ£¬ÔÚÓ¦Óó¤DRXÖÜÆÚʱ£¬¸ù¾Ý³¤DRXÖÜÆÚºÍÆ«ÒÆÀ´È·¶¨Æô¶¯bOnDurationTimer¶¨Ê±Æ÷µÄʱ»ú¡£
1239 */
1240 WORD wLongDrxCycle;
1241 /*
1242 ȡֵ·¶Î§£º0~2559 ×ÓÖ¡
1243 µÈͬЭÒé²ÎÊý£ºlongDRX-CycleStartOffset
1244 ²ÎÊýÓÃ;£º¶¨ÒåÁ˳¤DRXÖÜÆÚºÍ¶ÌDRXÖÜÆÚµÄactive time½øÈëµÄʱ¼äÆ«ÒÆÖµ£¬¸ù¾ÝÖÜÆÚºÍÆ«ÒÆÀ´È·¶¨Æô¶¯bOnDurationTimer¶¨Ê±Æ÷µÄʱ»ú¡£
1245 Õâ¸ö²ÎÊý²¢·ÇÖ»ÓÐ long drx»áÓõ½£¬short drxÒ²»áÓõ½
1246 */
1247 WORD wLongDrxCycleStartOffset;
1248 /*
1249 ȡֵ·¶Î§£ºsf2, sf5, sf8, sf10, sf16, sf20, sf32, sf40, sf64, sf80, sf128, sf160, sf256, sf320, sf512, sf640 ×ÓÖ¡¡£
1250 ûÓÐÅäÖöÌDRXÖÜÆÚʱ£¬È¡ÖµÎª0xFFFF¡£
1251 µÈͬЭÒé²ÎÊý£ºshortDRX-Cycle
1252 ²ÎÊýÓÃ;£º¶¨ÒåÁ˶ÌDRXÖÜÆÚÖµ£¬ÔÚÆô¶¯Á˶ÌDRXÖÜÆÚ¶¨Ê±Æ÷bDrxShortCycleTimerÆÚ¼ä£¬
1253 ¸ù¾Ý¶ÌDRXÖÜÆÚºÍÆ«ÒÆ£¨Í¬³¤DRXÆ«ÒÆ£©À´È·¶¨Æô¶¯bOnDurationTimer¶¨Ê±Æ÷µÄʱ»ú¡£
1254 */
1255 WORD wShortDrxCycle;
1256} T_zPS_LTE_P_DrxConfig;
1257
1258/*
1259PDCCH¹¦¿ØÅäÖÃÐÅÏ¢,PHYÊÕµ½PSÅäÖõÄPDCCHÐŵÀÉϵÄTPC¿ØÖÆÐÅÏ¢ºó£¬
1260¶ÔºóÐøµÄPUCCH»òPUSCHµÄ´«Ê书ÂʽøÐÐÏàÓ¦Ôö¼Ó»ò¼õСµÄµ÷Õû¡£
1261*/
1262typedef struct
1263{
1264 /*
1265 ȡֵ·¶Î§£º1Ϊsetup, 0Ϊrelease
1266 µÈͬЭÒé²ÎÊý£ºÎÞ
1267 ²ÎÊýÓÃ;£ºÖ¸Ê¾Æô¶¯»òÊÍ·Å»ùÓÚTPCµÄ¹¦¿Ø
1268 */
1269 WORD wCtrlFlag;
1270 /*
1271 ȡֵ·¶Î§£º1ΪDCI format3, 0ΪDCI format3A
1272 µÈͬЭÒé²ÎÊý£ºÎÞ
1273 ²ÎÊýÓÃ;£ºÖ¸Ê¾ÎïÀí²ã£¬Ê¹ÓÃformat3£¬»¹ÊÇformate3a
1274 */
1275 WORD wFormat3Or3A;
1276 /*
1277 ȡֵ·¶Î§£º00001 - FFF3
1278 µÈͬЭÒé²ÎÊý£ºÎÞ
1279 ²ÎÊýÓÃ;£ºRNTI for power control using DCI format 3/3A, see TS 36.212 [22].
1280 */
1281 WORD wTpcRnti;
1282 /*
1283 ȡֵ·¶Î§£º
1284 DCI format 3: 1~15
1285 DCI format 3A: 1~31
1286 µÈͬЭÒé²ÎÊý£ºÎÞ
1287 ²ÎÊýÓÃ;£ºÖ¸Ê¾ÔÚformat3 »ò 3aÖУ¬Ê¹ÓõÄbitλÖã¬×÷ΪTPCÃüÁ
1288
1289 */
1290 WORD wTpcIndex;
1291} T_zPS_LTE_P_TpcPdcchConfig;
1292
1293/*
1294ÌìÏßרÓÃÅäÖÃÐÅÏ¢
1295*/
1296typedef struct
1297{
1298 /*
1299 ȡֵ·¶Î§£º1~7 ·Ö±ð¶ÔÓ¦7ÖÖģʽ£¬È¡Öµ0xFFʱÎÞЧ
1300 µÈͬЭÒé²ÎÊý£ºÎÞ
1301 ²ÎÊýÓÃ;£ºÖ¸Ê¾ÏÂÐд«Êäģʽ
1302 */
1303 WORD wTransMode;
1304 WORD wCBRestricBitLen;
1305 WORD wUlTransModeR10 ;
1306 WORD wUlFourAntennaPortActivateR10 ;
1307 /*
1308 awCBRestricBit: CodebookSubsetRestricµÄbit£¬×î´ó109bit
1309 ȡֵ·¶Î§£º
1310 µÈͬЭÒé²ÎÊý£ºÎÞ
1311 ²ÎÊýÓÃ;£ºÓÃÀ´ÏÞÖÆÔÚ½øÐÐPMI,RI¼ÆËãʱ£¬ÐèÒª³¢ÊÔµÄcodebook
1312 */
1313 WORD awCBRestricBit[8];
1314 /*
1315 ȡֵ·¶Î§£º1Ϊsetup, 0Ϊrelease ×¢£ºsetupʱ£¬bUeTransAntSelect²ÎÊýÓÐЧ
1316 µÈͬЭÒé²ÎÊý£ºÎÞ
1317 ²ÎÊýÓÃ;£ºÖ¸Ê¾ÊÇ·ñ½øÐÐUE·¢ÉäÌìÏßÑ¡Ôñ
1318 */
1319 WORD wUeTransAntCtrlFlag;
1320 /*
1321 ȡֵ·¶Î§£º0ΪCLOSELOOP£¬1ΪOPENLOOP
1322 µÈͬЭÒé²ÎÊý£ºÎÞ
1323 ²ÎÊýÓÃ;£ºÈç¹û½øÐÐUE·¢ÉäÌìÏßÑ¡Ôñ£¬ ָʾʹÓÿª»·£¬»¹ÊDZջ·µÄ·½Ê½
1324 */
1325 WORD wUeTransAntSelect;
1326} T_zPS_LTE_P_AntenInfoDedi;
1327
1328/*
1329UE SRµ÷¶ÈÇëÇóµÄÅäÖòÎÊýÐÅÏ¢
1330*/
1331typedef struct
1332{
1333 /*
1334 ȡֵ·¶Î§£º 0£¬1
1335 µÈͬЭÒé²ÎÊý£ºÎÞ
1336 ²ÎÊýÓÃ;£º1Ϊsetup, 0Ϊrelease£¬Æô¶¯ºÍ¹Ø±ÕSR¹ý³Ì
1337 */
1338 WORD wCtrlFlag;
1339 /*
1340 ȡֵ·¶Î§£º0~155
1341 µÈͬЭÒé²ÎÊý£ºIsr . See TS 36.213 [23,10.1].
1342 ²ÎÊýÓÃ;£ºÓÃÓÚ²é±í¼ÆËãSRµÄ·¢ËÍÖÜÆÚ£ûms£ýºÍÖÜÆÚÄÚµÄsubframe offset¡£
1343 ¼ÆËã·½·¨²Î¼û£ºTS 36.213 [23,10.1].
1344 */
1345 WORD wSrConfigIndex;
1346 /*
1347 ȡֵ·¶Î§£º 0~2047
1348 µÈͬЭÒé²ÎÊý£º ¡² TS 36.213 [23, 10.1]¡³
1349 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËã³ÐÔØSRµÄPUCCHµÄʱƵ×ÊԴλÖã¬×¢£ºÖ»ÓÐ postive SRÓÃÕâ¸ö²ÎÊý¼ÆËã×ÊԴλÖã¬
1350 negtive SR Ö±½Ó²ÉÓà £û±¾ÎĵµµÄ½Ó¿ÚÃüÃûΪwN1PucchAn:£ý
1351 */
1352 WORD wSrPucchResourceIndex;
1353 /*
1354 ȡֵ·¶Î§£º4, 8, 16, 32, 64£¬0xFFΪÎÞЧֵ
1355 µÈͬЭÒé²ÎÊý£ºdsr-TransMax in TS 36.321 [6, 5.4.4].
1356 ²ÎÊýÓÃ;£º±íÕ÷SRµÄ×î´óÖØ´«´ÎÊý£¬Èç¹ûSRµÄ·¢ËÍ´ÎÊý´ïµ½Õâ¸öÊýÖµ£¬ÔòÐèÒª×Ô¶¯Í£Ö¹SRµÄ·¢ËÍ¡£
1357 */
1358 WORD wDsrTransMax;
1359 WORD wSrPucchResourceIndexP1Flag;
1360 WORD wSrPucchResourceIndexP1;
1361} T_zPS_LTE_P_SrConfig;
1362
1363typedef struct
1364{
1365 WORD wRadioFrameAllocPeriod;
1366 WORD wRadioFrameAllocOffst;
1367 WORD wSubframeAllocType;
1368 WORD wPadding0;
1369 WORD awFrameBitStr[2];
1370} T_zPS_LTE_P_MbsfnSubframeConfig;
1371
1372typedef struct
1373{
1374 WORD wMbsfnSubframeConfigNum;
1375 WORD wPadding;
1376 T_zPS_LTE_P_MbsfnSubframeConfig tMbsfnSubframeConfig[ZPS_LTE_P_MAX_MBSFN_SUBFRAME_CFG_NUM];
1377}T_zPS_LTE_P_MbsfnSubframeConfigList;
1378
1379typedef struct
1380{
1381 WORD wMeasSubframePatternType;
1382 WORD wPadding;
1383 T_zPS_LTE_P_MeasSubframePattern tMeasSubframePatternPcell;
1384} T_zPS_LTE_P_MeasSubframePatternPcell;
1385
1386typedef struct
1387{
1388 WORD wCsiRsFlag;
1389 WORD wAntennaPortsCount;
1390 WORD wResourceConfig;
1391 WORD wSubframeConfig;
1392
1393 WORD wPc;
1394 WORD wZeroTxPowerCsiRsFlag;
1395
1396 WORD wZeroTxPowerResourceConfigList;
1397 WORD wZeroTxPowerSubframeConfig;
1398} T_zPS_LTE_P_CsiRsConfig;
1399
1400typedef struct
1401{
1402 WORD wSrsAntennaPortAp;
1403 WORD wSrsBandWidthConfigAp;
1404 WORD wFreqDomainPosAp;
1405 WORD wTransCombAp;
1406
1407 WORD wCyclicShiftAp;
1408 WORD wPadding;
1409} T_zPS_LTE_P_SrsConfigAp;
1410
1411typedef struct
1412{
1413 WORD wCtrlFlag;
1414 WORD wSrsConfigIndexAp;
1415 WORD wSrsConfigApDciFormat4Num;
1416 WORD wPadding0;
1417
1418 T_zPS_LTE_P_SrsConfigAp tSrsConfigAp[ZPS_LTE_P_MAX_SRS_CFG_NUM];
1419
1420 WORD wSrsActivateApCtrlFlag;
1421 WORD awPadding1;
1422
1423 T_zPS_LTE_P_SrsConfigAp tSrsConfigApDciFormat0;
1424 T_zPS_LTE_P_SrsConfigAp tSrsConfigApDciFormat1a2b2c;
1425} T_zPS_LTE_P_SrsUlConfigDediAp;
1426
1427typedef struct
1428{
1429 WORD wP0NominalPusch;
1430 WORD wAlpha;
1431} T_zPS_LTE_P_UplinkPwrCntlCommonSCell;
1432
1433typedef struct
1434{
1435 WORD wCrossSchedulingCellInfoInd;
1436 WORD wCifPresence;
1437 WORD wOtherCellSchedulingCellIdId;
1438 WORD wOtherCellSchedulingPdschStart;
1439} T_zPS_LTE_P_CrossSchedulingConfig;
1440
1441typedef struct
1442{
1443 WORD wP0UePusch;
1444 WORD wDeltaMcsEnabled;
1445 WORD wAccumulationEnabled;
1446 WORD wPsrsOffset;
1447
1448 WORD wPsrsOffsetAp;
1449 WORD wFilterCoefficient;
1450 WORD wPathlossReferenceLinking;
1451 WORD wPadding;
1452} T_zPS_LTE_P_UlPowerCtrlDediSCell;
1453
1454typedef struct
1455{
1456 WORD wCqiPucchResourceIndex;
1457 WORD wCqiPucchResourceIndexP1;
1458
1459 WORD wCqiPmiConfigIndex;
1460 WORD wCqiFormatIndrPeriodicType;
1461
1462 WORD wWideBandCsiRptMode;
1463 WORD wSubbandCqiK;
1464
1465 WORD wSubbandCqiPeriodicityFactor;
1466 WORD wRiConfigIndex;
1467
1468 WORD wSimulAckNackAndCQI;
1469 WORD wCqiMask;
1470 WORD wCsiConfigIndexFlag;
1471 WORD wCqiPmiConfigIndex2;
1472 WORD wRiConfigIndex2;
1473 WORD wPadding;
1474} T_zPS_LTE_P_CqiReportPeriodicConfig;
1475
1476typedef struct
1477{
1478 WORD wCqiReportModeAperiodic;
1479 WORD wNomPdschRsEpreOffset;
1480 WORD wPmiRiRpt;
1481 WORD wCqiReportPeriodicFlag;
1482
1483 T_zPS_LTE_P_CqiReportPeriodicConfig tCqiReportPeriodic;
1484} T_zPS_LTE_P_CqiReportConfigSCell;
1485
1486typedef struct
1487{
1488 WORD wDlBandWidth;
1489 WORD wAntennaPortsCount ;
1490
1491 T_zPS_LTE_P_MbsfnSubframeConfigList tMbsfnSubframeConfigList;
1492
1493 WORD wPhichDuration;
1494 WORD wPhichResource;
1495 WORD wDlReferSignalPower;
1496 WORD wPb;
1497
1498 WORD wTddConfigCtrlFlag;
1499 WORD wSubFrameAssign;
1500 WORD wSpecialSubFramePatterns;
1501 WORD wUlConfigCtrlFlag;
1502
1503 DWORD dwUlEarfcn;
1504 WORD wUlBandWidth;
1505 WORD wAdditionalSpectrumEmission;
1506 WORD wPeMax;
1507 WORD wPadding1;
1508
1509 T_zPS_LTE_P_UplinkPwrCntlCommonSCell tUplinkPwrCntlCommonSCell;
1510 T_zPS_LTE_P_SrsUlConfigComm tSrsUlConfigComm;
1511
1512 WORD wUlCpLen;
1513 WORD wPrachConfigIndex;
1514
1515 T_zPS_LTE_P_PuschConfigComm tPuschConfigComm;
1516} T_zPS_LTE_P_SCellConfigComm;
1517
1518typedef struct
1519{
1520 WORD wAntenInfoDediFlag;
1521 WORD wCrossSchedulingConfigFlag;
1522 WORD wCsiRsConfigFlag;
1523 WORD wUlPowerCtrlDediSCellFlag;
1524
1525 WORD wCqiReportConfigSCellFlag;
1526 WORD wPadding0;
1527
1528 T_zPS_LTE_P_AntenInfoDedi tAntenInfoDedi;
1529 T_zPS_LTE_P_CrossSchedulingConfig tCrossSchedulingConfig;
1530 T_zPS_LTE_P_CsiRsConfig tCsiRsConfig;
1531
1532 WORD wPa;
1533 WORD wGroupHoppingDisabledFlag;
1534 WORD wDmrsWithOccActivatedFlag;
1535 WORD wPadding1;
1536
1537 T_zPS_LTE_P_UlPowerCtrlDediSCell tUlPowerCtrlDediSCell;
1538 T_zPS_LTE_P_CqiReportConfigSCell tCqiReportConfigSCell;
1539 T_zPS_LTE_P_SrsUlConfigDedi tSrsUlConfigDedi ;
1540 T_zPS_LTE_P_SrsUlConfigDediAp tSrsUlConfigDediAp;
1541} T_zPS_LTE_P_SCellConfigDedi;
1542
1543typedef struct
1544{
1545 WORD wSCellIndex;
1546 WORD wSCellIdFlag;
1547 WORD wSCellPci;
1548 WORD wPadding;
1549 DWORD dwDlEarfcn;
1550 WORD wSCellCommonCfgFlag;
1551 WORD wSCellDedicateCfgFlag;
1552
1553 T_zPS_LTE_P_SCellConfigComm tSCellCommonCfg;
1554 T_zPS_LTE_P_SCellConfigDedi tSCellDedicateCfg;
1555} T_zPS_LTE_P_SCellAddModConfig;
1556
1557typedef struct
1558{
1559 WORD wSCellToReleaseNum;
1560 WORD wSCellToAddModNum;
1561 WORD wSCellToReleaseList[ZPS_LTE_P_MAX_SCELL_NUM];
1562 T_zPS_LTE_P_SCellAddModConfig tSCellToAddModList[ZPS_LTE_P_MAX_SCELL_NUM];
1563} T_zPS_LTE_P_SCellConfig;
1564
1565typedef struct
1566{
1567 WORD wCqiReportAPeriodicFlag;
1568 WORD wCqiReportModeAperiodic;
1569 WORD wAPeriodicCsiTriggerFlag;
1570 WORD wAPeriodicCsiTrigger;
1571
1572 WORD wNomPdschRsEpreOffset;
1573 WORD wCqiReportPeriodicFlag;
1574
1575 T_zPS_LTE_P_CqiReportPeriodicConfig tCqiReportPeriodic;
1576
1577 WORD wPmiRiRpt;
1578 WORD wCsiSubframePatternConfigFlag;
1579
1580 T_zPS_LTE_P_MeasSubframePattern atCsiMeasSubframeSet[ZPS_LTE_P_MAX_CSI_MEAS_SF_PATTERN_NUM];
1581 WORD wSimultaneousAckNackAndCqiFormat3Flg;
1582 WORD wPadding;
1583} T_zPS_LTE_P_CqiReportConfig;
1584
1585
1586
1587typedef struct{
1588 DWORD dwM_TMSI;
1589 WORD wMmec;
1590 WORD wPadding;
1591}T_zPS_LTE_P_S_TMSI;
1592
1593typedef struct{
1594 WORD wNum;
1595 WORD awList[21];
1596}T_zPS_LTE_P_IMSI;
1597
1598typedef struct
1599{
1600 WORD wImsiExistFlg;/*ָʾIMSIÊÇ·ñ´æÔÚ£¬È¡Öµ1:IMSI´æÔÚ£»0:IMSI²»´æÔÚ*/
1601 WORD wSTmsiExistFlg;/*ָʾS-TMSIÊÇ·ñ´æÔÚ£¬È¡Öµ1:S-TMSI´æÔÚ£»0:S-TMSI²»´æÔÚ*/
1602
1603 T_zPS_LTE_P_IMSI tImsi;
1604 T_zPS_LTE_P_S_TMSI tSTmsi;
1605} T_zPS_LTE_P_UeId;
1606
1607/**************************************************************************
1608 * RRCÅäÖÃEPHY IDLE̬ÎÞÏß×ÊÔ´²ÎÊý£¬Ö÷Òª°üº¬Í¨ÓÃÅäÖÃÐÅÏ¢ *
1609 **************************************************************************/
1610typedef struct
1611{
1612 WORD wMsgId;
1613 /*
1614 ȡֵ·¶Î§£º1~32
1615 µÈͬЭÒé²ÎÊý£ºAdditionalSpectrumEmission
1616 ²ÎÊýÓÃ;£ºrelated to IE AdditionalSpectrumEmission are defined in TS 36.101 [42, table 6.2.4-1]¡£
1617 ΪÁ˼õÉÙLTE UEÉÏÐÐ¶ÔÆäËûϵͳµÄ¹¦ÂʸÉÈÅ£¬UE¿ÉÒÔÔÚ×î´ó·¢Ë͹¦ÂʵĻù´¡ÉÏ£¬°Ñ×î´ó·¢Ë͹¦ÂʼõСndb£¬
1618 n¸ù¾ÝAdditionalSpectrumEmission²é±íµÃµ½¡£
1619 */
1620 WORD wAdditionalSpectrumEmission;
1621 /*
1622 ȡֵ·¶Î§£º[-30..33) , PSÏ·¢µÄ²ÎÊýÖµÔÚÕæÊµÖµÉÏ+30£¬²ÎÊýȡֵ·¶Î§£º0~63
1623 µÈͬЭÒé²ÎÊý£ºPEMAX
1624 ²ÎÊýÓÃ;£ºÐ­ÒéÕ»ÅäÖõÄUE×î´ó·¢É书ÂÊ
1625 */
1626 WORD wPeMax;
1627 /*
1628 ȡֵ·¶Î§£º0~6
1629 µÈͬЭÒé²ÎÊý£ºÎÞ
1630 ²ÎÊýÓÃ;£ºTDDµÄUL/DL×ÓÖ¡ÅäÖÃÀàÐÍ
1631 */
1632 WORD wSubFrameAssign;
1633
1634
1635 /*
1636 ȡֵ·¶Î§£º0~8
1637 µÈͬЭÒé²ÎÊý£ºÎÞ
1638 ²ÎÊýÓÃ;£ºTDDµÄÌØÊâ×ÓÖ¡µÄpattern
1639 */
1640 WORD wSpecialSubFramePatterns;
1641 /*
1642 ȡֵ·¶Î§£º0ΪLEN1£¨normal cyclic prefix£©£¬1ΪLEN2£¨extended cyclic prefix£©
1643 µÈͬЭÒé²ÎÊý£ºÎÞ
1644 ²ÎÊýÓÃ;£ºÉÏÐÐÑ­»·Ç°×º³¤¶È
1645 */
1646 WORD wUlCpLen;
1647 /*
1648 ȡֵ·¶Î§£º32£¬64£¬128£¬256£¨ms£©
1649 µÈͬЭÒé²ÎÊý£ºÎÞ
1650 ²ÎÊýÓÃ;£ºÄ¬ÈϵÄѰºôÖÜÆÚ
1651 */
1652 WORD wDefaultPageCycle;
1653 /*
1654 ȡֵ·¶Î§£º0~1023
1655 µÈͬЭÒé²ÎÊý£ºÎÞ
1656 ²ÎÊýÓÃ;£ºUE_ID£¬Ñ°ºô¼ÆËãµÈÐèҪʹÓã¬ÓÃÓÚÇø·Ö²»Í¬UE
1657 */
1658 WORD wUeId;
1659 /*
1660 ȡֵ·¶Î§£ºÕæÊµÖµÎª{fourT, twoT, oneT, halfT, quarterT, oneEightT,onSixteenthT, oneThirtySecondT},
1661 T´ú±íѰºôÖÜÆÚ£¬PSÏ·¢µÄ²ÎÊýÖµ·¶Î§Îª0~7£¬·Ö±ð¶ÔÓ¦ÒÔÉÏ8ÖÖȡֵ¡£
1662 µÈͬЭÒé²ÎÊý£ºÎÞ
1663 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãѰºôʱ»úµÄ²ÎÊý
1664 */
1665 WORD wNb;
1666 /*
1667 ȡֵ·¶Î§£º[-60£¬50]dbm , PSÏ·¢µÄ²ÎÊýÖµÔÚÕæÊµÖµÉÏ+60£¬²ÎÊýȡֵ·¶Î§£º0~110
1668 µÈͬЭÒé²ÎÊý£ºÎÞ
1669 ²ÎÊýÓÃ;£ºÏÂÐвο¼ÐźŹ¦ÂÊ
1670 */
1671 WORD wDlReferSignalPower ;
1672 /*
1673 ȡֵ·¶Î§£º0~3
1674 µÈͬЭÒé²ÎÊý£ºPb
1675 ²ÎÊýÓÃ;£ºPDSCHÐ¡ÇøÏà¹Ø²ÎÊý£¬ÓÃÓÚÏÂÐй¦ÂʼÆË㣬TS 36.213 [23, Table 5.2-1]
1676 */
1677 WORD wPb;
1678 /*
1679 ȡֵ·¶Î§£º1, 2, 3, 4, 6, 8, 10, 20
1680 µÈͬЭÒé²ÎÊý£ºÎÞ
1681 ²ÎÊýÓÃ;£ºEPHY¼ì²âµ½N310´Îʧ²½ºó£¬Éϱ¨ZPS_LTE_P_OUT_OF_SYNC_IND_EvÏûÏ¢¸øEURRC
1682 */
1683 WORD wN310;
1684 /*
1685 ȡֵ·¶Î§£º1, 2, 3, 4, 5, 6, 8, 10
1686 µÈͬЭÒé²ÎÊý£ºÎÞ
1687 ²ÎÊýÓÃ;£ºEPHY¼ì²âµ½N311´Îͬ²½ºó£¬Éϱ¨ZPS_LTE_P_RECOVERY_SYNC_IND_EvÏûÏ¢¸øEURRC
1688 */
1689 WORD wN311;
1690 /*
1691 ȡֵ·¶Î§£º1£¬Ö¸Ê¾EPHYפÁô£»0£¬Ö¸Ê¾EPHY²»½øÐÐפÁô
1692 µÈͬЭÒé²ÎÊý£ºÎÞ
1693 ²ÎÊýÓÃ;£º×¤Áôָʾ£¬Ö¸Ê¾UEÊÇ·ñפÁôµ½¸ÃÏûÏ¢Ö¸¶¨µÄÐ¡Çø¡£
1694 1 ±íʾÒÔ±¾ÏûÏ¢ÖеÄcell Ϊ·þÎñÐ¡Çø£¬±¾ÏûÏ¢»á´¥·¢PHYµÄפÁôÐ¡ÇøºÍ×´Ì¬Ç¨ÒÆ£»
1695 0£¬ÔòÈÏΪ¸ÃÏûÏ¢Ö»ÊÇÓÃÓÚ²ÎÊýµÄ¸üУ¬·þÎñÐ¡Çø²»ÐèÒª¸Ä±ä¡£
1696 */
1697 WORD wCampInd;
1698
1699#ifdef BTRUNK_SUPPORT
1700 WORD wSupportBtrunking;
1701 WORD wTpchCycle;
1702 WORD wFrameNum;
1703 WORD wSubFrameNum;
1704#endif
1705
1706
1707 T_zPS_LTE_P_PhyCellInfo tPhyCellInfo;
1708 T_zPS_LTE_P_PhyRaConfig tPhyRaConfig;
1709 T_zPS_LTE_P_PuschConfigComm tPuschConfigComm;
1710 T_zPS_LTE_P_PucchConfigComm tPucchConfigComm ;
1711 T_zPS_LTE_P_SrsUlConfigComm tSrsUlConfigComm;
1712 T_zPS_LTE_P_UlPowerCtrlComm tUlPowerCtrlComm;
1713 T_zPS_LTE_P_MbsfnSubframeConfigList tMbsfnSubframeConfigList;
1714
1715 T_zPS_LTE_P_UeId tUeId;
1716 DWORD dwCellId; //sib1ÖÐÐ¡Çøid
1717 DWORD dwPLMN; /* µ±Ç°Ð¡ÇøµÄÖ÷PLMN,PS°´ÕÕMCC1 MCC2 MCC3 MNC1 MNC2 MNC3 Æ´½Ó³É¾ßÌåµÄ5λ»ò6λ(MNC3¿ÉÄÜûÓÐ)Ê®½øÖÆÊý×Ö
1718 ¾ÙÀý:PLMNΪ46000£¬ÔòdwPLMNÖµ¾ÍµÈÓÚËÄÍòÁù;PLMNΪ460001£¬ÔòdwPLMNÖµ¾ÍµÈÓÚËÄÊ®ÁùÍòÁãÒ»*/
1719
1720} T_zPS_LTE_P_CommonConfig_Req;
1721
1722/**************************************************************************
1723 * RRCÅäÖÃEPHY CONNECT̬ÎÞÏß×ÊÔ´²ÎÊý£¬Ö÷Òª°üº¬Í¨ÓÃÒÔ¼°×¨ÓÃÅäÖÃÐÅÏ¢£¬ *
1724 * ÎïÀí²ã½ÓÊÕµ½¸ÃÏûÏ¢ÒԺ󣬿ÉÒÔ¿ªÊ¼½øÐÐÉÏÏÂÐÐÊý¾ÝÐŵÀµÄ½ÓÊÕ *
1725 **************************************************************************/
1726typedef struct
1727{
1728 WORD wMsgId;
1729 /*
1730 1£ºÖØÅäÖã¬0£ºÅäÖÃ
1731 */
1732 WORD wReConfigFlag; //ÐÂÔö²ÎÊý
1733 /*
1734 ȡֵ·¶Î§£º 1£ºTTI°ó¶¨£» 0£º·ÇTTI°ó¶¨
1735 µÈͬЭÒé²ÎÊý£ºÎÞ
1736 ²ÎÊýÓÃ;£ºÉÏÐд«ÊäTTI°ó¶¨Ö¸Ê¾
1737 */
1738 WORD wTtiBundlingInd;
1739 /*
1740 ȡֵ·¶Î§£ºn1, n2, n3, n4, n5, n6, n7, n8, n10, n12, n16, n20, n24, n28
1741 ȡֵ0xFFʱΪÎÞЧ£¬ n´ú±í·¢ËÍ´ÎÊý£»
1742 µÈͬЭÒé²ÎÊý£ºmaxHARQ-Tx
1743 ²ÎÊýÓÃ;£ºHARQ½ø³Ì×î´ó·¢ËÍ´ÎÊý
1744 */
1745 WORD wMaxHarqTx;
1746 /*
1747 ȡֵ·¶Î§£º{ -6, -4.77, -3, -1.77, 0, 1, 2, 3} dB
1748 PSÏ·¢µÄ²ÎÊýµÄȡֵΪ{0£¬1£¬2£¬3£¬4£¬5£¬6£¬7}£¬·Ö±ð¶ÔÓ¦ÉÏÊöÕæÊµÖµ
1749 µÈͬЭÒé²ÎÊý£º
1750 ²ÎÊýÓÃ;£ºÏÂÐй¦ÂÊ¿ØÖÆÊ¹ÓòÎÊý£¬TS 36.213 [5.2]
1751 */
1752 WORD wPa;
1753
1754 /*
1755 ȡֵ·¶Î§£º0~7
1756 ²ÎÊýÓÃ;£ºSR·¢ËÍ×èÖ¹¶¨Ê±Æ÷,±ÜÃâÒ»¶Îʱ¼äÄÚÆµ·±·¢ËÍSR
1757 */
1758 WORD wSrProhibitTimer;
1759 /*
1760 ȡֵ·¶Î§£º1~FFF3
1761 µÈͬЭÒé²ÎÊý£ºÎÞ
1762 ²ÎÊýÓÃ;£ºSPS C RNTI ȡֵ
1763 */
1764 WORD wSpsCRnti;
1765 WORD wPadding;
1766
1767 T_zPS_LTE_P_SpsConfigDl tSpsConfigDl ;
1768 T_zPS_LTE_P_SpsConfigUl tSpsConfigUl ;
1769 T_zPS_LTE_P_DrxConfig tDrxConfig;
1770 T_zPS_LTE_P_PuschConfigDedi tPuschConfigDedi;
1771 T_zPS_LTE_P_PucchConfigDedi tPucchConfigDedi;
1772 T_zPS_LTE_P_SrsUlConfigDedi tSrsUlConfigDedi;
1773 T_zPS_LTE_P_UlPowerCtrlDedi tUlPowerCtrlDedi;
1774 T_zPS_LTE_P_TpcPdcchConfig tTpcPdcchConfigPucch;
1775 T_zPS_LTE_P_TpcPdcchConfig tTpcPdcchConfigPusch;
1776 T_zPS_LTE_P_CqiReportConfig tCqiReporting;
1777 T_zPS_LTE_P_AntenInfoDedi tAntenInfoDedi;
1778 T_zPS_LTE_P_SrConfig tSrConfig;
1779 T_zPS_LTE_P_TimerConfig tTimerConfig;
1780 WORD wCifPresence;
1781 WORD wAdditionalSpectrumEmissionCaType;
1782 WORD wAdditionalSpectrumEmissionPCell;
1783 WORD wScellDeactivationTimer;
1784
1785 T_zPS_LTE_P_MeasSubframePatternPcell tMeasSubframePatternPcell;
1786 T_zPS_LTE_P_CsiRsConfig tCsiRsConfig;
1787 T_zPS_LTE_P_SrsUlConfigDediAp tSrsUlConfigDediAp;
1788 T_zPS_LTE_P_SCellConfig tSCellConfig;
1789} T_zPS_LTE_P_DedicatedConfig_Req;
1790
1791/**************************************************************************
1792RRCÅäÖÃEPHY CONNECT̬ÎÞÏß×ÊÔ´²ÎÊý£¬Ö÷Òª°üº¬Í¨ÓÃÒÔ¼°×¨ÓÃÅäÖÃÐÅÏ¢
1793Ö÷ÒªÓÃÓÚÇл»³¡¾°.ÒªÇóEPHYͬ²½Ä¿±êÐ¡Çø£¬Í¬²½³É¹¦»òʧ°Üºó£¬·µ»ØÇл»È·ÈÏÏûÏ¢*
1794**************************************************************************/
1795typedef struct
1796{
1797 WORD wMsgId;
1798 /*
1799 ȡֵ·¶Î§£º 1£ºTTI°ó¶¨£» 0£º·ÇTTI°ó¶¨
1800 µÈͬЭÒé²ÎÊý£ºttiBundling£¬²Î¼ûTS 36.331 6.3.2 MAC-MainConfig field descriptions
1801 ²ÎÊýÓÃ;£ºÏÂÐÐTTI°ó¶¨Ö¸Ê¾£¬±íÕ÷ÏÂÐÐÊý¾ÝµÄACK/NACK·´À¡ÊÇ·ñ²ÉÓÃTTI bunding ģʽ£¬
1802 ½ö½öÊÊÓÃÓÚÏÂÐÐ×ÓÖ¡ÊýÄ¿´óÓÚÉÏÐÐ×ÓÖ¡ÊýÄ¿µÄ²»¶Ô³ÆÅäÖã¨2£¬3£¬4£¬5£©¡£²Î¼ûTS 36.213-10.1
1803 */
1804 WORD wTtiBundingInd;
1805 /*
1806 ȡֵ·¶Î§£º0x0001 ¡« 0xFFF3£¬²Î¼ûTS 36.321-7.1
1807 µÈͬЭÒé²ÎÊý£ºC-RNTI
1808 ²ÎÊýÓÃ;£ºCell RNTI£¬ÓÃÓÚÏÂÐÐÁ´Â·µÄ¼ÓÈųõʼÐòÁÐÑ¡Ôñ£¬
1809 ³ÐÔØÆÕͨÏÂÐÐÊý¾ÝµÄPDSCHÐŵÀ¶ÔÓ¦µÄPDCCH ÐŵÀDCIÊý¾ÝCRCµÄ¼ÓÑÚ´¦Àí£¬
1810 */
1811 WORD wCRnti;
1812 /*
1813 ȡֵ·¶Î§£º0x0001 ¡« 0xFFF3£¬²Î¼ûTS 36.321-7.1
1814 µÈͬЭÒé²ÎÊý£ºSemi-Persistent-Schedule RNTI
1815 */
1816 WORD wSpsCRnti;
1817 /*
1818 ȡֵ·¶Î§£º1¡«32
1819 µÈͬЭÒé²ÎÊý£ºAdditionalSpectrumEmission£¬²Î¼ûTS 36.331 6.3.4
1820 ²ÎÊýÓÃ;£ºÆµÆ×·¢Ë͹¦ÂÊÏÞÖÆ£¬ÓÃÓÚÏÞÖÆUEµÄ×î´ó·¢Ë͹¦ÂÊÒÔ¼°¶ÔƵ´øÍâµÄ¹¦ÂʸÉÈÅ£¿£¿
1821 ²Î¼ûTS 36.101 [42, table 6.2.4-1]
1822 */
1823 WORD wAdditionalSpectrumEmission;
1824 /*
1825 ȡֵ·¶Î§£ºn1, n2, n3, n4, n5, n6, n7, n8, n10, n12, n16, n20, n24, n28£¬È¡Öµ0xFFʱΪÎÞЧ
1826 µÈͬЭÒé²ÎÊý£ºmaxHARQ-Tx£¬²Î¼ûTS 36.331 6.3.2 MAC-MainConfig field descriptions
1827 ²ÎÊýÓÃ;£ºÖ¸¶¨±¾´ÎRRCÁ¬½ÓÉÏÐÐHARQµÄ×î´ó·¢ËÍ´ÎÊý¡£
1828 */
1829 WORD wMaxHarqTx;
1830 /*
1831 ȡֵ·¶Î§£º[-60£¬50]dbm , PSÏ·¢µÄ²ÎÊýÖµÔÚÕæÊµÖµÉÏ+60 ¶ÔÓ¦0¡«110
1832 µÈͬЭÒé²ÎÊý£ºreferenceSignalPower£¬²Î¼û TS 36.331 6.3.2 PDSCH-Config
1833 ²ÎÊýÓÃ;£ºÏÂÐвÎÊýÐźŵŦÂÊ´óС£¬ÓÃÓÚ·ËðµÄ¹À¼ÆºÍ·¢Ë͹¦ÂʵļÆËã¡£
1834 */
1835 WORD wDlReferSignalPower;
1836 /*
1837 ȡֵ·¶Î§£º{0£¬1£¬2£¬3£¬4£¬5£¬6£¬7} ¶ÔÓ¦ÕæÊµÖµÎª{ -6, -4.77, -3, -1.77, 0, 1, 2, 3} dB
1838 µÈͬЭÒé²ÎÊý£ºPa ,²Î¼û TS 36.331 6.3.2 PDSCH-Config
1839 ²ÎÊýÓÃ;£ºPDSCHרÓÃÅäÖòÎÊý Pa, UEÌØ¶¨²ÎÊý£¬ see TS 36.213 [23, 5.2].
1840 Value dB-6 corresponds to -6 dB, dB-4dot77 corresponds to -4.77 dB etc
1841 */
1842 WORD wPa;
1843 /*
1844 ȡֵ·¶Î§£º0~3
1845 µÈͬЭÒé²ÎÊý£ºPb £¬²Î¼û TS 36.331 6.3.2 PDSCH-Config
1846 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãÏÂÐй¦ÂÊ·ÖÅä£¬Ð¡ÇøÌØ¶¨²ÎÊý£¬ see TS 36.213 [23, Table 5.2-1].
1847 */
1848 WORD wPb;
1849 /*
1850 ȡֵ·¶Î§£º0~6
1851 µÈͬЭÒé²ÎÊý£ºÎÞ£¬²Î¼û TS36.211-4.2£¬ Table 4.2-2
1852 ²ÎÊýÓÃ;£ºTDDµÄUL/DL×ÓÖ¡ÅäÖÃÀàÐÍ
1853 */
1854 WORD wSubFrameAssign;
1855 /*
1856 ȡֵ·¶Î§£º0¡«8
1857 µÈͬЭÒé²ÎÊý£ºÎÞ£¬²Î¼û TS36.211-4.2£¬ Table 4.2-1
1858 ²ÎÊýÓÃ;£ºTDD ÌØÊâ×ÓÖ¡µÄÅäÖÃÀàÐÍ
1859 */
1860 WORD wSpecialSubFramePatterns;
1861 /*
1862 ȡֵ·¶Î§£ºPSÏ·¢µÄ²ÎÊýÖµÔÚÕæÊµÖµÉÏ+30£¬²ÎÊýȡֵ·¶Î§£º0~63£¬
1863 µÈͬЭÒé²ÎÊý£ºP-Max£¬see TS 36.331 6.3.2
1864 ²ÎÊýÓÃ;£ºÐ¡ÇøÔÊÐíµÄUE×î´ó·¢É书ÂÊ[-30~33£©dbm]
1865 */
1866 WORD wPeMax;
1867 /*
1868 ȡֵ·¶Î§£º0ΪLEN1£¬1ΪLEN2
1869 µÈͬЭÒé²ÎÊý£ºUL-CyclicPrefixLength£¬²Î¼ûTS36.331 6.3.2 RadioResourceConfigCommon
1870 ²ÎÊýÓÃ;£ºÉÏÐÐÑ­»·Ç°×º³¤¶È
1871 */
1872 WORD wUlCpLen;
1873 /*
1874 ȡֵ·¶Î§£º0ΪÕý³££¬1ΪÀ©Õ¹
1875 µÈͬЭÒé²ÎÊý£ºPHICH-Duration£¬²Î¼û TS 36.331 - 6.3.2 PHICH-Config
1876 ²ÎÊýÓÃ;£ºPHICH·Ö²¼·ûºÅµÄ¸öÊý£¬ÓÃÓÚ¼ÆËãPHICHÐŵÀµÄ×ÊÔ´Ó³Éä, see TS 36.211 [21, Table 6.9.3-1].
1877 Õâ¸ö²ÎÊý³ÐÔØÔÚMIBÖУ¬Ò»°ãÇé¿öÏÂÓÉPHY×Ô¼º¶ÁÈ¡£» Çл»Ê±ÍøÂç²àÖ÷¶¯Ï·¢£»
1878 */
1879 WORD wPhichDuration;
1880 /*
1881 ȡֵ·¶Î§£º²ÎÊýȡֵΪ0£¬1£¬2£¬3·Ö±ð¶ÔÓ¦ÕæÊµÖµ{1/6£¬1/2£¬1£¬2}
1882 µÈͬЭÒé²ÎÊý£ºphich-Resource£¬²Î¼û TS 36.331 - 6.3.2 PHICH-Config
1883 ²ÎÊýÓÃ;£º Ng,ÓÃÓÚ¼ÆËãPHICH ×é¸öÊý£¬ see TS 36.211 [21, 6.9].
1884 Value oneSixth corresponds to 1/6, half corresponds to 1/2 and so on.
1885 Õâ¸ö²ÎÊý³ÐÔØÔÚMIBÖУ¬Ò»°ãÇé¿öÏÂÓÉPHY×Ô¼º¶ÁÈ¡£» Çл»Ê±ÍøÂç²àÖ÷¶¯Ï·¢
1886 */
1887 WORD wPhichResource;
1888 /*
1889 ȡֵ·¶Î§£º1£¬2£¬4£¬È¡ÖµÎª0xFFÊÇΪÎÞЧֵ
1890 µÈͬЭÒé²ÎÊý£ºantennaPortsCount£¬²Î¼ûTS 36.331-6.3.2 AntennaInfo
1891 ²ÎÊýÓÃ;£ºÌìÏß¹«¹²ÅäÖÃÐÅÏ¢£¬Ö¸¶¨Ð¡ÇøµÄÌìÏß¶Ë¿ÚÊý
1892 */
1893 WORD wAntennaPortsCount;
1894
1895 /*
1896 ȡֵ·¶Î§£º0~7
1897 ²ÎÊýÓÃ;£ºSR·¢ËÍ×èÖ¹¶¨Ê±Æ÷,±ÜÃâÒ»¶Îʱ¼äÄÚÆµ·±·¢ËÍSR
1898 */
1899 WORD wSrProhibitTimer;
1900 /*
1901 ȡֵ·¶Î§£ºÕæÊµÖµÎª{fourT, twoT, oneT, halfT, quarterT, oneEightT,onSixteenthT, oneThirtySecondT},
1902 T´ú±íѰºôÖÜÆÚ£¬PSÏ·¢µÄ²ÎÊýÖµ·¶Î§Îª0~7£¬·Ö±ð¶ÔÓ¦ÒÔÉÏ8ÖÖȡֵ¡£Èç¹ûSIB2Ϊ¿Õ£¬È¡0-fourT
1903 µÈͬЭÒé²ÎÊý£ºÎÞ
1904 ²ÎÊýÓÃ;£ºÓÃÓÚ¼ÆËãѰºôʱ»úµÄ²ÎÊý
1905 */
1906 WORD wNb;
1907 /*
1908 ȡֵ·¶Î§£º32£¬64£¬128£¬256£¨ms£©;Èç¹ûSIB2Ϊ¿Õ£¬È¡×î´óÖµ256
1909 µÈͬЭÒé²ÎÊý£ºÎÞ
1910 ²ÎÊýÓÃ;£ºÄ¬ÈϵÄѰºôÖÜÆÚ
1911 */
1912 WORD wDefaultPageCycle;
1913 /*
1914 ȡֵ·¶Î§£º0~1023
1915 µÈͬЭÒé²ÎÊý£ºÎÞ
1916 ²ÎÊýÓÃ;£ºUE_ID£¬Ñ°ºô¼ÆËãµÈÐèҪʹÓã¬ÓÃÓÚÇø·Ö²»Í¬UE
1917 */
1918 WORD wUeId;
1919
1920 T_zPS_LTE_P_PhyCellInfo tPhyCellInfo;
1921 T_zPS_LTE_P_SpsConfigDl tSpsConfigDl ;
1922 T_zPS_LTE_P_SpsConfigUl tSpsConfigUl ;
1923 T_zPS_LTE_P_DrxConfig tDrxConfig;
1924 T_zPS_LTE_P_PhyRaConfig tPhyRaConfig;
1925 T_zPS_LTE_P_PuschConfigComm tPuschConfigComm;
1926 T_zPS_LTE_P_PucchConfigComm tPucchConfigComm ;
1927 T_zPS_LTE_P_SrsUlConfigComm tSrsUlConfigComm;
1928 T_zPS_LTE_P_UlPowerCtrlComm tUlPowerCtrlComm;
1929 T_zPS_LTE_P_PuschConfigDedi tPuschConfigDedi;
1930 T_zPS_LTE_P_PucchConfigDedi tPucchConfigDedi;
1931 T_zPS_LTE_P_SrsUlConfigDedi tSrsUlConfigDedi;
1932 T_zPS_LTE_P_UlPowerCtrlDedi tUlPowerCtrlDedi;
1933 T_zPS_LTE_P_TpcPdcchConfig tTpcPdcchConfigPucch;
1934 T_zPS_LTE_P_TpcPdcchConfig tTpcPdcchConfigPusch;
1935 T_zPS_LTE_P_CqiReportConfig tCqiReporting;
1936 T_zPS_LTE_P_AntenInfoDedi tAntenInfoDedi;
1937 T_zPS_LTE_P_SrConfig tSrConfig;
1938 T_zPS_LTE_P_TimerConfig tTimerConfig;
1939 T_zPS_LTE_P_MbsfnSubframeConfigList tMbsfnSubframeConfigList;//Èç¹ûSIB2Ϊ¿Õ£¬ÁÐ±í³¤¶ÈÈ¡0£¬ºöÂÔÁбíÄÚÈÝ
1940 WORD wCifPresence;
1941 WORD wAdditionalSpectrumEmissionCaType;
1942 WORD wAdditionalSpectrumEmissionPCell;
1943 WORD wScellDeactivationTimer;
1944 T_zPS_LTE_P_MeasSubframePatternPcell tMeasSubframePatternPcell;
1945 T_zPS_LTE_P_CsiRsConfig tCsiRsConfig;
1946 T_zPS_LTE_P_SrsUlConfigDediAp tSrsUlConfigDediAp;
1947 T_zPS_LTE_P_SCellConfig tSCellConfig ;
1948 WORD wT304; //T304ʱ³¤£¬µ¥Î»ms
1949 WORD wPadding;
1950
1951} T_zPS_LTE_P_Handover_Req;
1952
1953/*
1954EPHYÉϱ¨ECERÇл»½á¹ûָʾ
1955*/
1956typedef struct
1957{
1958 /*
1959 ȡֵ·¶Î§£º1:Çл»³É¹¦ 0£ºÇл»Ê§°Ü
1960 µÈͬЭÒé²ÎÊý£ºÎÞ
1961 ²ÎÊýÓÃ;£º±¨¸æÐ­ÒéÕ»PHYÊÇ·ñ¿ÉÒÔÓëÄ¿±êÐ¡Çø»ñȡͬ²½£¬
1962 Ò»°ãÇé¿öÏ£¬PHYÒѾ­»ñÈ¡ÁËÄ¿±êÐ¡ÇøµÄÖ¡±ß½ç£¬Ö±½Ó±¨¸æ³É¹¦¼´¿É¡£
1963 */
1964 WORD wResult;
1965 WORD wPadding;
1966} T_zPS_LTE_P_Handover_Cnf,T_zPS_LTE_P_ListeningHo_Cnf;
1967
1968/*
1969RRCÁ¬½Ó״̬£¬PHYÒ»Ö±¼à²âÎÞÏßÁ´Â·µÄÐźÅÖÊÁ¿£¬µ±Âú×ãʧ²½Ìõ¼þʱ£¬Éϱ¨Ð­ÒéÕ»Á´Â·Ê§²½¡£
1970ÐèÒª½øÒ»²½Ã÷ȷһϣº
1971upon receiving N310 consecutive "out-of-sync" indications from lower layers
1972while neither T300, T301, T304 nor T311 is running:
19732> start timer T310;
1974N310´Îʧ²½ÓÉPHY¸ºÔð¼ÆÊý£»
1975T300, T301, T304 nor T311 is running:˵Ã÷´¦ÓÚRRCÁ¬½Ó½¨Á¢¡¢Öؽ¨¿ªÊ¼Ð¡ÇøËÑË÷¡¢Öؽ¨¡¢Çл»¹ý³ÌÖС£
1976ÎïÀí²ãÐèҪȷ¶¨ÕâЩ״̬¡£ÕâЩ״̬ʱ£¬ÎïÀí²ã²»ÐèҪͳ¼ÆºÍÉϱ¨Ê§²½¡£
1977½¨ÒéÎïÀí²ãÔÚ´ÓÕâЩÔÝ̬½øÈëCOMM̬Õâ¸öÎȶ¨Ì¬ºó£¬¶Ôʧ²½¼ÆÊýÇåÁãһϡ£
1978
1979typedef struct
1980{
1981} T_zPS_LTE_P_OutOfSyc_Ind;
1982*/
1983
1984/*
1985RRCÁ¬½Ó״̬£¬PHY½øÈëʧ²½×´Ì¬ºó£¬ÈÔÈ»ÐèÒªÒ»Ö±¼à²âÎÞÏßÁ´Â·µÄÐźÅÖÊÁ¿£¬
1986µ±Âú×ã»Ö¸´Í¬²½Ìõ¼þʱ£¬Éϱ¨Ð­ÒéÕ»Á´Â·»Ö¸´Í¬²½¡££¨À뿪Á¬½Ó̬ºó£¬Ê§²½×´Ì¬ÒªÇå³ý£©
1987
1988typedef struct
1989{
1990} T_zPS_LTE_P_RecoverySync_Ind;
1991*/
1992
1993/*
1994ÔÚRRC½¨Á¢¹ý³ÌÖУ¬ÈôÒòÁ¬½Ó±»¾Ü¡¢T300³¬Ê±¡¢·¢ÉúÐ¡ÇøÖØÑ¡µÈÒòËØ£¬µ¼Ö½¨Á´Ê§°Ü£¬
1995Ôò·¢Ë͸ÃÏûÏ¢RESETÎïÀí²ã¡£
1996*/
1997typedef struct
1998{
1999 WORD wMsgId;
2000 WORD wPadding1;
2001} T_zPS_LTE_P_MAC_Reset_Req;
2002
2003/*
2004ECER֪ͨEPHYÊÍ·Å×ÊÔ´¼°ÅäÖã¬Í£Ö¹Ñ°ºô£¬À뿪פÔú״̬
2005*/
2006typedef struct
2007{
2008 WORD wMsgId;
2009 /* ¸Ã×ֶαíʾÊÍ·Å×ÊÔ´µÄͬʱ£¬ÊÇ·ñÐèÒªÊÍ·ÅRF
2010 wRelRfFlg = 1±íʾÐèÒª·ÅÉ䯵£¬
2011 wRelRfFlg = 0±íʾ²»ÐèÒªÊÍ·ÅÉ䯵£¬½öÊÍ·Å×ÊÔ´*/
2012 WORD wRelRfFlg;
2013
2014 /* ¸Ã×ֶαíʾÔÚÊÍ·ÅÎïÀí²ãÅäÖÃʱ£¬ÊÇ·ñÐèÒª±£Áô·þÎñÐ¡Çø¶¨Ê±ÐÅÏ¢£¬ÔÚwRelRfFlg==0ʱÓÐЧ
2015 wKeepServCellFlg = 0±íʾÐèÒªÊÍ·ÅËùÓÐ×ÊÔ´ÅäÖã¬
2016 wKeepServCellFlg = 1±íʾ²»ÐèÒªÊÍ·ÅÐ¡ÇøÐÅÏ¢£¬ÓÃÓÚÁ¬½Ó̬»Øidleʱ¿ìËÙפÁô*/
2017 WORD wKeepServCellFlg;
2018 WORD wPadding;
2019} T_zPS_LTE_P_Rel_Req;
2020
2021/*
2022EPHY´¦ÀíÍêZPS_LTE_P_REL_REQ_EvÏûÏ¢ºó·´À¡´ËÈ·ÈÏÏûÏ¢
2023
2024typedef struct
2025{
2026} T_zPS_LTE_P_Rel_Cnf;
2027*/
2028
2029
2030
2031/**************************************************************************
2032 * EUMACÓëEPHYµÄ½Ó¿Ú *
2033 **************************************************************************/
2034
2035typedef struct
2036{
2037 WORD wMsgId;
2038 /*
2039 ȡֵ·¶Î§£ºINTEGER (0..15)£¬È±Ê¡Ê±£¬Ìîд0xFF
2040 µÈͬЭÒé²ÎÊý£º321.5.1.2 ra-PRACH-MaskIndex (PRACH Mask Index)
2041 ²ÎÊýÓÃ;£ºÍøÂç²àÃ÷È·Ö¸¶¨preamble·¢ËÍprach resource selectionÐÅÏ¢¡£
2042 */
2043 WORD wRaPrachMaskIndex;
2044 /*
2045 ȡֵ·¶Î§£ºINTEGER (0..63) £¬È±Ê¡Ê±£¬Ìîд0xFF
2046 µÈͬЭÒé²ÎÊý£º321.5.1.2 ra-PreambleIndex (Random Access Preamble)
2047 ²ÎÊýÓÃ;£ºÍøÂç²àÃ÷È·Ö¸¶¨preamble·¢ËÍÐòÁÐIDÐÅÏ¢¡£
2048 */
2049 WORD wPreamId;
2050 /*
2051 ȡֵ·¶Î§£ºËæ»ú½ÓÈëµÄÀàÐÍ£¬0±íʾ·Ç¾ºÕùËæ»ú½ÓÈ룬
2052 1±íʾ¾ºÕù½â¾öÉÏÐз¢ËÍÄÚÈÝΪC-RNTI¿ØÖÆÐÅÔª£¬2±íʾUL CCCHÊý¾Ý;
2053 3 ±íʾ×ÔÖ÷Çл»µÄ״̬±¨¸æ£»4 ±íʾ¼¯ÈºLTE UL CCCHÉÏÊý¾Ý£¬²»ÐèÒªMSG4.
2054 µÈͬЭÒé²ÎÊý£ºÎÞ
2055 ²ÎÊýÓÃ;£ºÐ­ÒéÕ»¸æÖªÎïÀí²ãµ±Ç°·¢ÆðµÄËæ»ú½ÓÈë¹ý³ÌµÄÀàÐÍ¡£
2056 */
2057 WORD wRaType;
2058 /*
2059 ȡֵ·¶Î§£º
2060 µÈͬЭÒé²ÎÊý£ºÎÞ
2061 ²ÎÊýÓÃ;£º DZÔÚµÄÏûÏ¢³¤¶È£¬ÓÃÓÚPHYÈ·¶¨Ç°µ¼×éA/B¡£
2062 */
2063 WORD wMsgSize;
2064 /*
2065 ȡֵ·¶Î§£ºËæ»ú½ÓÈë¹ý³ÌÓÉË­·¢Æð£¬0±íʾÉϲãЭÒéÕ»·¢Æð£¬1±íʾÎïÀí²ã·¢Æð
2066 µÈͬЭÒé²ÎÊý£ºÎÞ
2067 ²ÎÊýÓÃ;£º±íÊ¾Ëæ»ú½ÓÈë¹ý³Ì·¢ÆðÕß¡£
2068 */
2069 WORD wInitRA;
2070 /*
2071 ȡֵ·¶Î§£ºÊÇ·ñresetÏà¹ØµÄ²ÎÊý£¬Èç·¢Ë͹¦ÂÊ£¬Ç°µ¼·¢ËͼÆÊý¡£1ΪRESET£¬0Ôò²»ÐèÒªRESET
2072 µÈͬЭÒé²ÎÊý£ºÎÞ
2073 ²ÎÊýÓÃ;£º±íʾÊÇ·ñÖØÖÃËæ»ú½ÓÈë¹ý³ÌÏà¹Ø²ÎÊý¡£
2074 */
2075 WORD wResetPara;
2076 /*
2077 20100309 added by hongjb
2078 Èç¹ûÊÇPDCCHÃüÁî·¢ÆðµÄËæ»ú½ÓÈë¹ý³Ì£¬
2079 °Ñ10.1.4ÏûÏ¢ÖеÄ×ÓÖ¡ºÅÔÙ·¢¸øPHY,
2080 ·ñÔòÏ·¢ÎÞЧֵ0XFFFF ÓÐЧ×ÓÖ¡ºÅ·¶Î§0-10240
2081 */
2082 WORD wSubFN;
2083} T_zPS_LTE_P_Access_Req;
2084
2085typedef struct
2086{
2087 /*
2088 1:·Ç¾ºÕù½ÓÈë³É¹¦
2089 2:¾ºÕù½ÓÈë³É¹¦
2090 3:¾ºÕù¶¨Ê±Æ÷³¬Ê±Ê§°Ü
2091 4:ǰµ¼·¢ËÍ´ïµ½×î´óÖµ:preamble_trans_counter = preambleTransMax+1
2092 */
2093 WORD wResult;
2094 WORD wPreamCnt;
2095 /*
2096 ȡֵ·¶Î§£ºBIT STRING (SIZE (16))
2097 µÈͬЭÒé²ÎÊý£º331.6.3.6 C-RNTI
2098 ²ÎÊýÓÃ;£º¾ºÕù½â¾ö³É¹¦T-CRNTIÉý¼¶ºó£¬PHY½«CRNTIÉϱ¨¸øPS¡£Ã»ÓÐCRNTIÉϱ¨Ê±£¬Ð´Èë0xFFFF¡£
2099 */
2100 WORD wCRnti;
2101 WORD wPadding;
2102} T_zPS_LTE_P_Access_Cnf;
2103
2104typedef struct
2105{
2106 WORD wMsgId;
2107 /* 2010309ÐÂÔö²ÎÊý
2108 ×ÓÖ¡ºÅ£¬ÓÐЧֵ0-10240£¬ÎÞЧֵΪ0XFFFF
2109 ÕâÀïдÈëÊÕµ½ÏÂÐÐMSG4Êý¾ÝʱµÄ×ÓÖ¡ºÅ
2110 */
2111 WORD wSubFN;
2112} T_zPS_LTE_P_AbortAccess_Req;
2113
2114typedef struct
2115{
2116 /*
2117 ȡֵ·¶Î§£º0~15£¬ 0xFFΪÎÞЧֵ
2118 µÈͬЭÒé²ÎÊý£º321.5.1.2 ra-PRACH-MaskIndex (PRACH Mask Index)
2119 ²ÎÊýÓÃ;£ºÍøÂç²àÃ÷È·Ö¸¶¨preamble·¢ËÍprach resource selectionÐÅÏ¢
2120 */
2121 WORD wRaPrachMaskIndex;
2122 /*
2123 ȡֵ·¶Î§£ºINTEGER (0..63)
2124 µÈͬЭÒé²ÎÊý£º321.5.1.2 ra-PreambleIndex (Random Access Preamble)
2125 ²ÎÊýÓÃ;£ºÍøÂç²àÃ÷È·Ö¸¶¨preamble·¢ËÍÐòÁÐIDÐÅÏ¢¡£
2126 */
2127 WORD wPreamId;
2128 //WORD wPadding; 2010309 ½Ó¿ÚÎĵµÉ¾³ý
2129 /* 2010309ÐÂÔö²ÎÊý
2130 ×ÓÖ¡ºÅ£¬ÓÐЧֵ0-10240£¬ÎÞЧֵΪ0XFFFF
2131 ÊÕµ½PDCCHÃüÁîʱµÄ×ÓÖ¡ºÅ
2132 */
2133 WORD wSubFN;
2134 WORD wPadding;
2135} T_zPS_LTE_P_MacInitRa_Req;
2136
2137/*
2138psά»¤TA Timer£¬Ä¿Ç°MAC½öÔÚTA TIMER³¬Ê±Í£Ö¹Ê±£¬·¢ËÍZPS_LTE_P_TA_TIMER_STOP_IND_EvÏûÏ¢¡£
2139PHYÊÕµ½ZPS_LTE_P_TA_CMD_REQ_Ev£¬ÈÏΪTA TIMERÖØÐÂÆô¶¯
2140*/
2141typedef struct
2142{
2143 WORD wMsgId;
2144 /*
2145 ȡֵ·¶Î§£º0£¬1¡£0£º6¸öbit£¬TA¿ØÖÆÐÅÔªÖÐÊÕµ½£»
2146 1£º11¸öbit, Ëæ»ú½ÓÈëÏìÓ¦ÖÐÊÕµ½¡£
2147 µÈͬЭÒé²ÎÊý£ºÎÞ
2148 ²ÎÊýÓÃ;£º±íʾTAÖ¸ÁîÀ´Ô´¡£
2149 */
2150 WORD wTACmdType;
2151 /*
2152 ȡֵ·¶Î§£ºÔÚËæ»ú½ÓÈëÏìÓ¦ÖУ¬³¤¶ÈΪ11¸ö±ÈÌØ£»ÔÚTA¿ØÖÆÐÅÔªÖУ¬³¤¶ÈΪ6¸ö±ÈÌØ¡£
2153 µÈͬЭÒé²ÎÊý£ºTiming Advance Command£¬RARÖеÄTA»òÕßMAC¿ØÖÆÐÅÔª
2154 ²ÎÊýÓÃ;£ºÊ±¼äͬ²½ÃüÁîÖµ
2155 */
2156 WORD wTimeAdvance;
2157
2158 /* 20120101 ²ÎÊýÐÞ¸Äȡֵ·¶Î§Îª0~10240, Ö¡ºÅ*10+×ÓÖ¡ºÅ
2159 ȡֵ·¶Î§£º0~10240
2160 µÈͬЭÒé²ÎÊý£º
2161 ²ÎÊýÓÃ;£ºPSÊÕµ½TAÖµµÄʱ¼ä£¬¸Ãʱ¼ä֪ͨ¸øPHY£¬
2162 ÓÃÓÚPHYÈ·¶¨TAµÄ½ÓÊÕʱ¼äµÚN×ÓÖ¡ÒÔÈ·±£ÔÚµÚN+6×ÓÖ¡µ÷ÕûÉÏÐз¢ËͶ¨Ê±¡£
2163 */
2164 WORD wSubFN;
2165} T_zPS_LTE_P_TaCmd_Req;
2166
2167/*
2168MAC֪ͨEPHYÖ´ÐÐDRXÃüÁî
2169>Í£Ö¹On Duration TimerºÍDRX inactivity Timer¡£
2170>Èç¹ûÅäÖÃÁ˶ÌDRXÖÜÆÚ£¬Ôò¿ªÊ¼Æô¶¯¶ÌDRXÖÜÆÚ£¬ÇÒÆô¶¯¶ÌDRXÖÜÆÚ¶¨Ê±Æ÷£»
2171·ñÔòÆô¶¯³¤DRXÖÜÆÚ¡£¶ÌDRXÖÜÆÚ¶¨Ê±Æ÷³¬Ê±£¬½øÈ볤DRXÖÜÆÚ´¦Àí¡£
2172*/
2173typedef struct
2174{
2175 WORD wMsgId;
2176 WORD wPadding1;
2177} T_zPS_LTE_P_DrxCmd_Req;
2178
2179typedef struct
2180{
2181 WORD wMsgId;
2182 /*
2183 ȡֵ·¶Î§£º0Ϊֹͣ,1ΪÔËÐÐ
2184 µÈͬЭÒé²ÎÊý£ºÎÞ
2185 ²ÎÊýÓÃ;£ºTA¶¨Ê±Æ÷ÓÉPSά»¤£¬PSÏòEPHY֪ͨTA¶¨Ê±Æ÷Í£Ö¹µÄÔ­Òò¡£
2186 */
2187 WORD wCause;
2188} T_zPS_LTE_P_TATimerStop_Ind;
2189
2190typedef struct
2191{
2192 /*
2193 ȡֵ·¶Î§£º11bit
2194 µÈͬЭÒé²ÎÊý£º321.4.2.3 timing advance command TA
2195 ²ÎÊýÓÃ;£ºRARÕýÈ·½âÂëºó£¬½«TAÐÅÏ¢·¢Ë͸øMAC¡£ÓÃÓÚµ÷ÕûÉÏÐд«Êäʱ¼ä¡£
2196 */
2197 WORD wTACmd;
2198 /*
2199 20100309 ÐÂÔö²ÎÊý by hongjb
2200 EPHYÊÕµ½Ëæ»ú½ÓÈëÏìӦʱµÄ×ÓÖ¡ºÅ0-10240£¬0XFFFFΪÎÞЧֵ
2201 */
2202 WORD wSubFN;
2203} T_zPS_LTE_P_RaResponse_Ind;
2204
2205typedef struct
2206{
2207 /*
2208 ȡֵ·¶Î§£º0~499
2209 µÈͬЭÒé²ÎÊý£ºÎÞ
2210 ²ÎÊýÓÃ;£ºÖ¸Ê¾MAC PDU BUF³ØÖеÄBUFµÄindex£¬Ò²¾ÍÊÇHARQ½ø³Ì¶ÔÓ¦µÄbufferµØÖ·
2211 */
2212 //WORD wMacPduBufIndex;
2213 WORD wSubFN;
2214 /*
2215 ȡֵ·¶Î§£º1£¬2
2216 µÈͬЭÒé²ÎÊý£ºÎÞ
2217 ²ÎÊýÓÃ;£ºÖ¸Ê¾´Ë´ÎÓм¸¸ö´«Êä¿é
2218 */
2219
2220 WORD wTbNum;
2221 WORD awMacPduBufIndex[ZPS_LTE_P_MAX_TB_NUM];
2222
2223 WORD awMacPduLen[ZPS_LTE_P_MAX_TB_NUM];
2224 /*
2225 ȡֵ·¶Î§£ºTBD
2226 µÈͬЭÒé²ÎÊý£ºÎÞ
2227 ²ÎÊýÓÃ;£ºÖ¸Ê¾Ã¿¸öMAC PDU´æ·ÅµÄµØÖ·
2228 */
2229
2230 PBYTE apbMacPduData[ZPS_LTE_P_MAX_TB_NUM];
2231} T_zPS_LTE_P_DlSchData_Ind;
2232
2233/*KangShuJie Start*/
2234
2235/******************************************************
2236 ·½Ïò:L1E->EPHY
2237 ¹¦ÄÜ:³õʼ»¯É䯵(²¢·Ç¹¤×÷)£¬Çå¿ÕÎïÀí²ã×ÊÔ´ºÍͬ²½ÐÅÏ¢¡£ÓÃÓÚ¿ª»úÉ䯵³õʼ»¯ºÍ½øÈë·ÉÐÐģʽ¡£
2238 ÏûÏ¢£ºLTE_P_RESET_REQ_EV
2239 ½á¹¹:T_zPS_LTE_P_Reset_Req
2240******************************************************/
2241typedef struct{
2242 WORD wMsgId;
2243 WORD wPadding;
2244}T_zLTE_P_Reset_Req;
2245/******************************************************
2246 ·½Ïò:EPHY->L1E
2247 ¹¦ÄÜ:¶ÔLTE_P_RESET_REQ_EvµÄÏìÓ¦ÏûÏ¢¡£Ìæ´úLTEµ¥Ä£Ê±¶¨ÒåµÄZPS_LTE_P_SWITCH_RF_CNF_Ev
2248 ÏûÏ¢:LTE_P_RESET_CNF_Ev.
2249 ½á¹¹:NULL
2250******************************************************/
2251
2252/******************************************************
2253 ·½Ïò:EPHY->L1E
2254 ¹¦ÄÜ:LTEΪÖ÷µÄʱºò,EPHYÉϱ¨¿ÕÏÐʱ¼ä,Ŀǰ½öÓÃÓÚIDLE̬Ï£¬²¢ÇÒÉϱ¨µÄ¿ÕÏÐʱ¼äÒѾ­¿Û³ýÁËEPHYÓÃÓÚ
2255 ͬƵºÍÒìÆµ²âÁ¿ËùʹÓõÄʱ¼äºÍEPHY¹Ø±ÕÉ䯵ËùºÄ·ÑµÄʱ¼ä
2256 ÏûÏ¢:LTE_P_INACTIVE_TIME_IND_EV
2257 ½á¹¹:T_zLTE_P_InactiveTime_Ind
2258******************************************************/
2259typedef struct
2260{
2261 WORD wGapStartSfn; /*¿ÕÏÐʱ¼äµÄ¿ªÊ¼Ö¡ºÅ*/
2262 WORD wGapStartSubframe; /*¿ÕÏÐʱ¼äµÄ¿ªÊ¼×ÓÖ¡ºÅ*/
2263 WORD wGapStartTs; /*¿ÕÏÐʱ¼äµÄ¿ªÊ¼TSÆ«ÒÆ*/
2264 WORD wGapMsLen; /*¿ÕÏÐʱ¼äµÄºÁÃë¼¶³¤¶È*/
2265 WORD wGapTsLen; /*¿ÕÏÐʱ¼äÖв»×ã1MSµÄTS³¤¶È*/
2266 WORD wPadding;
2267} T_zLTE_P_InactiveTime_Ind;
2268
2269/******************************************************
2270 ·½Ïò:L1E->EPHY
2271 ¹¦ÄÜ:ÉèÖÃEPHYÖ÷¸¨Ä£Ê½
2272 ÏûÏ¢:LTE_P_SET_MODE_REQ_EV
2273 ½á¹¹:T_zLTE_P_SetMode_Req
2274******************************************************/
2275typedef struct
2276{
2277 WORD wMsgId;
2278 WORD wIsMaster; /*1:ÉèÖÃΪÖ÷ģʽ;0:ÉèÖÃΪ¸¨Ä£Ê½*/
2279} T_zLTE_P_SetMode_Req;
2280/**************************************************************************
2281 ·½Ïò:L1E->EPHY
2282 ¹¦ÄÜ:LTEÖ÷ģʽÏÂCONNECTED̬£¬L1E½«µ±Ç°µÄ²âÁ¿GAPģʽÅäÖøøÎïÀí²ã²¢Ö¸Ê¾GAPÐòÁÐÖÐÄÇЩGAPÓÃÓÚLTEµÄ²âÁ¿
2283 ÏûÏ¢:LTE_P_IRAT_MEAS_GAP_CONFIG_REQ_EV
2284 ½á¹¹:T_zLTE_P_IratMeasGapConfig_Req
2285 **************************************************************************/
2286typedef struct
2287{
2288 WORD wMsgId;
2289 WORD wActive; /* GAPµÄ¼¤»îָʾ£¬0±íʾȥ»î£¬1±íʾ¼¤»î */
2290 WORD wStartSfn; /* GAPÐòÁÐÄ£ÐÍµÄÆðʼSFNºÅ */
2291 WORD wStartSubframe; /* GAPÐòÁÐÄ£ÐÍµÄÆðʼ×ÓÖ¡ºÅ */
2292 WORD wLength; /* GAPµÄ³¤¶È£¬µ¥Î»ÊÇ×ÓÖ¡£¨ms£©,Ŀǰ¹Ì¶¨Îª6ms */
2293 WORD wPeriod; /* GAPµÄÖØ¸´ÖÜÆÚ£¬µ¥Î»ÊÇ×ÓÖ¡£¨ms£©*/
2294 WORD wLteGapPeriod; /* ÓÃÓÚLTE²âÁ¿µÄGAPÖØ¸´ÖÜÆÚ£¬µ¥Î»ÊÇ×ÓÖ¡£¨ms£©´Ó±¾ÅäÖõÄbStartSfn¡¢wStartSubframe¹æ¶¨µÄGAP¿ªÊ¼£¬Ã¿¸ôwLteGapPeriodµÄGAPÊÇÓÃÓÚLTE²âÁ¿µÄ*/
2295 WORD wPadding;
2296}T_zLTE_P_IratMeasGapConfig_Req;
2297
2298/*KangShuJie End*/
2299
2300
2301/**************************************************************************
2302 * Óû§ÃæÏà¹Ø½Ó¿Ú *
2303 **************************************************************************/
2304
2305/*
2306PHYÊÕµ½ÉÏÐÐÊÚȨʱÔÚMACµ÷¶ÈÐÅÏ¢BUF£¨¼´PS-PHY½»»»Çø£©Öдæ·ÅÉÏÐе÷¶ÈÐÅÏ¢£¬
2307²¢²úÉúMACÉÏÐе÷¶ÈÖжϴ¥·¢PS´ÓMACµ÷¶ÈÐÅÏ¢BUFÖÐÈ¡×ß´ËÉÏÐе÷¶ÈÐÅÏ¢Ö´ÐÐMACÉÏÐд¦ÀíÁ÷³Ì¡£
2308ÿ¸ö×ÓÖ¡Öжϣ¬Ò²ÐèҪͨ¹ý´Ëº¯ÊýָʾMAC£¬½øÐÐÿ¸ö×ÓÖ¡µÄЭÒé´¦Àí£¨Èç¹ûûÓÐÉÏÐе÷¶È£¬ÔòÊÚȨÀàÐÍΪ0£©
2309*/
2310#define ZPS_LTE_P_MAX_CELL_NUM 2
2311typedef struct
2312{
2313 WORD wCellIndex;
2314 WORD wPucchTrans;
2315 WORD wUlSchedType[2];
2316 WORD wUlGrantTbSize[2];
2317 WORD wIsSpsActivated;
2318 WORD wPowerHeadRoomType1;
2319 WORD wPathLoss;
2320 WORD wPowerBackoff;
2321 WORD wPowerHeadRoomType2;
2322 WORD wPcmaxC;
2323 PBYTE pbUlDataPtr[2];
2324}T_zPS_LTE_P_UlSchedInfoInd;
2325
2326typedef struct
2327{
2328 WORD wUlSchInfoCnt;
2329 WORD wPadding;
2330 PBYTE pbUlCtrlInfoPtr;
2331 T_zPS_LTE_P_UlSchedInfoInd tUlSchInfoArray[ZPS_LTE_P_MAX_CELL_NUM];
2332} T_zPS_LTE_P_ExtendedUlSchedInfoInd;
2333
2334
2335/*
2336µ±ÓÐÉÏÐÐÊÚȨÓÃÓÚÐÂÊý¾Ý·¢ËÍ£¬PS×éÖ¡ºó»áÏòMACµ÷¶ÈÐÅÏ¢BUFдÈëÉÏÐз¢ËÍ¿ØÖÆÏûÏ¢£¬
2337²¢´¥·¢EDCPÓ²¼þ£¬°áÔËÊý¾Ýµ½¶ÔÓ¦HARQ ramÖС£
2338µ±Ã»ÓÐÉÏÐÐÊÚȨÓÃÓÚÐÂÊý¾Ý·¢ËÍÇÒÓÐSR´¥·¢Ê±£¬Í¨¹ý´Ë½Ó¿Ú´¥·¢ÎïÀí²ãµÄSR·¢Ë͹ý³Ì¡£
2339*/
2340
2341typedef struct
2342{
2343 WORD wCellIndex;
2344 WORD wPadding;
2345 WORD wSendType[2];
2346 WORD wDataValid[2];
2347 WORD wDataSendSize[2];
2348 PBYTE pbDataSrc[2];
2349} T_zPS_LTE_P_UlDataSendCtrlInfo;
2350
2351typedef struct
2352{
2353 T_zPS_LTE_P_UlDataSendCtrlInfo atUlDataSendCtrlInfoArray[ZPS_LTE_P_MAX_CELL_NUM];
2354 WORD wUlDataSendCtrlInfoCnt;
2355 WORD wPadding;
2356} T_zPS_LTE_P_ExtendedUlDataSendCtrlInfo;
2357
2358
2359/*
2360PHY³É¹¦½âÂëÏÂÐÐÊý¾Ýºó£¬½«µÃµ½ÕâЩÊý¾ÝµÄÀàÐÍ£¬³¤¶È£¬´æ·ÅλÖõÈÐÅÏ¢£¬
2361ÕâЩÐèҪ֪ͨPSÒÔ±ã¶ÔÕâЩÊý¾Ý×÷ºóÐøµÄ´¦Àí¡£
2362PHYÐèÒª¸ù¾ÝRNTIÀàÐÍÇø·ÖÊý¾ÝµÄÀàÐÍ£¬PHYÒ²ÐèҪά»¤»·Ðλº³åÇøµÄË÷Òý¡£
2363*/
2364typedef struct
2365{
2366 WORD wSubFN;
2367 WORD wTbNum;
2368 WORD awBufIndex[ZPS_LTE_P_MAX_TB_NUM];
2369 WORD awTbLen[ZPS_LTE_P_MAX_TB_NUM];
2370 PBYTE apbMacPduData[ZPS_LTE_P_MAX_TB_NUM];
2371} T_zPS_LTE_P_DlDataRecvCtrlInfo;
2372
2373
2374typedef struct
2375{
2376 WORD wStartSysFrameNum;
2377 WORD wStartSubFrameNum;
2378 WORD wSleepTimeLen;
2379 WORD wPadding;
2380}T_zPS_LTE_P_SleepTime_Ind;
2381
2382typedef struct
2383{
2384 WORD wMsgId;
2385 WORD wKeepAwakeTime;/*µ¥Î»MS£¬ÎïÀí²ã»½ÐÑÆäTPU£¬²¢´ÓÊÕµ½¸ÃÐÅÏ¢¿ªÊ¼ÐèÒª±£³ÖÆäTPU wKeepAwakeTime MSÄÚ²»ÒªÔٴνøÈë˯Ãß*/
2386}T_zPS_LTE_P_Wakeup_Req;
2387
2388/* ÓÃÓÚ±£´æ½âÂëºóµÄ SI ETWS PCH Êý¾ÝµÄ³¤¶ÈºÍ PROID */
2389typedef struct
2390{
2391 WORD wDlBandWidth; /*Ð¡ÇøÏÂÐдø¿í£¬Éϱ¨sib1ºÍSIʱÌîд*/
2392 WORD wPadding;
2393 T_zPS_LTE_P_SinrResult tSinrRslt; /*¸ÃÐ¡ÇøµÄSINR£¬¹¤³ÌģʽɨƵÉϱ¨ÐèÇóÐÂÔö*/
2394 WORD wTblen;
2395 WORD wProcId; /* ÓÃÓÚϵͳÏûÏ¢Éϱ¨Ê±µÄÎÕÊÖÐÅÏ¢ */
2396 PBYTE pbDlSiPCHData;
2397}T_zPS_LTE_P_DlSiPCHDataRecvCtrlInfo;
2398
2399typedef struct
2400{
2401 WORD wMsgId;
2402 WORD wActDeactSCellInfo;
2403 WORD wSubFN;
2404 WORD wPadding;
2405}T_zPS_LTE_P_SCELL_Ctrl_Req;
2406
2407typedef struct
2408{
2409 WORD wNotifcRptCoeff;
2410 WORD wNotifcOffset;
2411 WORD wNotifcSfIndx;
2412 WORD wPadding;
2413}T_zPS_LTE_P_MbmsNotifcCfg;
2414
2415typedef struct
2416{
2417 WORD wMbsfnAreaId;
2418 WORD wNonMbsfnRegnLen;
2419 WORD wNotifcInd;
2420 WORD wMcchRptPeriod;
2421 WORD wMcchOffset;
2422 WORD wMcchModiPeriod;
2423 WORD wSfAllocInfo;
2424 WORD wSigMCS;
2425}T_zPS_LTE_P_McchCfgInfo;
2426
2427typedef struct
2428{
2429 WORD wMsgId;
2430 WORD wMcchNum;
2431 T_zPS_LTE_P_McchCfgInfo atMcchCfgList[Z_LTE_MAX_MBSFN_AREA_NUM_IN_CELL];
2432 T_zPS_LTE_P_MbmsNotifcCfg tNotifcCfg;
2433}T_zPS_LTE_P_McchCfgReq;
2434
2435typedef struct
2436{
2437 WORD wSfAllocEnd;
2438 WORD wDataMCS;
2439 WORD wMsp;
2440 WORD wPadding;
2441}T_zPS_LTE_P_PmchCfg;
2442
2443typedef struct
2444{
2445 WORD wPmchCfgNum;
2446 WORD wPadding;
2447 T_zPS_LTE_P_PmchCfg tPmchCfg[Z_LTE_P_MAX_PMCH_NUM];
2448 DWORD dwUsedLochIdList[Z_LTE_P_MAX_PMCH_NUM];
2449}T_zPS_LTE_P_PmchInfoList;
2450
2451typedef struct
2452{
2453 WORD wMsgId;
2454 WORD wMbsfnAreaId;
2455 WORD wCommSfAllocPeriod;
2456 WORD wPadding;
2457 T_zPS_LTE_P_MbsfnSubframeConfigList tCommSfAlloc;
2458 T_zPS_LTE_P_PmchInfoList tPmchInfoList;
2459}T_zPS_LTE_P_MtchCfgReq;
2460
2461typedef struct
2462{
2463 WORD wMsgId;
2464 WORD wMbsfnAreaId;
2465 DWORD dwUsedLochIdList[Z_LTE_P_MAX_PMCH_NUM];
2466}T_zPS_LTE_P_MtchMaskSetReq;
2467
2468typedef struct
2469{
2470 WORD wMbsfnAreaId;
2471 WORD wRelMcch;
2472 WORD wRelMtch;
2473 WORD wPadding;
2474}T_zPS_LTE_P_PmchRelInfo;
2475
2476typedef struct
2477{
2478 WORD wMsgId;
2479 WORD wRelNum;
2480 T_zPS_LTE_P_PmchRelInfo atPmchRelList[Z_LTE_MAX_MBSFN_AREA_NUM_IN_CELL];
2481}T_zPS_LTE_P_PmchRelReq;
2482
2483typedef struct
2484{
2485 WORD wLochId;
2486 WORD wEndSf;
2487}T_zPS_LTE_P_PmchSI;
2488
2489typedef struct
2490{
2491 WORD wMsgId;
2492 WORD wMbsfnAreaId;
2493 WORD wPmchIndex;
2494 WORD wMsiNum;
2495 T_zPS_LTE_P_PmchSI tMsiList[Z_LTE_P_MAX_SESSION_NUM_IN_PMCH];
2496}T_zPS_LTE_P_Msi_Req;
2497
2498typedef struct
2499{
2500 WORD wSubFN;
2501 WORD wBufIndex;
2502 WORD wMbsfnAreaId;
2503 WORD wPmchIndex;
2504 WORD wMcch;
2505 WORD wTbLen;
2506 PBYTE pbMCHPduData;
2507}T_zPS_LTE_P_MCHRecvCtrlInfo;
2508
2509#ifdef BTRUNK_SUPPORT
2510typedef struct
2511{
2512 /*±ØÑ¡²ÎÊý*/
2513 WORD wSpsIntervalDl;
2514 WORD wSpsRnti;
2515
2516 WORD wSetupFg;
2517 /*ÓÉbSetupFgʹÄÜ*/
2518 WORD wMCS;
2519 WORD wVRBassignmentflag;
2520 WORD wOffset;
2521 WORD wIRV;
2522 WORD wPadding;
2523}T_zPS_LTE_P_BtrunkSpsConfigDl;
2524
2525typedef struct
2526{
2527 WORD wMsgId;
2528 WORD wSelfHoFg;
2529 WORD wSubFrameAssign;
2530 WORD wSpecialSubFramePatterns;
2531 WORD wAntennaPortsCount;
2532 WORD wDlEarfcn;
2533 WORD wUlEarfcn;
2534 WORD wPhyCellId;
2535 WORD wGrnti;
2536
2537 WORD wBlerEnable;
2538 WORD wBlerTrigger;
2539 WORD wcqiProhibitTimer;
2540
2541 WORD wBtrunkPa;
2542 WORD wEnableSpsFg;
2543 T_zPS_LTE_P_BtrunkSpsConfigDl tBrunkSpsConfigDl;
2544 WORD wBandWidth; // ȡֵ{6, 15, 25, 50, 75, 100}£¬È¡0xFFFFʱ,ÎïÀí²ãÑØÓÃÔ­Ð¡ÇøµÄÏÂÐдø¿í
2545 WORD wPadding;
2546}T_zPS_LTE_P_Btrunk_Ttch_ConfigInfo;
2547
2548typedef struct
2549{
2550 WORD wMsgId;
2551 WORD wCfgType;
2552 WORD wPadding;
2553 WORD wGrnti;
2554}T_zPS_LTE_P_Grnti_Config;
2555
2556typedef struct
2557{
2558 WORD wMsgId;
2559 WORD wPadding;
2560}T_zPS_LTE_P_Dedicated_Rel;
2561
2562typedef struct
2563{
2564 WORD wMsgId;
2565 WORD wPadding;
2566}T_zPS_LTE_P_BtrunkConfig_Rel;
2567
2568typedef struct
2569{
2570 WORD wMsgId;
2571 WORD wPadding;
2572 WORD wCQI;
2573 WORD wMCS;
2574} T_zPS_LTE_P_BTUNK_CQI_IND;
2575
2576typedef struct
2577{
2578 WORD wDataLen;
2579 WORD wPadding;
2580 PBYTE pbBTPchData;
2581} T_zPS_LTE_P_TPchData_Ind;
2582
2583#endif //ENDIF BTRUNK_SUPPORT
2584typedef struct
2585{
2586 WORD wMsgId;
2587 WORD wCmd; /* ÃüÁîºÅ£¬¶ÔÓ¦²»Í¬µÄÎïÀí²ã¹¦ÄÜ */
2588 WORD wMode; /* 0±íʾÉèÖã¬1±íʾ²éѯ */
2589 WORD wVal1Fg; /* ±íʾVal1/Val2ÊÇ·ñ´æÔÚ£¬0±íʾ²»´æÔÚ£¬1±íʾ´æÔÚ */
2590 WORD wVal2Fg;
2591 WORD wPadding;
2592 DWORD dwVal1; /* ²ÎÊý1/²ÎÊý2£¬ÐÞ¸Ä/¶ÁÈ¡µÄÎïÀí²ã²ÎÊý£¬²ÎÊýʵ¼Êº¬ÒåÓÉÎïÀí²ã¸ø³ö */
2593 DWORD dwVal2;
2594}T_zPS_LTE_P_Zepcg_Req;
2595
2596typedef struct
2597{
2598 WORD wCmd; /* ÃüÁîºÅ£¬¶ÔÓ¦²»Í¬µÄÎïÀí²ã¹¦ÄÜ£¬bMode=0/1¶¼ÓÐЧ */
2599 WORD wMode; /* 0±íʾÉèÖöÔÓ¦µÄÏìÓ¦£¬´Ëʱ£¬ºóÐø²ÎÊýbRsltÓÐЧ£¬bVal2Fg£¬bVal1£¬bVal2¾ùÎÞЧ
2600 1±íʾ²éѯ¶ÔÓ¦µÄÏìÓ¦£¬´Ëʱ£¬ºóÐø²ÎÊýbRsltÎÞЧ£¬bVal2Fg£¬bVal1£¬bVal2¾ùÓÐЧ */
2601 WORD wRslt; /* ±íʾÉèÖýá¹û£¬Z_TRUEÉèÖóɹ¦£¬Z_FALSEÉèÖÃʧ°Ü wMode=0ʱÓÐЧ */
2602 WORD wVal1Fg[Z_ZEPCG_PARAM_NUM]; /*°´ÕÕϱêºÍdwValÖÐÖµÒ»Ò»¶ÔÓ¦£¬bVal1Fg[0]±íʾdwVal[0]ÊÇ·ñ´æÔÚ,ÒÀ´ÎÀàÍÆ£¬0±íʾ²»´æÔÚ£¬1±íʾ´æÔÚ*/
2603
2604 LONG dwVal[Z_ZEPCG_PARAM_NUM]; /*²ÎÊý1/²ÎÊý2¡­£¬ÐÞ¸Ä/¶ÁÈ¡µÄÎïÀí²ã²ÎÊý£¬²ÎÊýʵ¼Êº¬ÒåÓÉÎïÀí²ã¸ø³ö*/
2605
2606}T_zPS_LTE_P_Zepcg_Cnf;
2607
2608typedef struct {
2609
2610 WORD wMsgId;
2611 WORD wPadding;
2612 WORD wSim1Act;/*0-È¥»î,1-¼¤»î*/
2613 WORD wSim2Act;/*0-È¥»î,1-¼¤»î*/
2614}T_zPS_LTE_P_CardSwitch_Req;
2615
2616
2617typedef struct {
2618
2619 WORD wResult;/*0-Z_SUCC,1-Z_FAIL*/
2620 WORD wPadding;
2621}T_zPS_LTE_P_CardSwitch_Cnf;
2622
2623typedef struct
2624{
2625 SHORT sIslandThresh;//¹ÂµºÃÅÏÞĬÈÏ-4
2626 WORD wPadding;
2627} T_zPS_LTE_Island_Ind;
2628
2629/*ƵµãƵ¶ÎÅäÖýṹ*/
2630typedef struct
2631{
2632 WORD wSupported; /* ¸ÃƵ¶ÎÊÇ·ñÖ§³Ö0:²»Ö§³Ö,1:Ö§³Ö */
2633 WORD wDlStratHz; /* ÏÂÐÐÆðʼƵÂÊ µ¥Î»ÊÇ 100K HZ */
2634 WORD wDlEndHz; /* ÏÂÐÐÆðʼƵÂÊ µ¥Î»ÊÇ 100K HZ */
2635 WORD wDuplexMode; /* ¸ÃƵ¶ÎË«¹¤Ä£Ê½0:ÎÞЧֵ1:FDD,2:TDD */
2636 DWORD dwMinDlEarfcn; /* ×îСÏÂÐÐÆµµã */
2637 DWORD dwMaxDlEarfcn; /* ×î´óÏÂÐÐÆµµã */
2638 WORD wUlStratHz; /* ÉÏÐÐÆðʼƵÂÊ µ¥Î»ÊÇ 100K HZ */
2639 WORD wUlEndHz; /* ÉÏÐÐÆðʼƵÂÊ µ¥Î»ÊÇ 100K HZ */
2640 DWORD dwMinUlEarfcn; /* ×îСÉÏÐÐÆµµã */
2641 DWORD dwMaxUlEarfcn; /* ×î´óÉÏÐÐÆµµã */
2642}T_zPS_LTE_P_EutraBandInfo;
2643
2644typedef struct
2645{
2646 WORD wMsgId;
2647 WORD wPadding;
2648 T_zPS_LTE_P_EutraBandInfo atEutraBandInfo[66];/*Êý×éÓëBAND¶ÔÓ¦£¬atEutraBandInfo[1]±£´æµÄÊÇBAND1µÄÐÅÏ¢£¬ÒÔ´ËÀàÍÆ*/
2649 /* ȡֵҪÓë cpu_r7\platform\ps\src\com\inc\nvparam_ps.h ÖеÄZ_MAX_LTE_BAND_NUMºêÖµÒ»Ö */
2650}T_zPS_LTE_P_EutraBandInfoList;
2651
2652
2653/*==============================================================================
2654 PS->EPHY
2655 ʼþ£ºLTE_P_RPI_SET_REQ_EV
2656 ¹¦ÄÜ:
2657 ÉèÖÃEPHYʹÓõÄ×î´ó·¢É书ÂʵÄRPI VAULE
2658==============================================================================*/
2659typedef struct
2660{
2661 WORD wRpi; /* ÓÃÓÚË÷ÒýPUMAXµÄRPIµµÎ»£¬·¶Î§0/1/2 */
2662 WORD wPad;
2663}T_zPS_LTE_P_RpiSetReq;
2664
2665
2666#define ZPS_LTE_P_RPI_SUPPORT_MAX_BAND (BYTE)12
2667
2668
2669
2670/*==============================================================================
2671 PS->EPHY
2672 ʼþ£ºLTE_P_RPI_CFG_REQ_EV
2673 ¹¦ÄÜ:
2674 ÅäÖÃLTEÏÂ12¸öBAND£¬Ã¿¸öBANDÏÂRPIºÍPUMAXµÄÓ³Éä¹ØÏµ£¬ÆäÖÐRPI·¶Î§0~2
2675==============================================================================*/
2676typedef struct
2677{
2678 T_zBandRpiCfg tLteBandRpiCfg[ZPS_LTE_P_RPI_SUPPORT_MAX_BAND];
2679}T_zPS_LTE_P_RpiCfgReq;
2680
2681
2682/*=======================================================================
2683 OTDOA¶¨Î»¹¦ÄÜÐÂÔöPS-EPHY½Ó¿Ú(START)
2684========================================================================*/
2685#define OTDOA_MAX_NEIGHBOUR_CELL_CFG_NUM 8
2686#define OTDOA_MAX_NEIGHBOUR_CELL_MEAS_NUM 8
2687
2688
2689typedef struct
2690{
2691 WORD wPrsBandWidth;
2692 WORD wPrsConfIdx;
2693 WORD wPrsSubFrameNum;
2694 WORD wPrsMutSeqPerd;
2695 WORD wPOString;
2696 WORD wPadding;
2697}T_zPS_LTE_P_PrsInfo;
2698
2699typedef struct
2700{
2701 DWORD dwEarfcn;
2702 WORD wPci;
2703 WORD wAntennaConfig;
2704 WORD wCpLen;
2705 WORD wPrsInfoFg;
2706 T_zPS_LTE_P_PrsInfo tPrsInfo;
2707}T_zPS_LTE_P_OTDOA_RefCellCfg;
2708
2709
2710typedef struct
2711{
2712 DWORD dwEarfcn;
2713 WORD wPci;
2714 WORD wAntennaConfig;
2715 WORD wCpLen;
2716 WORD wPrsInfoFg;
2717 T_zPS_LTE_P_PrsInfo tPrsInfo;
2718 WORD wSlotNumOffset;
2719 WORD wSubFrameOffset;
2720 WORD wExptRstd;
2721 WORD wExptRstdUncertainty;
2722}T_zPS_LTE_P_OTDOA_NCellCfg;
2723
2724
2725typedef struct
2726{
2727 WORD wNCellNum;
2728 WORD wPadding;
2729 T_zPS_LTE_P_OTDOA_NCellCfg tOtdoaNCell[OTDOA_MAX_NEIGHBOUR_CELL_CFG_NUM];
2730}T_zPS_LTE_P_OTDOA_NCellCfgList;
2731
2732
2733typedef struct
2734{
2735 DWORD bErrResolution :2;
2736 DWORD bErrVal :5;
2737 DWORD bErrNumSamples: 3;
2738 DWORD bPading :22;
2739}T_zPS_LTE_P_OTDOA_MeasQua;
2740
2741
2742typedef struct
2743{
2744 DWORD dwEarfcn;
2745 WORD wPci;
2746 WORD wSFN;
2747 T_zPS_LTE_P_OTDOA_MeasQua tRefQua;
2748}T_zPS_LTE_P_OTDOA_RefMeasInfo;
2749
2750typedef struct
2751{
2752 DWORD dwEarfcn;
2753 WORD wPci;
2754 WORD wRstd;
2755 T_zPS_LTE_P_OTDOA_MeasQua tRstdQua;
2756}T_zPS_LTE_P_OTDOA_NCellMeasInfo;
2757
2758
2759typedef struct
2760{
2761 DWORD wNCellNum;
2762 T_zPS_LTE_P_OTDOA_NCellMeasInfo tNCellMeasInfo[OTDOA_MAX_NEIGHBOUR_CELL_MEAS_NUM];
2763}T_zPS_LTE_P_OTDOA_NCellMeasList;
2764
2765
2766typedef struct
2767{
2768 WORD wMsgId;
2769 WORD wPeriodMeasFg;
2770 WORD wRptTimerLen;
2771 WORD wPading;
2772 T_zPS_LTE_P_OTDOA_RefCellCfg tOtdoaRefCell;
2773 T_zPS_LTE_P_OTDOA_NCellCfgList tOtdoaNCellList;
2774}T_zPS_LTE_P_OtdoaConfig_Req;
2775
2776
2777
2778typedef struct
2779{
2780 T_zPS_LTE_P_OTDOA_RefMeasInfo tRefMeasInfo;
2781 T_zPS_LTE_P_OTDOA_NCellMeasList tNCellMeasList;
2782}T_zPS_LTE_P_OtdoaMeas_Rlt;
2783
2784
2785typedef struct
2786{
2787 WORD wMsgId;
2788 WORD wPading;
2789}T_zPS_LTE_P_OtdoaMeas_Abort;
2790
2791
2792/*=======================================================================
2793 OTDOA¶¨Î»¹¦ÄÜÐÂÔöPS-EPHY½Ó¿Ú(END)
2794========================================================================*/
2795
2796
2797
2798/*=======================================================================
2799 230AÐÂÔöPS-EPHY½Ó¿Ú(START)
2800========================================================================*/
2801typedef struct
2802{
2803 WORD CurUtcYear;
2804 WORD CurUtcMonth;
2805 WORD LastUtcYear;
2806 WORD LastUtcMonth;
2807 WORD FactoryCaliUtcYear;
2808 WORD FactoryCaliUtcMonth;
2809 SINT32 C0;
2810 WORD Cnt;
2811}T_C0CaliInfo; //PHY->PS
2812
2813typedef struct
2814{
2815 WORD Year;
2816 WORD Month;
2817 T_C0CaliInfo tC0CaliInfo;
2818}T_zPs_Phy_UtcInfo; //PS SAVE IRAM
2819
2820
2821/* PHY-->PS */
2822typedef struct {
2823 DWORD dwMCS;
2824 DWORD dwAckCnt;
2825 DWORD dwNackCnt;
2826}T_zPs_Phy_UlParam;
2827
2828
2829
2830
2831/*=======================================================================
2832 230A¹¦ÄÜÐÂÔöPS-EPHY½Ó¿Ú(END)
2833========================================================================*/
2834
2835
2836
2837
2838
2839
2840#ifndef _OS_WIN
2841
2842/***************************************************************************************************************************************
2843New Define
2844***************************************************************************************************************************************/
2845
2846/*ºË¼äͬ²½FLAG */
2847#define CTRL_INFO_INTER_CORE_SYNC_ADDR IRAM_BASE_ADDR
2848
2849/* SRAMÔ¤Áô10K(ÒÑʹÓÃ8576×Ö½Ú)ÓÃÓÚPSÓëEPHY½»»¥PCH/SI/ETWS/ULGRANT*/
2850
2851#define CTRL_INFO_PS_EPHY_ADDR_BASE IRAM_BASE_ADDR_LTE
2852
2853#define ZPS_LTE_GET_ULSCHEDIND_PTR CTRL_INFO_PS_EPHY_ADDR_BASE //mac
2854
2855#define CTRL_INFO_LTE_ULSCHEDIND_ADDR ZPS_LTE_GET_ULSCHEDIND_PTR //PHY
2856
2857#define CTRL_INFO_LTE_ULDATASEND_ADDR (sizeof(T_zPS_LTE_P_ExtendedUlSchedInfoInd) + ZPS_LTE_GET_ULSCHEDIND_PTR)
2858#define CTRL_INFO_LTE_ULSRSEND_ADDR (sizeof(T_zPS_LTE_P_ExtendedUlDataSendCtrlInfo)*8 + CTRL_INFO_LTE_ULDATASEND_ADDR)
2859
2860//#ifdef LTE_R10_DEFAULT_SUPPORT
2861//#define CTRL_INFO_LTE_LARGEDLMACPDUBUF_IDXOUT_ADDR (sizeof(T_zPS_LTE_P_ExtendedUlDataSendCtrlInfo) + CTRL_INFO_LTE_ULDATASEND_ADDR)
2862//#else
2863//#define CTRL_INFO_LTE_LARGEDLMACPDUBUF_IDXOUT_ADDR (sizeof(T_zPS_LTE_P_UlDataSendCtrlInfo) + CTRL_INFO_LTE_ULDATASEND_ADDR)
2864//#endif
2865
2866/*largeDLMacPduBuf*/
2867#define CTRL_INFO_LTE_LARGEDLMACPDUBUF_IDXOUT_ADDR ((4>>CPU_SHIFT) + CTRL_INFO_LTE_ULSRSEND_ADDR)
2868
2869#define CTRL_INFO_LTE_LARGEDLMACPDUBUF_IDXIN_ADDR ((2>>CPU_SHIFT) + CTRL_INFO_LTE_LARGEDLMACPDUBUF_IDXOUT_ADDR)
2870
2871#define ZPS_LTE_GET_FREE_LARGEPDU_IDXARRAY_PTR ((4>>CPU_SHIFT) + CTRL_INFO_LTE_LARGEDLMACPDUBUF_IDXOUT_ADDR)
2872
2873/*smallDlMacPduBuf*/
2874
2875#define CTRL_INFO_LTE_SMALLDLMACPDUBUF_IDXOUT_ADDR (((Z_EUMAC_DL_LARGEPDU_BUF_NUM*2)>>CPU_SHIFT) + ZPS_LTE_GET_FREE_LARGEPDU_IDXARRAY_PTR)
2876
2877#define CTRL_INFO_LTE_SMALLDLMACPDUBUF_IDXIN_ADDR ((2>>CPU_SHIFT) + CTRL_INFO_LTE_SMALLDLMACPDUBUF_IDXOUT_ADDR)
2878
2879#define ZPS_LTE_GET_FREE_SMALLPDU_IDXARRAY_PTR ((4>>CPU_SHIFT) + CTRL_INFO_LTE_SMALLDLMACPDUBUF_IDXOUT_ADDR)
2880
2881//#define DATA_BUF_LTE_PCH_ADDR (((Z_EUMAC_DL_SMALLPDU_BUF_NUM * 2)>>CPU_SHIFT) + ZPS_LTE_GET_FREE_SMALLPDU_IDXARRAY_PTR)
2882//ZPS_LTE_GET_FREE_SMALLPDU_IDXARRAY_PTR֮ǰ´æµÄÊÇС¿éµÄË÷Òý£¬ÏÖÔÚ¸ÄΪС¿éÔ¤ÉêÇëµÄС¿éµØÖ·
2883
2884#define DATA_BUF_LTE_PCH_ADDR (((Z_EUMAC_DL_SMALLPDU_PRE_MALLOC_MAX * 4)>>CPU_SHIFT) + ZPS_LTE_GET_FREE_SMALLPDU_IDXARRAY_PTR)
2885
2886#define DATA_BUF_LTE_SI_BUF0_ADDR ((Z_LTE_P_MAX_PCH_BUF_SIZE>>CPU_SHIFT) + DATA_BUF_LTE_PCH_ADDR)
2887#define DATA_BUF_LTE_SI_BUF1_ADDR ((Z_LTE_P_MAX_SI_BUF_SIZE>>CPU_SHIFT) + DATA_BUF_LTE_SI_BUF0_ADDR)
2888#ifdef BTRUNK_SUPPORT
2889#define DATA_BUF_LTE_TPCH_ADDR ((Z_LTE_P_MAX_SI_BUF_SIZE >>CPU_SHIFT)+ DATA_BUF_LTE_SI_BUF1_ADDR)
2890#define DATA_BUF_LTE_ETWS_ADDR ((Z_LTE_P_MAX_PCH_BUF_SIZE>>CPU_SHIFT) + DATA_BUF_LTE_TPCH_ADDR)
2891#else
2892#define DATA_BUF_LTE_ETWS_ADDR ((Z_LTE_P_MAX_SI_BUF_SIZE>>CPU_SHIFT) + DATA_BUF_LTE_SI_BUF1_ADDR)
2893#endif
2894
2895#define IND_MSG_LTE_ISLAND_ADDR ((Z_LTE_P_MAX_SI_BUF_SIZE>>CPU_SHIFT) + DATA_BUF_LTE_ETWS_ADDR)
2896#define CTRL_INFO_LTE_SUBFRAMENUM_ADDR (sizeof(T_zPS_LTE_Island_Ind) + IND_MSG_LTE_ISLAND_ADDR)
2897
2898#define CTRL_INFO_LTE_HARQBUF_ADDR (sizeof(UINT32) + CTRL_INFO_LTE_SUBFRAMENUM_ADDR) //³¤¶È64×Ö½Ú£¬12»ò16¸öÏÂÐÐLTE HARQ BUF BLOCK ADDR£¬Ã¿¸öBLOCK´óС128KB
2899
2900#define CTRL_INFO_UTC_TIME_ADDR ((Z_LTE_P_HARQ_BUF_SIZE>>CPU_SHIFT) + CTRL_INFO_LTE_HARQBUF_ADDR) //sizeof(T_zPs_Phy_UtcInfo)
2901
2902#define CTRL_INFO_UL_PARAM_ADDR (sizeof(T_zPs_Phy_UtcInfo) + CTRL_INFO_UTC_TIME_ADDR) //sizeof(T_zPs_Phy_UlParam)
2903
2904
2905
2906/**************************************************************************
2907 * PSµÄPDU BUFÕ¼ÓÃDDR ¿Õ¼ä *
2908 **************************************************************************/
2909#define MACPDU_BUF_LTE_DDR_ADDR (ICP_DATA_BASE_ADDR<<CPU_SHIFT)
2910
2911/* Á¬Ðø86¸öÏÂÐÐMAC PDU BUF(´ó¿é) */
2912#define DATA_BUF_LTE_LARGE_DLMACPDUBUF_ADDR MACPDU_BUF_LTE_DDR_ADDR
2913
2914/*Á¬Ðø8¸öÉÏÐÐMAC PDU BUF 8*9696 Byte ,ÒÔ80KB¼ÆËã*/
2915#define DATA_BUF_LTE_ULMACPDUBUF0_ADDR (DATA_BUF_LTE_LARGE_DLMACPDUBUF_ADDR + 0xC6F00)//9472*86+256
2916
2917/* ÉÏÐÐPDCP PDU BUF ½öPSʹÓà ---¸ÄΪ¶¯Ì¬ÉêÇ룬²»ÐèÒª */
2918//#define DATA_BUF_LTE_ULPDCPPDUBUF_ADDR (DATA_BUF_LTE_ULMACPDUBUF0_ADDR + 0x13000) //9696*8+256
2919//#define DATA_BUF_LTE_DLPDCPSDUBUF_ADDR (DATA_BUF_LTE_ULPDCPPDUBUF_ADDR + 0x1E100)//15*8200B+16B(padding)
2920
2921#define DATA_BUF_LTE_ULMACPDUBUF0_END_ADDR (DATA_BUF_LTE_ULMACPDUBUF0_ADDR + 0x13000) //9696*8+256
2922
2923
2924//#endif //#if defined(_CHIP_ZX297520) || defined(_CHIP_ZX2804)??
2925
2926/* ÏÂÐÐPDCP SDU BUF */
2927#define DATA_BUF_LTE_DLRLCSDUBUF_ADDR DATA_BUF_LTE_ULMACPDUBUF0_END_ADDR
2928//#define DATA_BUF_LTE_DLRLCSDUBUF_ADDR (DATA_BUF_LTE_ULMACPDUBUF0_ADDR + 0x12900)
2929#define DATA_BUF_LTE_LOGOUTPUT_1SBUF0_ADDR (DATA_BUF_LTE_DLRLCSDUBUF_ADDR + 0xC400)
2930#define DATA_BUF_LTE_LOGOUTPUT_1SBUF1_ADDR (DATA_BUF_LTE_LOGOUTPUT_1SBUF0_ADDR + 0x1000)
2931#define DATA_BUF_LTE_LOGOUTPUT_100MSBUF0_ADDR (DATA_BUF_LTE_LOGOUTPUT_1SBUF1_ADDR + 0x1000)
2932#define DATA_BUF_LTE_LOGOUTPUT_100MSBUF1_ADDR (DATA_BUF_LTE_LOGOUTPUT_100MSBUF0_ADDR + 0x7850)
2933#define DATA_BUF_LTE_LOGOUTPUT_40MSBUF0_ADDR (DATA_BUF_LTE_LOGOUTPUT_100MSBUF1_ADDR + 0x7850)
2934#define DATA_BUF_LTE_LOGOUTPUT_40MSBUF1_ADDR (DATA_BUF_LTE_LOGOUTPUT_40MSBUF0_ADDR + 0x1518)
2935#define DATA_BUF_LTE_LOGOUTPUT_40MSBUF2_ADDR (DATA_BUF_LTE_LOGOUTPUT_40MSBUF1_ADDR + 0x1518)
2936#define DATA_BUF_LTE_LOGOUTPUT_40MSBUF3_ADDR (DATA_BUF_LTE_LOGOUTPUT_40MSBUF2_ADDR + 0x1518)
2937
2938#define ZPS_PHY_LTE_VALID_START_BUFFER_ADDR DATA_BUF_LTE_LARGE_DLMACPDUBUF_ADDR
2939#define ZPS_PHY_LTE_VALID_END_BUFFER_ADDR DATA_BUF_LTE_ULMACPDUBUF0_END_ADDR - 4
2940//#define ZPS_PHY_LTE_VALID_END_BUFFER_ADDR Z_UPLINK_LTE_PDCP_PDU_BASE_ADDR
2941
2942#define DATA_PS_EPHY_UL_DATA_PROTECT_FLAG_ADDR (ZPS_PHY_LTE_VALID_END_BUFFER_ADDR)
2943
2944/* ÏÂÐÐÊý¾ÝÀàÐÍ*/
2945#define ZPS_LTE_DLDATATYPE_PCH 1
2946#define ZPS_LTE_DLDATATYPE_SI0 2
2947#define ZPS_LTE_DLDATATYPE_SI1 4
2948#define ZPS_LTE_DLDATATYPE_PDU 8
2949#define ZPS_LTE_DLDATATYPE_ETWS 16
2950
2951#ifdef BTRUNK_SUPPORT
2952#define ZPS_LTE_GET_TPCHBUF_PTR (PBYTE) DATA_BUF_LTE_TPCH_ADDR
2953#endif
2954
2955#define ZPS_LTE_GET_HFN (*(volatile UINT32 *)(CTRL_INFO_LTE_SUBFRAMENUM_ADDR))
2956
2957#define ZPS_LTE_SET_PS_EPHY_UL_DATA_PROTECT_FLAG (*(volatile UINT32 *)(DATA_PS_EPHY_UL_DATA_PROTECT_FLAG_ADDR) = 0x5a5a5a5a)
2958
2959#define ZPS_PHY_INTER_CORE_SYNC_FLAG (*(volatile UINT32 *)(CTRL_INFO_INTER_CORE_SYNC_ADDR))
2960
2961
2962#endif//#ifndef _OS_WIN
2963
2964#endif /*_PS_EPHY_INTERFACE_H*/