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.

29 lines
458 B

4 years ago
#ifndef APP_TASK_TCP
#define APP_TASK_TCP
#include "../ctask/task.h"
#include "../tpc/tpc_ccmodbus.h"
#include "app_common.h"
typedef struct
{
TS_task task;
TS_PH3_ccmodbus loopPkg;
TS_PH3_ccmodbus *pAckPkg;
U8 slaverIndex;
U8 pkglen;
U32 sendStamp;
U8 retryTimes;
U8 ackFlag;
U16 treg;
}TS_tcp;
#define U485_TIMEOUT 3 //3 x 100ms = 300ms
extern TS_tcp ts_tcp;
extern void L3_task_tcp_init();
extern void L3_task_tcp_handle(TS_tcp *s);
#endif