first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
|
||||
#include "OsSample.h"
|
||||
#include "SocketSample.h"
|
||||
|
||||
#define PKG_LEN 73 //报文长度
|
||||
|
||||
#define PKG_HEART 0xFF //心跳包索引
|
||||
#define PKG_OPEN_CAN 0x00 //打开CAN
|
||||
#define PKG_CLOSE_CAN 0x01 //关闭CAN
|
||||
#define PKG_CTRL_CAN 0x02 //收发CAN
|
||||
|
||||
#define PHEAD 0x55 //报文头
|
||||
#define PEND 0xAA //报文尾
|
||||
|
||||
Status NetProcessInit(uint32_t Port);
|
||||
Status CanFuncOpen(uint8_t chnl);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user