AppTcpPart.h 575 B

123456789101112131415161718192021222324252627
  1. #ifndef __APP_TCPPART_H
  2. #define __APP_TCPPART_H
  3. typedef struct{
  4. unsigned char reg:1;
  5. unsigned char pdp:1;
  6. unsigned char netReady:1;
  7. unsigned char tcp:1;
  8. unsigned char resetPDP:1;
  9. unsigned char tcpAccountErrReCnt;
  10. }NET_DEF;
  11. typedef struct {
  12. unsigned char login;//是否登录
  13. short app_netcnt;
  14. unsigned char hearttick;//超时重新connect 40S
  15. }APP_STATUS;
  16. extern TUPSEND_DEF tupCtl;
  17. extern NET_DEF netWork;
  18. extern APP_STATUS app_status;
  19. void ApplocationCallBack(void *param);
  20. void Tup_Process(int interva);
  21. void MS5700_Networking(unsigned int interval);
  22. #endif