[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/cp/ps/modem/tools/inc/CpTrace.h b/cp/ps/modem/tools/inc/CpTrace.h
new file mode 100644
index 0000000..fd65c8e
--- /dev/null
+++ b/cp/ps/modem/tools/inc/CpTrace.h
@@ -0,0 +1,124 @@
+/**

+ * 

+ * @file      CpTrace.h

+ * @brief     

+ *            This file is part of tools.

+ *            ZCAT¹¤¾ßCp²àlog¸ú×Ù½Ó¿Ú

+ *            

+ * @details   

+ * @author    Tools Team.

+ * @email     

+ * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.

+ * @warning   

+ * @date      2019/02/02

+ * @version   1.1

+ * @pre       

+ * @post      

+ *            

+ * @par       

+ * Change History :

+ * ---------------------------------------------------------------------------

+ * date        version  author         description

+ * ---------------------------------------------------------------------------

+ * 2013/01/14  1.0      lu.xieji       Create file

+ * 2019/02/02  1.1      jiang.fenglin  ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen

+ * ---------------------------------------------------------------------------

+ * 

+ * 

+ */

+

+#ifndef CPTRACE_H_

+#define CPTRACE_H_

+

+// PSÒì³£´òÓ¡¼¶±ð

+#define PS_EXCEPTION_LEVEL_NORMAL (0x01)    /* Ò»°ã¼¶±ð */

+#define PS_EXCEPTION_LEVEL_SEVERE (0x02)    /* ÑÏÖØ¼¶±ð */

+#define PS_EXCEPTION_LEVEL_DEBUG  (0x04)    /* µ÷ÊÔ¼¶±ð */

+

+#define TRACE_ERR_LEVEL_NORMAL    PS_EXCEPTION_LEVEL_NORMAL

+#define TRACE_ERR_LEVEL_SEVERE    PS_EXCEPTION_LEVEL_SEVERE

+#define TRACE_ERR_LEVEL_DEBUG     PS_EXCEPTION_LEVEL_DEBUG

+

+typedef struct

+{

+    BYTE	      StackIndex; // 1:ЭÒéÕ»1, 2:ЭÒéÕ»

+    ZOSS_TASK_ID  Taskid;

+    BYTE          ModelId;  

+    DWORD         Errcode;

+    DWORD         RecvMsgId;

+    DWORD         SendMsgId;

+    BYTE          State ;	 

+    WORD          MsgLen;

+    char         *pMsgBuf;

+    BYTE          bErrLevel;

+} T_PsException_MsgHead;

+

+typedef struct

+{

+    BYTE	     StackIndex; // 1:ЭÒéÕ»1,2:ЭÒéÕ»

+    ZOSS_TASK_ID SrcTaskID;

+    ZOSS_TASK_ID DestTaskID;

+    BYTE         bSrcModID;

+    BYTE         bDestModID;

+    DWORD        MsgID;	

+    BYTE         Direct; // Ä£¿é¼äÏûÏ¢µÄ·½Ïò£¬0: ·¢ËÍ 1: ½ÓÊÕ  

+    WORD         MsgLen;

+    char        *pMsgBuf; 

+}T_PsModMsgInfoHead;

+

+/**

+ * @brief »ñÈ¡PSÒì³£ÏûÏ¢LOG¹ýÂ˹æÔò

+ * @return µ÷ÊÔ, ½ô¼±, Ò»°ã 

+ * @note

+ * @see 

+ */

+UINT8 zCatAgt_PsException_GetLevelFilter(VOID);

+

+/**

+ * @brief ÊÇ·ñ¸ú×ÙPSЭÒéÕ»Ô­ÓïLOG

+ * @return true zCAT¸ú×ÙЭÒéÕ»Ô­Óï          \n

+          false zCATδ¸ú×ÙЭÒéÕ»Ô­Óï(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªÔ­Óï´°¿Ú)

+ * @note

+ * @see 

+ */

+BOOL zCatAgt_IsPsOrigTraced(VOID);

+

+/**

+ * @brief ÅжÏPSÒì³£ÏûÏ¢LOGÊÇ·ñ¸ú×Ù

+ * @return true  zCAT¸ú×ÙЭÒéÕ»Òì³£  

+ *        false  zCATδ¸ú×ÙЭÒéÕ»Òì³£(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªÒì³£´°¿Ú)

+ * @note

+ * @see 

+ */

+BOOL zCatAgt_IsPsExpTraced(VOID);

+

+/**

+ * @brief ÅжÏPS±ê×¼ÐÅÁîLOGÊÇ·ñ¸ú×Ù

+ * @return true  zCAT¸ú×ÙЭÒéÕ»±ê×¼log  

+ *        false  zCATδ¸ú×ÙЭÒéÕ»±ê×¼log(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ª±ê×¼log´°¿Ú)

+ * @note

+ * @see 

+ */

+BOOL zCatAgt_IsPsSigTraced(VOID);

+

+/**

+ * @brief ÅжÏzCATÊÇ·ñ¸ú×Ùmodem´òÓ¡

+ * @return true  zCAT¸ú×Ùmodem´òÓ¡  

+ *        false  zCATδ¸ú×Ùmodem´òÓ¡(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªmodem´òÓ¡´°¿Ú)

+ * @note

+ * @see 

+ */

+BOOL zCatAgt_IsModemPrintTraced(VOID);

+

+/**

+ * @brief ÅжÏzCATÊÇ·ñ¸ú×ÙGSMÎïÀí²ã´òÓ¡

+ * @return true  zCAT¸ú×ÙGSMÎïÀí²ã´òÓ¡  

+ *        false  zCATδ¸ú×ÙGSMÎïÀí²ã´òÓ¡(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªGSMÎïÀí²ã´òÓ¡´°¿Ú)

+ * @note

+ * @see 

+ */

+BOOL zCatAgt_IsGsmPrintTraced(VOID);

+

+

+#endif

+