blob: 5bc1ddc73910656cdf1fdb5514985a3194376e0e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*****************************************************************************
2 *°æ±¾ËùÓÐ (C)2009ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾
3 * Ä£¿éÃû £ºps_phy_nv½Ó¿Ú¶¨Òå
4 * ÎļþÃû £ºps_phy_nv.h
5 * Îļþ±êʶ£º
6 * Ïà¹ØÎļþ£ºLTEЭÒéÕ»ÓëLTEÎïÀí²ãÖ®¼äATÃüÁî¸ÄNVÖµ½Ó¿Ú
7 * ʵÏÖ¹¦ÄÜ£ºATÃüÁî½á¹¹Ìå
8 * ×÷Õß £º
9 * °æ±¾ £ºV1.0
10 * Íê³ÉÈÕÆÚ£º2015-11-09
11 * ÆäËü˵Ã÷£ºÐ½¨
12 *****************************************************************************/
13#ifndef _PS_PHY_NV_H
14#define _PS_PHY_NV_H
15
16/**************************************************************************
17 * Í·Îļþ°üº¬ *
18 **************************************************************************/
19
20
21/**************************************************************************
22 * ºê¶¨Òå *
23 **************************************************************************/
24#define AT_NV_SIZE_WORD_PER_MODE 32
25
26/**************************************************************************
27 * È«¾ÖÊý¾Ý½á¹¹ÉùÃ÷ *
28 **************************************************************************/
29
30/* AT+ZSET="csiup"[[<csiupflag>],[<wPading>]] */
31typedef struct
32{
33 WORD wFlg; /* 1:ÏòÉÏÈ¡Õû£»elseÏòÏÂÈ¡Õû */
34 WORD wPading;
35}T_zPS_LTE_P_NV_CSI_UPCALC;
36
37/* AT+ZSET="csrhobandflg"[[<csrhobandflg>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
38typedef struct
39{
40 WORD wFlg; /* 1:Åжϴø¿í£»else²»Åжϴø¿í */
41 WORD wPading[3]; /*wPading[0]=1ʱ±íʾ½øÐвâÁ¿Öµ²¹³¥(²¹³¥µÄ´óСÓÉwPading[1]¾ö¶¨); wPading[0]=2±íʾ¸¨Ä£Ò»Ö±Æô¶¯²âÁ¿*/
42}T_zPS_LTE_P_NV_CSR_HANDOVER;
43
44/* AT+ZSET="dlparaflg"[[<dlparaflg>],[<wPading>]] */
45typedef struct
46{
47 WORD wFlg; /* 1:cfo Â˲¨Òò×ÓΪ0.2(¸ßÌúÐŵÀ)£¬else 0.05 */
48 WORD wPading;
49}T_zPS_LTE_P_NV_DL_CFO;
50
51/* AT+ZSET="ulparafixtamode"[[<ulparafixtamode>],[<wPading>]] */
52typedef struct
53{
54 WORD wFlg; /* 1:°²ÀûÒDZífixta ·½Ê½£¬else °²½ÝÂ×ÒDZífixta·½Ê½ */
55 WORD wPading;
56}T_zPS_LTE_P_NV_ANLI_ANJIELUN_ULFIXTA;
57
58/* AT+ZSET="ulpara711flg"[[<ulpara711flg>],[<wPading>]] */
59typedef struct
60{
61 WORD wFlg; /* 1:711 ¸ß¼¶×®¿ª£¬else 711 ¸ß¼¶×®¹Ø */
62 WORD wPading;
63}T_zPS_LTE_P_NV_711STUBFLAG;
64
65/* AT+ZSET="csrpssbinflg"[[<csrpssbinflg>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
66typedef struct
67{
68 WORD wFlg; /* 1:PssʹÓÃ3·bin£»else PssʹÓÃ1·bin*/
69 WORD wPading[3];
70}T_zPS_LTE_P_NV_CSR_PSSBIN;
71
72/* AT+ZSET="csiiot"[[<csiiotflg>],[<wPading>]]*/
73typedef struct
74{
75 WORD wFlg; /* 1´ò¿ªIot²¹¶¡£»0¹Ø±Õ*/
76 WORD wPading;
77}T_zPS_LTE_P_NV_CSI_IOT;
78
79/* AT+ZSET="rfparaflag"[[<rfparaflag1>],[<rfparaflag2>],[<wPading1>],[<wPading2>]]*/
80typedef struct
81{
82 WORD wFlg; /*0:Double Ant;1:Single Main Ant;2:SIngle Aux Ant*/
83 WORD wAutoSingleAntEn; /*0:Enable Auto SIngle Ant;1:Disable Auto Single Ant*/
84 WORD wRFICM0GcfFlag; /*1:GCF Version; else:FAHUO Version*/
85 WORD wPading;
86}T_zPS_LTE_P_NV_RFC_CFG;
87
88/* AT+ZSET="UlpowerAdapter"[[<UlpowerAdapterflg>],[<wPading>]]*/
89typedef struct
90{
91 WORD wFlg; /* 1´ò¿ªIot²¹¶¡£»0¹Ø±Õ*/
92 WORD wPading;
93}T_zPS_LTE_P_NV_UL_Power_Adapter_FLAG;
94
95typedef struct
96{
97 WORD wPBackoff;
98 WORD wMaxBackoff ;
99 WORD wTup;
100 WORD wTdown;
101 WORD wStepTimer;
102}T_zPS_LTE_P_UL_MaxPower_Backoff;
103
104typedef struct
105{
106 /* UlMaxpowerBackoff*/
107 T_zPS_LTE_P_UL_MaxPower_Backoff UlMaxpowerBackoff[2];
108}T_zPS_LTE_P_NV_UL_MaxPower_Backoff_FLAG;
109
110typedef struct
111{
112 WORD wStrayAMPREnable;
113 WORD wStrayAMPRValue;
114 WORD wImsi[3];
115 WORD padding;
116}T_zPS_LTE_P_NV_STRAY_AMPR;
117
118
119
120typedef struct
121{
122 T_zPS_LTE_P_NV_CSI_UPCALC tCsiUpCalc;
123 T_zPS_LTE_P_NV_CSR_HANDOVER tCsrHandoverFlag;
124 T_zPS_LTE_P_NV_DL_CFO tCfoFilterFlag;
125 T_zPS_LTE_P_NV_ANLI_ANJIELUN_ULFIXTA tAnliAnjielunFixTaMode;
126 T_zPS_LTE_P_NV_711STUBFLAG t711StubFlg;
127 T_zPS_LTE_P_NV_CSR_PSSBIN tCsrPssBinFlag;
128 T_zPS_LTE_P_NV_CSI_IOT tCsiIot;
129 T_zPS_LTE_P_NV_RFC_CFG tRfcParaCfg;
130 T_zPS_LTE_P_NV_UL_Power_Adapter_FLAG tUlpowerAdapterFlg;
131 WORD wPsmTest;/*AT+ZSET="PSM_TEST"[,<n>] Ê¡µç²âÊÔ¿ª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª,ĬÈÏΪ0*/
132 WORD wCat;/*AT+ZLTECATÉèÖÃÎïÀí²ãÖ§³ÖµÄCAT, ȡֵ1-8£¬Ä¬ÈÏΪ4,ÄÚ²¿ÃüÁî²»¶ÔÍ⿪·Å*/
133 WORD voltePowerSave;
134 WORD wphyCfgFlg;/*AT+ZSET="phyCfg"[,<n>]ÎïÀí²ã¹¦ÄÜÅäÖã¬bit1:²âÁ¿²ßÂÔ´ò¿ª£¬bit2:ѰºôÏÂÒÆ´ò¿ª£¬bit3:RFµ¥ÌìÏß½ÓÊÕ¿ª¹Ø,bitλ 0:¹Ø±Õ£¬1:´ò¿ª£¬Ä¬ÈÏ0*/
135 T_zPS_LTE_P_NV_UL_MaxPower_Backoff_FLAG tUlMaxpowerBackoffFlg;
136 T_zPS_LTE_P_NV_STRAY_AMPR tUlNvStrayAmpr;
137
138}T_zPS_P_ATNV_LTE;
139
140
141typedef struct
142{
143 WORD wValue;/*bitmapÀàÐÍ,ĬÈÏֵΪ0*/
144 WORD wPading[3];
145}T_zPS_P_ATNV_LTEA;
146
147/*AT+ZSET="w_instrument",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]] */
148typedef struct
149{
150 WORD wValue;/*bitmapÀàÐÍ,ĬÈÏֵΪ0*/
151 WORD wPading[3];
152}T_zPS_P_NV_W_INSTRUMENT;
153
154/*AT+ZSET="w_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
155typedef struct
156{
157 WORD wValue;
158 WORD wL1wAtRfcAuxChTest; //WÎïÀí²ãµ¥¸¨Â·²âÊÔģʽ¿ª¹Ø
159 WORD wL1wGsmIntfCSF;//WÒÖÖÆGSM¸ÉÈÅCSFÂ˲¨¿ª¹Ø
160 WORD wPading;
161}T_zPS_P_NV_W_PHYFUNC;
162
163/*AT+ZSET="tds_instrument",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]] */
164typedef struct
165{
166 WORD wValue;
167 WORD wPading[3];
168}T_zPS_P_NV_TDS_INSTRUMENT;
169
170/*AT+ZSET="tds_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
171typedef struct
172{
173 WORD wValue;
174 WORD wPading[3];
175}T_zPS_P_NV_TDS_PHYFUNC;
176
177typedef struct
178{
179 T_zPS_P_NV_W_INSTRUMENT tWInstrument;//wÒDZíÀà¿ØÖÆ¹¦ÄÜ
180 T_zPS_P_NV_W_PHYFUNC tWPhyfunc;//wÎïÀí²ãµ÷ÊÔÀà¿ØÖÆ¹¦ÄÜ
181}T_zPS_P_ATNV_W;
182
183
184typedef struct
185{
186 T_zPS_P_NV_TDS_INSTRUMENT tTdsInstrument;//tds ÒDZíÀà¿ØÖÆ¹¦ÄÜ
187 T_zPS_P_NV_TDS_PHYFUNC tTdsPhyfunc;//tds ÎïÀí²ãµ÷ÊÔÀà¿ØÖÆ¹¦ÄÜ
188 WORD shangDongPsmFlag; /* AT+ZSET="SHANDONG_PSM"[,<n>] ɽ¶«¶¨Öư汾Ïà¹Ø¿ØÖÆ,1´ò¿ª£¬0¹Ø±Õ */
189 WORD wPadding;
190}T_zPS_P_ATNV_TD;
191
192/*AT+ZSET="com_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
193typedef struct
194{
195 WORD wValue;
196 WORD wModelType;//ÐͺŻúÀàÐÍ
197 WORD wPading[2];
198}T_zPS_P_NV_COMMON_PHYFUNC;
199
200typedef struct
201{
202 T_zPS_P_NV_COMMON_PHYFUNC tComPhyFunc;//¸÷ÖÆÊ½¹«¹²¿ØÖƹ¦ÄÜ
203 WORD mtnetTestFlag; /* AT+ZSET="MTNET_TEST"[,<n>] ÈëÍø²âÊÔ¿ØÖÆ£¬1´ò¿ª£¬0 ¹Ø±Õ */
204 WORD wCmccChipTest;/*AT+ZSET="CMCC_CHIP_TEST"[,<n>] ÖÐÒÆÐ¾Æ¬ÈÏÖ¤ÖмȲ»·ûºÏЭÒéÒ²²»·ûºÏÍⳡµÄ´¦Àí¿ª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª,ĬÈÏ0*/
205}T_zPS_P_ATNV_COMMON;
206
207
208typedef struct
209{
210 T_zPS_P_ATNV_LTE tAtNvLte;
211 WORD wLtePading[AT_NV_SIZE_WORD_PER_MODE+13 - (sizeof(T_zPS_P_ATNV_LTE)/sizeof(WORD))];
212
213 T_zPS_P_ATNV_LTEA tAtNvLtea;
214 WORD wLteaPading[AT_NV_SIZE_WORD_PER_MODE-13 - (sizeof(T_zPS_P_ATNV_LTEA)/sizeof(WORD))];
215
216 T_zPS_P_ATNV_W tAtNvW;
217 WORD wWPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_W)/sizeof(WORD))];
218
219 T_zPS_P_ATNV_TD tAtNvTd;
220 WORD wTdPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_TD)/sizeof(WORD))];
221
222 T_zPS_P_ATNV_COMMON tAtNvCom;
223 WORD wComPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_COMMON)/sizeof(WORD))];
224
225}T_zPS_P_ATNV;
226/**************************************************************************
227 * È«¾Ö±äÁ¿ÉùÃ÷ *
228 **************************************************************************/
229
230
231#endif /*_PS_PHY_NV_H*/