blob: 79f67c9286eb8e45fcbcb0e2a233587f4ad2c3cd [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;
xf.lif2330622024-05-15 18:17:18 -0700137 WORD wphyCfgFlgbackup;
138 WORD padding;
lh9ed821d2023-04-07 01:36:19 -0700139
140}T_zPS_P_ATNV_LTE;
141
142
143typedef struct
144{
145 WORD wValue;/*bitmapÀàÐÍ,ĬÈÏֵΪ0*/
146 WORD wPading[3];
147}T_zPS_P_ATNV_LTEA;
148
149/*AT+ZSET="w_instrument",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]] */
150typedef struct
151{
152 WORD wValue;/*bitmapÀàÐÍ,ĬÈÏֵΪ0*/
153 WORD wPading[3];
154}T_zPS_P_NV_W_INSTRUMENT;
155
156/*AT+ZSET="w_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
157typedef struct
158{
159 WORD wValue;
160 WORD wL1wAtRfcAuxChTest; //WÎïÀí²ãµ¥¸¨Â·²âÊÔģʽ¿ª¹Ø
161 WORD wL1wGsmIntfCSF;//WÒÖÖÆGSM¸ÉÈÅCSFÂ˲¨¿ª¹Ø
162 WORD wPading;
163}T_zPS_P_NV_W_PHYFUNC;
164
165/*AT+ZSET="tds_instrument",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]] */
166typedef struct
167{
168 WORD wValue;
169 WORD wPading[3];
170}T_zPS_P_NV_TDS_INSTRUMENT;
171
172/*AT+ZSET="tds_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
173typedef struct
174{
175 WORD wValue;
176 WORD wPading[3];
177}T_zPS_P_NV_TDS_PHYFUNC;
178
179typedef struct
180{
181 T_zPS_P_NV_W_INSTRUMENT tWInstrument;//wÒDZíÀà¿ØÖÆ¹¦ÄÜ
182 T_zPS_P_NV_W_PHYFUNC tWPhyfunc;//wÎïÀí²ãµ÷ÊÔÀà¿ØÖÆ¹¦ÄÜ
183}T_zPS_P_ATNV_W;
184
185
186typedef struct
187{
188 T_zPS_P_NV_TDS_INSTRUMENT tTdsInstrument;//tds ÒDZíÀà¿ØÖÆ¹¦ÄÜ
189 T_zPS_P_NV_TDS_PHYFUNC tTdsPhyfunc;//tds ÎïÀí²ãµ÷ÊÔÀà¿ØÖÆ¹¦ÄÜ
190 WORD shangDongPsmFlag; /* AT+ZSET="SHANDONG_PSM"[,<n>] ɽ¶«¶¨Öư汾Ïà¹Ø¿ØÖÆ,1´ò¿ª£¬0¹Ø±Õ */
191 WORD wPadding;
192}T_zPS_P_ATNV_TD;
193
194/*AT+ZSET="com_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
195typedef struct
196{
197 WORD wValue;
198 WORD wModelType;//ÐͺŻúÀàÐÍ
199 WORD wPading[2];
200}T_zPS_P_NV_COMMON_PHYFUNC;
201
202typedef struct
203{
204 T_zPS_P_NV_COMMON_PHYFUNC tComPhyFunc;//¸÷ÖÆÊ½¹«¹²¿ØÖƹ¦ÄÜ
205 WORD mtnetTestFlag; /* AT+ZSET="MTNET_TEST"[,<n>] ÈëÍø²âÊÔ¿ØÖÆ£¬1´ò¿ª£¬0 ¹Ø±Õ */
206 WORD wCmccChipTest;/*AT+ZSET="CMCC_CHIP_TEST"[,<n>] ÖÐÒÆÐ¾Æ¬ÈÏÖ¤ÖмȲ»·ûºÏЭÒéÒ²²»·ûºÏÍⳡµÄ´¦Àí¿ª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª,ĬÈÏ0*/
207}T_zPS_P_ATNV_COMMON;
208
209
210typedef struct
211{
212 T_zPS_P_ATNV_LTE tAtNvLte;
xf.lif2330622024-05-15 18:17:18 -0700213 WORD wLtePading[AT_NV_SIZE_WORD_PER_MODE+15 - (sizeof(T_zPS_P_ATNV_LTE)/sizeof(WORD))];
lh9ed821d2023-04-07 01:36:19 -0700214
215 T_zPS_P_ATNV_LTEA tAtNvLtea;
xf.lif2330622024-05-15 18:17:18 -0700216 WORD wLteaPading[AT_NV_SIZE_WORD_PER_MODE-15 - (sizeof(T_zPS_P_ATNV_LTEA)/sizeof(WORD))];
lh9ed821d2023-04-07 01:36:19 -0700217
218 T_zPS_P_ATNV_W tAtNvW;
219 WORD wWPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_W)/sizeof(WORD))];
220
221 T_zPS_P_ATNV_TD tAtNvTd;
222 WORD wTdPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_TD)/sizeof(WORD))];
223
224 T_zPS_P_ATNV_COMMON tAtNvCom;
225 WORD wComPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_COMMON)/sizeof(WORD))];
226
227}T_zPS_P_ATNV;
228/**************************************************************************
229 * È«¾Ö±äÁ¿ÉùÃ÷ *
230 **************************************************************************/
231
232
233#endif /*_PS_PHY_NV_H*/