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.
 
 
 
 

32 lines
498 B

#ifndef APP_TASK_TCP
#define APP_TASK_TCP
#include "../ctask/task.h"
#include "../tpc/ccmodbus.h"
#include "../app/app_config.h"
#include "../asp/asp_oid.h"
#define U485_TIMEOUT 3 //3 x 100ms = 300ms
typedef struct
{
TS_task task;
TS_PH3_ccmodbus loopPkg;
TS_PH3_ccmodbus *pAckPkg;
U16 slaverIndex;
U16 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