| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /******************************************************************************
- 版权所有:
- 文件名称: 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
- /*------------------------------ 文件结束 -------------------------------------
- */
|