#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