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