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.
 
 
 
 

33 lines
825 B

#ifndef TPC_X_H
#define TPC_X_H
#include "../bsp/bsp_config.h"
#if 0
#include "tpc_debug.h"
#include "tpc_ccmodbus.h"
#include "tpc_modbus.h"
#include "tpc_0d0a.h"
#endif
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 debugok; //接收debug协议ok标志
vU8 max; //接收到的数目的最大值
//vU8 __buf[D_tp_handle_x_len+1];//buffer
vU8 buf[D_tp_handle_x_len+16];//array的第一位是 长度 //协议缓冲
vU8 *sp;
vU8 *sp2; //备份值,如果协议需要备份,单独提供备份缓冲区
vU8 ocr;
vU8 crc[2];
vU32 modbusstmp;
U8 i;
}TP_Handler_X;
#endif