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.
76 lines
1.9 KiB
76 lines
1.9 KiB
1 year ago
|
//////////////////////////////////////////////////////////////////////////
|
||
|
/// COPYRIGHT NOTICE
|
||
|
/// Copyright (c) 2018, 传控科技
|
||
|
/// All rights reserved.
|
||
|
///
|
||
|
/// @file tpc_fsk.c
|
||
|
/// @brief transaction protocol control of fsk
|
||
|
///
|
||
|
///(本文件实现的功能的详述)
|
||
|
///
|
||
|
/// @version 1.1 CCsens technology
|
||
|
/// @author CC
|
||
|
/// @date 20150102
|
||
|
///
|
||
|
///
|
||
|
/// @version 1.2 CCsens technology
|
||
|
/// @author CC
|
||
|
/// @date 20180308
|
||
|
/// @info 整理
|
||
|
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
|
||
|
#ifndef __TPC_DEBUG_H_
|
||
|
#define __TPC_DEBUG_H_
|
||
|
|
||
|
////
|
||
|
|
||
|
|
||
|
///#include "type.h"///
|
||
|
|
||
|
#include "tpc_x.h"///
|
||
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
U8 reg;
|
||
|
U8 f2;
|
||
|
U8 overtime;
|
||
|
U8 head; //接收标志头标志
|
||
|
U8 f; //接收标志头标志
|
||
|
U8 num; //接收到的数据的计数, 随着数据接收而变化注意数据长度的范围
|
||
|
U8 ok; //接收协议ok标志
|
||
|
U8 debugok;
|
||
|
U8 max;
|
||
|
U8 *sp;
|
||
|
|
||
|
U8 t[18];
|
||
|
}TS_s2b_debug_;///处理debug类型的协议时使用变量 ////协议处理变量
|
||
|
extern TS_s2b_debug_ ts_s2b_debug;
|
||
|
#define D_HETU_FX_buf_max 5 //定长协议 长度为5
|
||
|
|
||
|
typedef struct
|
||
|
{//8byte
|
||
|
vU8 filter;
|
||
|
vU8 R1;
|
||
|
vU8 R2;
|
||
|
vU8 R3;
|
||
|
vU8 ocr;
|
||
|
}TS_pp_debug_;////fx开头的简易5字节debug协议的数据包 ---debug类型的协议
|
||
|
extern TS_pp_debug_ ts_debug_rec;
|
||
|
|
||
|
void L1_s2b_debug_init(void);
|
||
|
///L1_s2b_PH5_debug(&ts_debug_rec);
|
||
|
extern void L1_s2b_PH5_debug(TS_s2b_debug_ *p);
|
||
|
|
||
|
///extern void L1_s2b_PH5_debug(ts_s2b_debug_ z);
|
||
|
#endif /* end __TPC_DEBUG_H_ */
|
||
|
/*****************************************************************************
|
||
|
** End Of File
|
||
|
******************************************************************************/
|
||
|
|
||
|
|
||
|
|