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
498 B

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