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.
30 lines
467 B
30 lines
467 B
#ifndef APP_TASK_TCP
|
|
#define APP_TASK_TCP
|
|
|
|
#include "../ctask/task.h"
|
|
#include "../tpc/ccmodbus.h"
|
|
#include "../app/app_config.h"
|
|
#define U485_TIMEOUT 3 //3 x 100ms = 300ms
|
|
|
|
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;
|
|
|
|
|
|
extern TS_tcp ts_tcp;
|
|
|
|
extern void L3_task_tcp_init(void);
|
|
extern void L3_task_tcp_handle(TS_tcp *s);
|
|
|
|
#endif
|
|
|
|
|
|
|