| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /******************************************************************************
- 版权所有:
- 文件名称: net_debug.h
- 文件版本: 01.01
- 创建作者: sunxi
- 创建日期: 2010-06-24
- 功能说明: 网络调试接口。
- 其它说明:
- 修改记录:
- */
- #ifndef _NET_DEBUG_H
- #define _NET_DEBUG_H
- /*------------------------------- 头文件 --------------------------------------
- */
- /*------------------------------- 宏定义 --------------------------------------
- */
- /*------------------------------ 类型结构 -------------------------------------
- */
- typedef struct DEBUG_COMM
- {
- BYTE cTypeCounter; //接受帧类型
- BYTE cRecvLenth; //通道A 接收到数据计数器
- BYTE cRecvCnt; //有效数据记数
- BYTE cSendCnt;
- BYTE cSendLenth;
- bool bData; //有报文数据
- bool bSend;
- bool bNet; //是否从以太网来的数据
- BYTE arrSendBuf[UART_FRAME_LEN];
- BYTE arrRecvBuf[UART_FRAME_LEN]; //应用程序中,没有大数据
-
- }DEBUG_COMM;
- /*------------------------------ 变量声明 -------------------------------------
- */
- extern int g_print_to_net;
- extern int g_print_time;
- extern int g_print_comm_raw;
- extern int g_print_101;
- extern int g_print_104;
- extern int g_print_lnk;
- extern int g_print_hmi;
- extern int g_print_sys;
- extern int g_print_dd;
- extern int g_print_can;
- extern int g_print_can_monitor;
- extern u32 g_print_port;
- extern int g_print_goose;
- extern int g_test_on;
- /*------------------------------ 函数声明 -------------------------------------
- */
- int net_debug_init(void);
- int net_debug_exit(void);
- void net_debug_app(void);
- int net_debug_send(unsigned char *buf,int len);
- void print_mem_net(char *addr,unsigned char *pd,int lenth);
-
- #endif //_NET_DEBUG_H
- /*------------------------------ 文件结束 -------------------------------------
- */
|