#ifndef __LOGIN_H_ #define __LOGIN_H_ #include "main.h" #include "devMsg.h" #define TCP_SEND_BUF_LEN MAX_BUBIAO_TCP_SIZE //UPLOAD_RECORD_SIZE #define MODEM_AT_MSG_BUF 4096 //下行1K够了 #define LOAD_FILE_MAX_PACKET 60 //上传/下载最大分包数 PT_THREAD (ptAuthLoginTask(pt_timer_t *ptPool, struct pt *pt)); PT_THREAD (ptHearTickTask(pt_timer_t *ptPool, struct pt *pt)); PT_THREAD (ptVoiceUploadTask(pt_timer_t *ptPool, struct pt *pt)); void authLoginInit(void); T_INT32 getAuthLoginCnt(void); void authLoginCntUpdate(T_INT32 value); void authWorkCtl(T_BOOL status); extern unsigned char g_ucTcpSendBuf[TCP_SEND_BUF_LEN]; extern unsigned char g_ucTcpRecvBuf[MODEM_AT_MSG_BUF]; void showHexData(unsigned char *info,int len); T_BOOL getServerAuth(void); void resetNetStatus(void); void extShutAppLinks(void); int getHeartCnt(void); void heartCntUpdate(int cnt); void warnSendNow(unsigned char warnStatus); unsigned char getIotStatus(void); unsigned char getLoginStatus(void); T_UINT16 getNextCnt(void); void sosHandler(unsigned char keytype); T_BOOL isRecDisableLock(void); void TryvFileRePlay(unsigned char); void clearLoadCtl(void); T_BOOL isVibNoteNow(void); void chargeStatusCheck(void); void startRecTimer(void); void stopRecTimer(void); #endif