blob: 5bc1ddc73910656cdf1fdb5514985a3194376e0e [file] [log] [blame]
/*****************************************************************************
*°æ±¾ËùÓÐ (C)2009ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾
* Ä£¿éÃû £ºps_phy_nv½Ó¿Ú¶¨Òå
* ÎļþÃû £ºps_phy_nv.h
* Îļþ±êʶ£º
* Ïà¹ØÎļþ£ºLTEЭÒéÕ»ÓëLTEÎïÀí²ãÖ®¼äATÃüÁî¸ÄNVÖµ½Ó¿Ú
* ʵÏÖ¹¦ÄÜ£ºATÃüÁî½á¹¹Ìå
* ×÷Õß £º
* °æ±¾ £ºV1.0
* Íê³ÉÈÕÆÚ£º2015-11-09
* ÆäËü˵Ã÷£ºÐ½¨
*****************************************************************************/
#ifndef _PS_PHY_NV_H
#define _PS_PHY_NV_H
/**************************************************************************
* Í·Îļþ°üº¬ *
**************************************************************************/
/**************************************************************************
* ºê¶¨Òå *
**************************************************************************/
#define AT_NV_SIZE_WORD_PER_MODE 32
/**************************************************************************
* È«¾ÖÊý¾Ý½á¹¹ÉùÃ÷ *
**************************************************************************/
/* AT+ZSET="csiup"[[<csiupflag>],[<wPading>]] */
typedef struct
{
WORD wFlg; /* 1:ÏòÉÏÈ¡Õû£»elseÏòÏÂÈ¡Õû */
WORD wPading;
}T_zPS_LTE_P_NV_CSI_UPCALC;
/* AT+ZSET="csrhobandflg"[[<csrhobandflg>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
typedef struct
{
WORD wFlg; /* 1:Åжϴø¿í£»else²»Åжϴø¿í */
WORD wPading[3]; /*wPading[0]=1ʱ±íʾ½øÐвâÁ¿Öµ²¹³¥(²¹³¥µÄ´óСÓÉwPading[1]¾ö¶¨); wPading[0]=2±íʾ¸¨Ä£Ò»Ö±Æô¶¯²âÁ¿*/
}T_zPS_LTE_P_NV_CSR_HANDOVER;
/* AT+ZSET="dlparaflg"[[<dlparaflg>],[<wPading>]] */
typedef struct
{
WORD wFlg; /* 1:cfo Â˲¨Òò×ÓΪ0.2(¸ßÌúÐŵÀ)£¬else 0.05 */
WORD wPading;
}T_zPS_LTE_P_NV_DL_CFO;
/* AT+ZSET="ulparafixtamode"[[<ulparafixtamode>],[<wPading>]] */
typedef struct
{
WORD wFlg; /* 1:°²ÀûÒDZífixta ·½Ê½£¬else °²½ÝÂ×ÒDZífixta·½Ê½ */
WORD wPading;
}T_zPS_LTE_P_NV_ANLI_ANJIELUN_ULFIXTA;
/* AT+ZSET="ulpara711flg"[[<ulpara711flg>],[<wPading>]] */
typedef struct
{
WORD wFlg; /* 1:711 ¸ß¼¶×®¿ª£¬else 711 ¸ß¼¶×®¹Ø */
WORD wPading;
}T_zPS_LTE_P_NV_711STUBFLAG;
/* AT+ZSET="csrpssbinflg"[[<csrpssbinflg>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
typedef struct
{
WORD wFlg; /* 1:PssʹÓÃ3·bin£»else PssʹÓÃ1·bin*/
WORD wPading[3];
}T_zPS_LTE_P_NV_CSR_PSSBIN;
/* AT+ZSET="csiiot"[[<csiiotflg>],[<wPading>]]*/
typedef struct
{
WORD wFlg; /* 1´ò¿ªIot²¹¶¡£»0¹Ø±Õ*/
WORD wPading;
}T_zPS_LTE_P_NV_CSI_IOT;
/* AT+ZSET="rfparaflag"[[<rfparaflag1>],[<rfparaflag2>],[<wPading1>],[<wPading2>]]*/
typedef struct
{
WORD wFlg; /*0:Double Ant;1:Single Main Ant;2:SIngle Aux Ant*/
WORD wAutoSingleAntEn; /*0:Enable Auto SIngle Ant;1:Disable Auto Single Ant*/
WORD wRFICM0GcfFlag; /*1:GCF Version; else:FAHUO Version*/
WORD wPading;
}T_zPS_LTE_P_NV_RFC_CFG;
/* AT+ZSET="UlpowerAdapter"[[<UlpowerAdapterflg>],[<wPading>]]*/
typedef struct
{
WORD wFlg; /* 1´ò¿ªIot²¹¶¡£»0¹Ø±Õ*/
WORD wPading;
}T_zPS_LTE_P_NV_UL_Power_Adapter_FLAG;
typedef struct
{
WORD wPBackoff;
WORD wMaxBackoff ;
WORD wTup;
WORD wTdown;
WORD wStepTimer;
}T_zPS_LTE_P_UL_MaxPower_Backoff;
typedef struct
{
/* UlMaxpowerBackoff*/
T_zPS_LTE_P_UL_MaxPower_Backoff UlMaxpowerBackoff[2];
}T_zPS_LTE_P_NV_UL_MaxPower_Backoff_FLAG;
typedef struct
{
WORD wStrayAMPREnable;
WORD wStrayAMPRValue;
WORD wImsi[3];
WORD padding;
}T_zPS_LTE_P_NV_STRAY_AMPR;
typedef struct
{
T_zPS_LTE_P_NV_CSI_UPCALC tCsiUpCalc;
T_zPS_LTE_P_NV_CSR_HANDOVER tCsrHandoverFlag;
T_zPS_LTE_P_NV_DL_CFO tCfoFilterFlag;
T_zPS_LTE_P_NV_ANLI_ANJIELUN_ULFIXTA tAnliAnjielunFixTaMode;
T_zPS_LTE_P_NV_711STUBFLAG t711StubFlg;
T_zPS_LTE_P_NV_CSR_PSSBIN tCsrPssBinFlag;
T_zPS_LTE_P_NV_CSI_IOT tCsiIot;
T_zPS_LTE_P_NV_RFC_CFG tRfcParaCfg;
T_zPS_LTE_P_NV_UL_Power_Adapter_FLAG tUlpowerAdapterFlg;
WORD wPsmTest;/*AT+ZSET="PSM_TEST"[,<n>] Ê¡µç²âÊÔ¿ª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª,ĬÈÏΪ0*/
WORD wCat;/*AT+ZLTECATÉèÖÃÎïÀí²ãÖ§³ÖµÄCAT, ȡֵ1-8£¬Ä¬ÈÏΪ4,ÄÚ²¿ÃüÁî²»¶ÔÍ⿪·Å*/
WORD voltePowerSave;
WORD wphyCfgFlg;/*AT+ZSET="phyCfg"[,<n>]ÎïÀí²ã¹¦ÄÜÅäÖã¬bit1:²âÁ¿²ßÂÔ´ò¿ª£¬bit2:ѰºôÏÂÒÆ´ò¿ª£¬bit3:RFµ¥ÌìÏß½ÓÊÕ¿ª¹Ø,bitλ 0:¹Ø±Õ£¬1:´ò¿ª£¬Ä¬ÈÏ0*/
T_zPS_LTE_P_NV_UL_MaxPower_Backoff_FLAG tUlMaxpowerBackoffFlg;
T_zPS_LTE_P_NV_STRAY_AMPR tUlNvStrayAmpr;
}T_zPS_P_ATNV_LTE;
typedef struct
{
WORD wValue;/*bitmapÀàÐÍ,ĬÈÏֵΪ0*/
WORD wPading[3];
}T_zPS_P_ATNV_LTEA;
/*AT+ZSET="w_instrument",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]] */
typedef struct
{
WORD wValue;/*bitmapÀàÐÍ,ĬÈÏֵΪ0*/
WORD wPading[3];
}T_zPS_P_NV_W_INSTRUMENT;
/*AT+ZSET="w_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
typedef struct
{
WORD wValue;
WORD wL1wAtRfcAuxChTest; //WÎïÀí²ãµ¥¸¨Â·²âÊÔģʽ¿ª¹Ø
WORD wL1wGsmIntfCSF;//WÒÖÖÆGSM¸ÉÈÅCSFÂ˲¨¿ª¹Ø
WORD wPading;
}T_zPS_P_NV_W_PHYFUNC;
/*AT+ZSET="tds_instrument",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]] */
typedef struct
{
WORD wValue;
WORD wPading[3];
}T_zPS_P_NV_TDS_INSTRUMENT;
/*AT+ZSET="tds_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
typedef struct
{
WORD wValue;
WORD wPading[3];
}T_zPS_P_NV_TDS_PHYFUNC;
typedef struct
{
T_zPS_P_NV_W_INSTRUMENT tWInstrument;//wÒDZíÀà¿ØÖÆ¹¦ÄÜ
T_zPS_P_NV_W_PHYFUNC tWPhyfunc;//wÎïÀí²ãµ÷ÊÔÀà¿ØÖÆ¹¦ÄÜ
}T_zPS_P_ATNV_W;
typedef struct
{
T_zPS_P_NV_TDS_INSTRUMENT tTdsInstrument;//tds ÒDZíÀà¿ØÖÆ¹¦ÄÜ
T_zPS_P_NV_TDS_PHYFUNC tTdsPhyfunc;//tds ÎïÀí²ãµ÷ÊÔÀà¿ØÖÆ¹¦ÄÜ
WORD shangDongPsmFlag; /* AT+ZSET="SHANDONG_PSM"[,<n>] ɽ¶«¶¨Öư汾Ïà¹Ø¿ØÖÆ,1´ò¿ª£¬0¹Ø±Õ */
WORD wPadding;
}T_zPS_P_ATNV_TD;
/*AT+ZSET="com_phyfunc",[[<wValue>],[<wPading1>],[<wPading2>],[<wPading3>]]*/
typedef struct
{
WORD wValue;
WORD wModelType;//ÐͺŻúÀàÐÍ
WORD wPading[2];
}T_zPS_P_NV_COMMON_PHYFUNC;
typedef struct
{
T_zPS_P_NV_COMMON_PHYFUNC tComPhyFunc;//¸÷ÖÆÊ½¹«¹²¿ØÖƹ¦ÄÜ
WORD mtnetTestFlag; /* AT+ZSET="MTNET_TEST"[,<n>] ÈëÍø²âÊÔ¿ØÖÆ£¬1´ò¿ª£¬0 ¹Ø±Õ */
WORD wCmccChipTest;/*AT+ZSET="CMCC_CHIP_TEST"[,<n>] ÖÐÒÆÐ¾Æ¬ÈÏÖ¤ÖмȲ»·ûºÏЭÒéÒ²²»·ûºÏÍⳡµÄ´¦Àí¿ª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª,ĬÈÏ0*/
}T_zPS_P_ATNV_COMMON;
typedef struct
{
T_zPS_P_ATNV_LTE tAtNvLte;
WORD wLtePading[AT_NV_SIZE_WORD_PER_MODE+13 - (sizeof(T_zPS_P_ATNV_LTE)/sizeof(WORD))];
T_zPS_P_ATNV_LTEA tAtNvLtea;
WORD wLteaPading[AT_NV_SIZE_WORD_PER_MODE-13 - (sizeof(T_zPS_P_ATNV_LTEA)/sizeof(WORD))];
T_zPS_P_ATNV_W tAtNvW;
WORD wWPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_W)/sizeof(WORD))];
T_zPS_P_ATNV_TD tAtNvTd;
WORD wTdPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_TD)/sizeof(WORD))];
T_zPS_P_ATNV_COMMON tAtNvCom;
WORD wComPading[AT_NV_SIZE_WORD_PER_MODE - (sizeof(T_zPS_P_ATNV_COMMON)/sizeof(WORD))];
}T_zPS_P_ATNV;
/**************************************************************************
* È«¾Ö±äÁ¿ÉùÃ÷ *
**************************************************************************/
#endif /*_PS_PHY_NV_H*/