| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /********************************************************************************
- * File Name: WiredLanTask.h
- * Function Describe: Header file for WiredLanTask.c
- * Explain:
- * Writer:
- * Date:
- *******************************************************************************/
- #ifndef __WIRE_LAN_TASK_H
- #define __WIRE_LAN_TASK_H
- //-------------------------------------------------------------------------------
- #include <rtl.h>
- typedef struct SUT_WL_STATUS
- {
- uint8_t NetFlag;//网络状态 0--网络芯片未完成初始化 1--网络IC初始化成功但网线未链接 2--网线已插入但DHCP未分配IP 3--DHCP已分配内网IP
- uint8_t ConnectEnable;//链接使能 0--不允许链接服务器 1--允许链接服务器
- uint8_t SocketOpened;//Socket已绑定
- uint8_t Connected;//0未链接 1已链接
- uint8_t Logined;//0未登陆 1已登陆
- uint8_t SendRegCt; //发送登陆包次数计数器
- uint8_t SendRegCtrlCt;//发送登陆包控制计数器
- uint8_t SendTestCt; //发测试包次数计数器
- uint8_t SendTestCtrlCt;//发测试包控制计数器
- uint8_t SendTestInterval;//发送Test间隔
- uint16_t TaskRunSec;//运行了多久
- uint16_t OffLineCt;//离线时间
- }SUT_WL_STATUS;
- extern SUT_WL_STATUS sutWLanStatus;
- typedef enum {TIMEOUT=-1,INVALID=0,OPENED=1,CLOSED=2,SYN_SENT=3} STATUE;
- extern STATUE ServerStatus;
- #define WIRE_LAN_TASK_STK_SIZE 200 //200
- extern U64 stkWLANTask[WIRE_LAN_TASK_STK_SIZE];
- extern OS_TID idWLanTask;
- extern U64 stkWLANTask[WIRE_LAN_TASK_STK_SIZE];
- __task void WiredLanTask(void);
- //-------------------------------------------------------------------------------
- #endif
- //-------------------------------------------------------------------------------
|