You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
614 B
26 lines
614 B
4 years ago
|
#ifndef TPC_CONFIG_H
|
||
|
#define TPC_CONFIG_H
|
||
|
|
||
|
#include "../bsp/bsp_config.h"
|
||
|
#include "../clib/type.h"
|
||
|
|
||
|
typedef struct _tp_handler_x
|
||
|
{//8byte
|
||
|
vU8 reg;
|
||
|
vU8 head; //接收标志头标志
|
||
|
vU8 cashe[2];
|
||
|
vU8 head_0;
|
||
|
vU8 head_1;
|
||
|
vU8 num; //接收到的数据的计数, 随着数据接收而变化注意数据长度的范围
|
||
|
vU8 ok; //接收协议ok标志
|
||
|
vU8 yes;
|
||
|
vU8 max; //接收到的数目的最大值
|
||
|
vU8 buf[D_TPC_HANDLER_X_LEN+16];////协议缓冲
|
||
|
vU8 *sp;
|
||
|
vU8 *sp2; //备份值,如果协议需要备份,单独提供备份缓冲区
|
||
|
vU8 ocr;
|
||
|
vU8 crc[2];
|
||
|
}TP_Handler_X;
|
||
|
|
||
|
#endif
|