authLogin.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __LOGIN_H_
  2. #define __LOGIN_H_
  3. #include "main.h"
  4. #include "devMsg.h"
  5. #define TCP_SEND_BUF_LEN MAX_BUBIAO_TCP_SIZE //UPLOAD_RECORD_SIZE
  6. #define MODEM_AT_MSG_BUF 4096 //下行1K够了
  7. #define LOAD_FILE_MAX_PACKET 60 //上传/下载最大分包数
  8. PT_THREAD (ptAuthLoginTask(pt_timer_t *ptPool, struct pt *pt));
  9. PT_THREAD (ptHearTickTask(pt_timer_t *ptPool, struct pt *pt));
  10. PT_THREAD (ptVoiceUploadTask(pt_timer_t *ptPool, struct pt *pt));
  11. void authLoginInit(void);
  12. T_INT32 getAuthLoginCnt(void);
  13. void authLoginCntUpdate(T_INT32 value);
  14. void authWorkCtl(T_BOOL status);
  15. extern unsigned char g_ucTcpSendBuf[TCP_SEND_BUF_LEN];
  16. extern unsigned char g_ucTcpRecvBuf[MODEM_AT_MSG_BUF];
  17. void showHexData(unsigned char *info,int len);
  18. T_BOOL getServerAuth(void);
  19. void resetNetStatus(void);
  20. void extShutAppLinks(void);
  21. int getHeartCnt(void);
  22. void heartCntUpdate(int cnt);
  23. void warnSendNow(unsigned char warnStatus);
  24. unsigned char getIotStatus(void);
  25. unsigned char getLoginStatus(void);
  26. T_UINT16 getNextCnt(void);
  27. void sosHandler(unsigned char keytype);
  28. T_BOOL isRecDisableLock(void);
  29. void TryvFileRePlay(unsigned char);
  30. void clearLoadCtl(void);
  31. T_BOOL isVibNoteNow(void);
  32. void chargeStatusCheck(void);
  33. void startRecTimer(void);
  34. void stopRecTimer(void);
  35. #endif