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.
57 lines
1.4 KiB
57 lines
1.4 KiB
//////////////////////////////////////////////////////////////////////////
|
|
/// 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_MODBUS_H_
|
|
#define __TPC_MODBUS_H_
|
|
|
|
#include "../clib/Type.h"
|
|
#include "../bsp/bsp_config.h"
|
|
#include "../app/common.h"
|
|
|
|
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
|
|
typedef struct
|
|
{
|
|
U8 reg;
|
|
U8 max; //接收到的数目的最大值
|
|
U8 slaver;
|
|
vU8 head; //接收标志头标志
|
|
vU8 ok; //接收协议ok标志
|
|
vU8 num;
|
|
vU8 error; //错误
|
|
vU8 *sp;
|
|
U8 buf[D_s_PH4_modbus_max + 8];
|
|
vU8 crc[2];
|
|
}TS_Handle_PH4;
|
|
|
|
extern void L1_s2b_PH4_init(TS_Handle_PH4 *p,U8 slaver);
|
|
extern void L1_s2b_PH4(TS_Handle_PH4 *p);
|
|
|
|
#endif /* end __TPC_UART_H_ */
|
|
/*****************************************************************************
|
|
** End Of File
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
|