at_cfg.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /* Copyright (C) 2016 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _AT_CFG_H_
  13. #define _AT_CFG_H_
  14. #include <stdint.h>
  15. #include <stdbool.h>
  16. #include "cfw_config.h"
  17. #include "atr_config.h"
  18. #include "ats_config.h"
  19. #include "osi_compiler.h"
  20. #include "time.h"
  21. #define AT_ALARM OSI_MAKE_TAG('A', 'T', 'A', 'L')
  22. // ///////////////////////////////////////////////////////////////////////
  23. // Gather definition from other ats module
  24. // ///////////////////////////////////////////////////////////////////////
  25. #define AT_GPRS_APN_MAX_LEN 99
  26. #define AT_GPRS_PDPADDR_MAX_LEN 21
  27. #define AT_GPRS_PDPTYPE_MAX_LEN 50
  28. #define AT_GPRS_USR_MAX_LEN 64
  29. #define AT_GPRS_PAS_MAX_LEN 64
  30. #define AT_PDPCID_MIN 1
  31. #define AT_PDPCID_MAX 7
  32. typedef enum
  33. {
  34. cs_gsm,
  35. cs_hex,
  36. cs_ucs2,
  37. cs_gbk, // equals to PCCP 936 char set
  38. cs_ira,
  39. cs_utf8,
  40. cs_COUNT_,
  41. cs_INVALID_ = 0x8F,
  42. } at_chset_t;
  43. typedef enum
  44. {
  45. AT_IND_BATTCHG, // [0,5]
  46. AT_IND_SIGNAL, // [0,5]
  47. AT_IND_SERVICE, // [0,1]
  48. AT_IND_SOUNDER, // [0,1]
  49. AT_IND_MESSAGE, // [0,1]
  50. AT_IND_CALL, // [0,1]
  51. AT_IND_ROAM, // [0,1]
  52. AT_IND_SMSFULL, // [0,1]
  53. AT_IND_COUNT
  54. } atIndicator_t;
  55. typedef struct _AT_Gprs_CidInfo
  56. {
  57. uint8_t uCid;
  58. uint8_t nDLCI;
  59. uint8_t uStateStr[15];
  60. uint8_t uState;
  61. // uint8_t uAutoRspState;
  62. uint8_t nPdpType;
  63. uint8_t nDComp;
  64. uint8_t nHComp;
  65. uint8_t pApn[AT_GPRS_APN_MAX_LEN];
  66. uint8_t pPdpAddr[AT_GPRS_PDPADDR_MAX_LEN];
  67. uint8_t nApnSize;
  68. uint8_t nAuthProt;
  69. uint8_t nPdpAddrSize;
  70. uint8_t uaUsername[AT_GPRS_USR_MAX_LEN];
  71. uint8_t nUsernameSize;
  72. uint8_t uaPassword[AT_GPRS_PAS_MAX_LEN];
  73. uint8_t nPasswordSize;
  74. uint8_t szOperatorName[6 + 1];
  75. #if defined(LTE_NBIOT_SUPPORT) || defined(TEST_INTEGRATE_AP_AT)
  76. uint8_t uPCid; /* */
  77. uint8_t apnacAer;
  78. uint8_t apnacUnit;
  79. uint32_t apnacRate;
  80. #endif
  81. } AT_Gprs_CidInfo;
  82. typedef enum
  83. {
  84. GC_RESULTCODE_PRESENTATION_ENABLE = 0,
  85. GC_RESULTCODE_PRESENTATION_DISABLE
  86. } GC_RESULTCODE_PRESENTATION;
  87. typedef enum
  88. {
  89. GC_RESULTCODE_FORMAT_LIMITED = 0,
  90. GC_RESULTCODE_FORMAT_VERBOSE
  91. } GC_RESULTCODE_FORMAT;
  92. typedef enum
  93. {
  94. GC_COMMANDECHO_MODE_DISABLE = 0,
  95. GC_COMMANDECHO_MODE_ENABLE
  96. } GC_COMMANDECHO_MODE;
  97. typedef struct
  98. {
  99. uint16_t ind_ctrl_mask; // indicator control mask
  100. uint16_t sind_ctrl_mask; // system indicator control mask, for ^SIND command
  101. at_chset_t te_chset;
  102. at_chset_t mt_chset;
  103. } cfg_info_t;
  104. typedef enum
  105. {
  106. PBK_CHARACTER_SET_TRANSPARENT = 0,
  107. PBK_CHARACTER_SET_HEX
  108. } PBK_CHARACTER_SET;
  109. typedef enum
  110. {
  111. PBK_LISTENTRY_CALLER_CPBR = 0,
  112. PBK_LISTENTRY_CALLER_CPBF,
  113. PBK_LISTENTRY_CALLER_CNUM
  114. } PBK_LISTENTRY_CALLER;
  115. typedef struct
  116. {
  117. uint8_t nMode;
  118. uint8_t nMt;
  119. uint8_t nBm;
  120. uint8_t nDs;
  121. uint8_t nBfr;
  122. } AT_CNMI;
  123. typedef struct calibNstParaConfig
  124. {
  125. uint16_t nMode; //0:TXOFF,1:TXON,2:RXOFF,3:RXON
  126. uint16_t nBand;
  127. uint32_t nChannel;
  128. uint16_t nMcsCellID; //TX:MCS, RX:CELLID
  129. int16_t nPower; //TX:txpower, RX:CELLPower
  130. uint16_t nSubcarrierSpacing;
  131. uint16_t nSubcarrierNumber; //0:Tx/1:Rx
  132. uint16_t nSubcarrierPosition; //0:on/1:off
  133. } AT_CALIB_NST;
  134. extern uint32_t sys_nst_config(AT_CALIB_NST *nst_para);
  135. extern int32_t sys_nst_getrssi(void);
  136. extern uint16_t nCalib_StubGetCalibFlag(void);
  137. enum AT_DTR_DATA_BEHAVIOR
  138. {
  139. AT_DTR_DATA_IGNORE,
  140. AT_DTR_DATA_ESCAPE,
  141. AT_DTR_DATA_END
  142. };
  143. typedef struct
  144. {
  145. AT_CNMI sCnmi;
  146. uint8_t nStorage1;
  147. uint8_t nStorage2;
  148. uint8_t nStorage3;
  149. uint8_t nTotal1;
  150. uint8_t nTotal2;
  151. uint8_t nTotal3;
  152. uint8_t nUsed1;
  153. uint8_t nUsed2;
  154. uint8_t nUsed3;
  155. uint8_t nServType;
  156. uint8_t nOverflowCtrl;
  157. uint8_t nOverflowMode;
  158. } at_sms_info_t;
  159. #define NW_PREFERRED_OPERATOR_FORMAT_NUMERIC 2
  160. #define NW_GETPREFERREDOPERATORS_CALLER_READ 0
  161. #define GSM_SET 0
  162. #define UCS2_SET 1
  163. #define INSTANCE 0
  164. #define NONE_INSTANCE 1
  165. #define AT_AUDIO_TEST_HANDSET 0
  166. // 耳机
  167. #define AT_AUDIO_TEST_EARPIECE 1
  168. // 听筒
  169. #define AT_AUDIO_TEST_LOUDSPEAKER 2
  170. // 免提
  171. // ///////////////////////////////////////////////////////////////////////////
  172. // New at global variables
  173. // ///////////////////////////////////////////////////////////////////////////
  174. // sms related settings
  175. typedef struct at_sms_setting
  176. {
  177. uint8_t csmpFo;
  178. uint8_t csdhShow; // show header
  179. at_sms_info_t smsInfo[CONFIG_NUMBER_OF_SIM]; // CPMS命令相关的存储器信息
  180. uint8_t smsFormat; // SMS Foramt: 0: PDU 1:text
  181. } at_sms_setting_t;
  182. typedef enum
  183. {
  184. OPERATOR_CMCC = 0,
  185. OPERATOR_UNICOM,
  186. OPERATOR_CTCC
  187. } OPERATOR_NAME;
  188. typedef struct at_tcpip_setting
  189. {
  190. uint8_t cipSCONT_unSaved; //AT+CIPSCONT Save TCPIP Application Context
  191. uint8_t cipMux_multiIp; //AT+CIPMUX Start Up Multi-IP Connection
  192. uint8_t cipHEAD_addIpHead; //AT+CIPHEAD Add an IP Head at the Beginning of a Package Received
  193. uint8_t cipSHOWTP_dispTP; //AT+CIPSHOWTP Display Transfer Protocol in IP Head When Received Data
  194. uint8_t cipSRIP_showIPPort; //AT+CIPSRIP Show Remote IP Address and Port When Received Data
  195. uint8_t cipATS_setTimer; //AT+CIPATS Set Auto Sending Timer
  196. uint8_t cipATS_time;
  197. uint8_t cipSPRT_sendPrompt; //AT+CIPSPRT Set Prompt of > When Module Sends Data
  198. uint8_t cipQSEND_quickSend; //AT+CIPQSEND Select Data Transmitting Mode
  199. uint8_t cipMODE_transParent; //AT+CIPMODE Select TCPIP Application Mode
  200. uint8_t cipCCFG_NmRetry; //AT+CIPCCFG Configure Transparent Transfer Mode
  201. uint8_t cipCCFG_WaitTm;
  202. uint16_t cipCCFG_SendSz;
  203. uint8_t cipCCFG_esc;
  204. uint8_t cipCCFG_Rxmode;
  205. uint16_t cipCCFG_RxSize;
  206. uint16_t cipCCFG_Rxtimer;
  207. uint8_t cipDPDP_detectPDP; //AT+CIPDPDP Set Whether to Check State of GPRS Network Timing
  208. uint8_t cipDPDP_interval;
  209. uint8_t cipDPDP_timer;
  210. uint8_t cipCSGP_setGprs; //AT+CIPCSGP Set CSD or GPRS for Connection Mode
  211. uint16_t cipRDTIMER_rdsigtimer; //AT+CIPRDTIMER Set Remote Delay Timer
  212. uint16_t cipRDTIMER_rdmuxtimer;
  213. uint8_t cipRXGET_manualy; //AT+CIPRXGET Get Data from Network Manually
  214. #if defined(CONFIG_SOC_8811)
  215. uint8_t cipApn[98];
  216. #else
  217. uint8_t cipApn[99];
  218. #endif
  219. uint8_t cipUserName[64];
  220. uint8_t cipPassWord[64];
  221. uint8_t qishowla_showlocaddr;
  222. uint8_t qidnsip_dnsip;
  223. } at_tcpip_setting_t;
  224. // ///////////////////////////////////////////////////////////////////////////
  225. // Macro definition of configuration setttings
  226. // ///////////////////////////////////////////////////////////////////////////
  227. // Flag of switching AT current settings
  228. #define MANUFACTURER_DEFALUT_SETING 0
  229. #define USER_SETTING_1 1
  230. // /////////////////////////////////////////////////////////////////////////////////////////
  231. // Macro to facilitate the use of Current AT settings
  232. // /////////////////////////////////////////////////////////////////////////////////////////
  233. // gc related
  234. #define gATCurrentCSCLK gAtCurrentSetting.csclk
  235. #define gATCurrenteResultcodePresentation gAtCurrentSetting.resultCodePresent
  236. #define gATCurrenteResultcodeFormat gAtCurrentSetting.resultCodeFormat
  237. #define gATCurrentnS3 gAtCurrentSetting.nS3
  238. #define gATCurrentnS4 gAtCurrentSetting.nS4
  239. #define gATCurrentnS5 gAtCurrentSetting.nS5
  240. #define gATCurrentCgreg gAtCurrentSetting.cgreg
  241. #ifdef LTE_NBIOT_SUPPORT
  242. #define gATCurrentCereg gAtCurrentSetting.cereg
  243. #endif
  244. #define gATCurrentCrc gAtCurrentSetting.crc
  245. #define gATCurrentRxfc gAtCurrentSetting.rxfc
  246. #define gATCurrentTxfc gAtCurrentSetting.txfc
  247. #define gATCurrentDtrData gAtCurrentSetting.dtrData
  248. #define gATCurrentIcfFormat gAtCurrentSetting.icfFormat
  249. #define gATCurrentIcfParity gAtCurrentSetting.icfParity
  250. #define gATCurrentSecUartEnable gAtCurrentSetting.secUartEnable
  251. #define gAtCurrentSecUartBaud gAtCurrentSetting.secUartBaud
  252. #define gAtCurrentSecUartIcfFormat gAtCurrentSetting.secUartIcfFormat
  253. #define gAtCurrentSecUartIcfParity gAtCurrentSetting.secUartIcfParity
  254. #define gATCurrentuCmer_ind gAtCurrentSetting.cmerInd
  255. // TODO..
  256. #define gATCurrentCfgInfoInd_ctrl_mask gAtCurrentSetting.cfgInfo.ind_ctrl_mask
  257. #define gATCurrentCfgInfoTe_chset gAtCurrentSetting.cfgInfo.te_chset
  258. #define gATCurrentCfgInfoMt_chset gAtCurrentSetting.cfgInfo.mt_chset
  259. // cc related
  260. #define gATCurrentcc_VTD gAtCurrentSetting.cc_VTD
  261. #define gATCurrentcc_s0 gAtCurrentSetting.cc_s0
  262. // nw related
  263. #define gATCurrentOperFormat gAtAutoSaveSetting.operFormat
  264. #define gATCurrentCOPS_Mode_Temp gAtAutoSaveSetting.copsModeTemp
  265. #define gATCurrentnPreferredOperFormat gAtAutoSaveSetting.preferredOperFormat
  266. #define gATCurrentpArrPreferredOperater gAtAutoSaveSetting.preferredOperator
  267. #define gATCurrentnPreferredOperatorIndex gAtAutoSaveSetting.preferredOperatorIndex
  268. #define gATCurrentnGetPreferredOperatorsCaller gAtAutoSaveSetting.preferredOperatorCaller
  269. #define gATCurrentForcedLpCtrlMode gAtAutoSaveSetting.forcedLpCtrlMode
  270. #ifdef LTE_NBIOT_SUPPORT
  271. #define gATCurrentCscon gAtCurrentSetting.cscon
  272. #define gATCurrentNwEdrxPtw gAtCurrentSetting.edrxPtw
  273. #define gATCurrentNwEdrxValue gAtCurrentSetting.edrxValue
  274. #endif
  275. // pbk related
  276. #define gATCurrentpbkListEntryCaller gAtCurrentSetting.pbkListEntryCaller
  277. #define gATCurrentpbkCharacterSet gAtCurrentSetting.pbkCharacterSet
  278. #define gATCurrentnTempStorage gAtCurrentSetting.tempStorage
  279. // sat related
  280. #define gATCurrentAlphabet gAtCurrentSetting.alphabet
  281. // sms related
  282. #define gATCurrentAtSmsSettingSCSMP_fo gAtCurrentSetting.smsSetting.csmpFo
  283. #define gATCurrentAtSmsSettingSCSDH_show gAtCurrentSetting.smsSetting.csdhShow
  284. #define gATCurrentAtSmsSettingSg_SMSFormat gAtCurrentSetting.smsSetting.smsFormat
  285. #define gATCurrentAtSMSInfo gAtCurrentSetting.smsSetting.smsInfo
  286. // ss related
  287. #define gATCurrentucSsCallWaitingPresentResultCode gAtCurrentSetting.callWaitingPresentResultCode
  288. #define gATCurrentss_ussd gAtCurrentSetting.ussd
  289. #define gATCurrentucClip gAtCurrentSetting.ucClip
  290. #define gATCurrentucClir gAtCurrentSetting.ucClir
  291. #define gATCurrentucColp gAtCurrentSetting.ucColp
  292. #define gATCurrentucCSSU gAtCurrentSetting.ucCSSU
  293. #define gATCurrentucCSSI gAtCurrentSetting.ucCSSI
  294. // special related
  295. #define gATCurrentu8nMONIPara gAtCurrentSetting.moniPara
  296. #define gATCurrentu8nMONPPara gAtCurrentSetting.monpPara
  297. #define gATCurrentnPMIndMark gAtCurrentSetting.pmIndMark
  298. #define gATCurrentVGR_Volume gAtCurrentSetting.vgrVolume
  299. #define gATCurrentVGT_Volume gAtCurrentSetting.vgtVolume
  300. #define gATCurrentCMUT_mute gAtCurrentSetting.cmutMute
  301. #define gATCurrentnAudioTestMode gAtCurrentSetting.audioTestMode
  302. // gprs related
  303. #define gATCurrentu8nURCAuto gAtSetting.gprsAuto
  304. // added by yangtt at 04-18
  305. #define gATCurrentu32nBaudRate gAtCurrentSetting.baudRate
  306. // added by wy at 2017-11-09
  307. #if defined(AT_MODULE_SUPPORT_OTA)
  308. #define gATOtaDataconnProfile gAtAutoSaveSetting.g_OTA_dataconnProfile
  309. #endif
  310. #define g_staAtGprsCidInfo_e gAtSetting.g_staAtGprsCidInfo
  311. #define gATCurrentRAIMode gAtCurrentSetting.RAI_mode
  312. typedef struct
  313. {
  314. bool atv;
  315. bool ate;
  316. bool atq;
  317. uint8_t atx; // not used now
  318. bool crc;
  319. uint8_t s3;
  320. uint8_t s4;
  321. uint8_t s5;
  322. uint8_t cmee;
  323. uint8_t andc;
  324. uint8_t andd;
  325. } atChannelSetting_t;
  326. typedef struct
  327. {
  328. uint8_t creg;
  329. uint8_t cgreg;
  330. uint8_t cereg;
  331. uint8_t cscon;
  332. uint8_t cgerep_mode;
  333. uint8_t cgerep_bfr;
  334. uint8_t clip;
  335. uint8_t clir; // NO_SAVE
  336. uint8_t colp; // NO_SAVE
  337. uint8_t cssu;
  338. uint8_t cssi;
  339. uint8_t ccwa;
  340. uint8_t cgauto;
  341. uint8_t cr;
  342. uint8_t s0;
  343. uint8_t ecsq;
  344. uint8_t csdh;
  345. uint8_t cmgf;
  346. uint8_t cpms_mem1;
  347. uint8_t cpms_mem2;
  348. uint8_t cpms_mem3;
  349. uint8_t cnmi_mode;
  350. uint8_t cnmi_mt;
  351. uint8_t cnmi_bm;
  352. uint8_t cnmi_ds;
  353. uint8_t cnmi_bfr;
  354. uint8_t cind_signal;
  355. uint8_t cind_service;
  356. uint8_t cind_sounder;
  357. uint8_t cind_message;
  358. uint8_t cind_call;
  359. uint8_t cind_roam;
  360. uint8_t cind_smsfull;
  361. uint8_t alphabet; // sta_cs;
  362. uint8_t cops_format; // AUTO_SAVE
  363. uint8_t cops_mode; // AUTO_SAVE
  364. uint8_t cops_oper[6]; // AUTO_SAVE
  365. uint8_t cpol_format; // AUTO_SAVE
  366. uint8_t cpol_index; // AUTO_SAVE
  367. uint8_t cpol_oper[6]; // AUTO_SAVE
  368. uint8_t cops_act; // AUTO_SAVE
  369. uint8_t volte;
  370. uint8_t flight_mode;
  371. uint32_t cfgNvFlag;
  372. } atSimSetting_t;
  373. typedef struct
  374. {
  375. bool userAgnss; // user set a-gnss enable
  376. bool bHslRetryProcess; //handshake lte in progress
  377. bool bGnssResume; // lte abort, user set enable gnss automatic recovery
  378. bool bGnssColdTimer; //cold start timerout 300s
  379. bool bGnssCfg; //gnss start in progress
  380. uint8_t userCidCfg; //user set use cid num
  381. uint8_t simid;
  382. uint8_t start_mode;
  383. uint8_t satellite_type;
  384. uint8_t nsapi;
  385. uint8_t wifiscan_switch;
  386. uint8_t coexist_lte_gnss;
  387. uint16_t gnss_sleep;
  388. uint16_t lte_sleep;
  389. uint16_t output_format;
  390. uint16_t r_mode;
  391. uint32_t time_interval;
  392. } atLocSetting_t;
  393. typedef struct
  394. {
  395. uint8_t bEnable;
  396. uint8_t reportPeriod;
  397. uint8_t detectPeriod;
  398. int16_t rssiThresholdLte;
  399. int16_t rsrpThreshold;
  400. int16_t rsrqThreshold;
  401. int16_t rssiThreshold;
  402. int16_t snrThreshold;
  403. uint16_t minCh;
  404. } atJammingDetectSetting_t;
  405. // &W_SAVE
  406. typedef struct
  407. {
  408. uint8_t profile;
  409. uint8_t ifc_rx;
  410. uint8_t ifc_tx;
  411. uint8_t icf_format;
  412. uint8_t icf_parity;
  413. uint32_t ipr;
  414. uint8_t cmer_mode;
  415. uint8_t cmer_ind;
  416. uint8_t csclk;
  417. uint8_t cscs;
  418. uint8_t vtd;
  419. uint8_t ctzu;
  420. uint8_t ctzr;
  421. uint8_t csdf_mode;
  422. uint8_t csdf_auxmode;
  423. uint8_t cind_battchg;
  424. int8_t timezone; // AUTO_SAVE
  425. uint8_t timezone_dst; // AUTO_SAVE
  426. uint8_t bcchmode; // AUTO_SAVE
  427. AT_Gprs_CidInfo g_staAtGprsCidInfo[CONFIG_NUMBER_OF_SIM][AT_PDPCID_MAX + 1]; // AUTO_SAVE
  428. uint8_t gprsAuto;
  429. uint8_t tempStorage;
  430. uint8_t drx_mode;
  431. uint8_t callmode;
  432. uint8_t smsmode;
  433. atChannelSetting_t chsetting;
  434. atSimSetting_t sim[CONFIG_NUMBER_OF_SIM];
  435. uint8_t self_register;
  436. uint8_t psm_mode;
  437. uint8_t mcuNotifySleepMode;
  438. uint32_t mcuNotifySleepDelayMs;
  439. uint8_t csta;
  440. uint8_t csvm;
  441. uint8_t detectMBS;
  442. uint8_t virtual_sim_card[CONFIG_NUMBER_OF_SIM];
  443. uint8_t cireg[CONFIG_NUMBER_OF_SIM];
  444. uint8_t CgClassType[CONFIG_NUMBER_OF_SIM];
  445. uint8_t poc_user_sim;
  446. uint8_t ipinfo; // AUTO_SAVE
  447. uint8_t concatMsg;
  448. uint32_t usr_ipr;
  449. atJammingDetectSetting_t jammingDetectSetting[CONFIG_NUMBER_OF_SIM];
  450. uint16_t pm2idletime;
  451. uint8_t nLockedFrequencyBand[CONFIG_NUMBER_OF_SIM];
  452. atLocSetting_t loc;
  453. uint8_t usr_icf_format;
  454. uint8_t usr_icf_parity;
  455. uint8_t stk_work_mode;
  456. uint8_t smc_count;
  457. uint8_t smr_count;
  458. uint32_t cus_urc_flag;
  459. uint8_t bUseISIM;
  460. uint8_t NWClockUpdate;
  461. uint8_t npsmr_setting;
  462. uint8_t csclk_bakup; //csclk bakup
  463. } atSetting_t;
  464. extern atSetting_t gAtSetting;
  465. #ifdef CONFIG_QUEC_PROJECT_FEATURE
  466. extern atSetting_t gAtSettingSave;
  467. #endif
  468. /**
  469. * global variable to be used in core engine
  470. *
  471. * These variables are used in core engine. To avoid multiple
  472. * version of core libraries, the variable rather than macros
  473. * are used in core library.
  474. */
  475. struct atCmdDesc;
  476. extern const bool gAtEchoCommandOnly;
  477. extern const bool gAtCmdTplusEnable;
  478. extern const bool gAtEchoWithoutCRLF;
  479. extern const struct atCmdDesc gAtTplusCmdDesc;
  480. extern const bool gAtUrcBuffEnable;
  481. extern const unsigned gAtUrcBuffSize;
  482. extern const unsigned gAtUrcBuffCount;
  483. extern const unsigned gAtCmdlineMax;
  484. extern const unsigned gAtLfWaitMs;
  485. extern const unsigned gAtCmuxOutBuffSize;
  486. extern const unsigned gAtCmuxInBuffSize;
  487. extern const unsigned gAtCmuxSubMinInBuffSize;
  488. extern const unsigned gAtCmuxDlcNum;
  489. extern const unsigned gAtDataBuffSize;
  490. extern const unsigned gAtPppEndCheckTimeout;
  491. extern const unsigned gAtCmdWorkerStackSize;
  492. void atCfgInit(void);
  493. bool at_CfgLoadTcpipSetting(at_tcpip_setting_t *setting);
  494. bool at_CfgStoreTcpipSetting(at_tcpip_setting_t *setting);
  495. bool atCfgSave(uint8_t profile, const atChannelSetting_t *chsetting);
  496. bool atCfgAutoSave(void);
  497. bool atCfgGlobalSave(void);
  498. bool atCfgResetFactory(atChannelSetting_t *chsetting);
  499. bool atCfgResetProfile(uint8_t profile, atChannelSetting_t *chsetting);
  500. #endif