blob: fd65c8e5dcbae177d3fbc99e251db85f138e5c19 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/**
2 *
3 * @file CpTrace.h
4 * @brief
5 * This file is part of tools.
6 * ZCAT¹¤¾ßCp²àlog¸ú×Ù½Ó¿Ú
7 *
8 * @details
9 * @author Tools Team.
10 * @email
11 * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
12 * @warning
13 * @date 2019/02/02
14 * @version 1.1
15 * @pre
16 * @post
17 *
18 * @par
19 * Change History :
20 * ---------------------------------------------------------------------------
21 * date version author description
22 * ---------------------------------------------------------------------------
23 * 2013/01/14 1.0 lu.xieji Create file
24 * 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
25 * ---------------------------------------------------------------------------
26 *
27 *
28 */
29
30#ifndef CPTRACE_H_
31#define CPTRACE_H_
32
33// PSÒì³£´òÓ¡¼¶±ð
34#define PS_EXCEPTION_LEVEL_NORMAL (0x01) /* Ò»°ã¼¶±ð */
35#define PS_EXCEPTION_LEVEL_SEVERE (0x02) /* ÑÏÖØ¼¶±ð */
36#define PS_EXCEPTION_LEVEL_DEBUG (0x04) /* µ÷ÊÔ¼¶±ð */
37
38#define TRACE_ERR_LEVEL_NORMAL PS_EXCEPTION_LEVEL_NORMAL
39#define TRACE_ERR_LEVEL_SEVERE PS_EXCEPTION_LEVEL_SEVERE
40#define TRACE_ERR_LEVEL_DEBUG PS_EXCEPTION_LEVEL_DEBUG
41
42typedef struct
43{
44 BYTE StackIndex; // 1:ЭÒéÕ»1, 2:ЭÒéÕ»
45 ZOSS_TASK_ID Taskid;
46 BYTE ModelId;
47 DWORD Errcode;
48 DWORD RecvMsgId;
49 DWORD SendMsgId;
50 BYTE State ;
51 WORD MsgLen;
52 char *pMsgBuf;
53 BYTE bErrLevel;
54} T_PsException_MsgHead;
55
56typedef struct
57{
58 BYTE StackIndex; // 1:ЭÒéÕ»1,2:ЭÒéÕ»
59 ZOSS_TASK_ID SrcTaskID;
60 ZOSS_TASK_ID DestTaskID;
61 BYTE bSrcModID;
62 BYTE bDestModID;
63 DWORD MsgID;
64 BYTE Direct; // Ä£¿é¼äÏûÏ¢µÄ·½Ïò£¬0: ·¢ËÍ 1: ½ÓÊÕ
65 WORD MsgLen;
66 char *pMsgBuf;
67}T_PsModMsgInfoHead;
68
69/**
70 * @brief »ñÈ¡PSÒì³£ÏûÏ¢LOG¹ýÂ˹æÔò
71 * @return µ÷ÊÔ, ½ô¼±, Ò»°ã
72 * @note
73 * @see
74 */
75UINT8 zCatAgt_PsException_GetLevelFilter(VOID);
76
77/**
78 * @brief ÊÇ·ñ¸ú×ÙPSЭÒéÕ»Ô­ÓïLOG
79 * @return true zCAT¸ú×ÙЭÒéÕ»Ô­Óï \n
80 false zCATδ¸ú×ÙЭÒéÕ»Ô­Óï(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªÔ­Óï´°¿Ú)
81 * @note
82 * @see
83 */
84BOOL zCatAgt_IsPsOrigTraced(VOID);
85
86/**
87 * @brief ÅжÏPSÒì³£ÏûÏ¢LOGÊÇ·ñ¸ú×Ù
88 * @return true zCAT¸ú×ÙЭÒéÕ»Òì³£
89 * false zCATδ¸ú×ÙЭÒéÕ»Òì³£(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªÒì³£´°¿Ú)
90 * @note
91 * @see
92 */
93BOOL zCatAgt_IsPsExpTraced(VOID);
94
95/**
96 * @brief ÅжÏPS±ê×¼ÐÅÁîLOGÊÇ·ñ¸ú×Ù
97 * @return true zCAT¸ú×ÙЭÒéÕ»±ê×¼log
98 * false zCATδ¸ú×ÙЭÒéÕ»±ê×¼log(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ª±ê×¼log´°¿Ú)
99 * @note
100 * @see
101 */
102BOOL zCatAgt_IsPsSigTraced(VOID);
103
104/**
105 * @brief ÅжÏzCATÊÇ·ñ¸ú×Ùmodem´òÓ¡
106 * @return true zCAT¸ú×Ùmodem´òÓ¡
107 * false zCATδ¸ú×Ùmodem´òÓ¡(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªmodem´òÓ¡´°¿Ú)
108 * @note
109 * @see
110 */
111BOOL zCatAgt_IsModemPrintTraced(VOID);
112
113/**
114 * @brief ÅжÏzCATÊÇ·ñ¸ú×ÙGSMÎïÀí²ã´òÓ¡
115 * @return true zCAT¸ú×ÙGSMÎïÀí²ã´òÓ¡
116 * false zCATδ¸ú×ÙGSMÎïÀí²ã´òÓ¡(zCATδÁ¬½Ó»òÕßÒÑÁ¬½Óµ«Î´´ò¿ªGSMÎïÀí²ã´òÓ¡´°¿Ú)
117 * @note
118 * @see
119 */
120BOOL zCatAgt_IsGsmPrintTraced(VOID);
121
122
123#endif
124