12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #ifndef __APP_H_
- #define __APP_H_
- #include "lsapi_os.h"
- #define APP_TASK_SLEEP_TIME 10
- #define APP_SUB_DIV_TIME (APP_TASK_SLEEP_TIME*2)
- typedef enum{
- ENCODE_USER_GBK=1,
- ENCODE_USER_UNICODE_BE=2,
- ENCODE_USER_ASCII=3,
- }ENCODE_USER_ENUM;
- typedef enum{
- ASLEEP_POC,
- ASLEEP_ADC,
- ASLEEP_KEY,
- ASLEEP_MKEY,
- ASLEEP_PWR,
- ASLEEP_LCD,
- ASLEEP_GGROUP,
- ASLEEP_GUSER,
- }ASLEEP_ENUM;
- #pragma pack(push)
- #pragma pack(1)
- typedef struct{
- char psn[20];
- unsigned char OtherId[16];
- unsigned char OtherPassWord[20];
- unsigned char platform[20];
- unsigned char pFormatMark[20];
- unsigned char tnet;
- }USER_STOR_INFO;
- typedef struct{
- unsigned char guiStatus:1;
- unsigned char pocInitStatus:1;
- unsigned char appStatus:1;
- unsigned char pocParaDone:1;
- unsigned char bndPocDone:1;
- unsigned char cardStatus:1;
- unsigned char Get_MicLv:1;
-
- unsigned char gtMode:1;
- unsigned char gtTMode:1;
- unsigned char pocPpp:1;
- unsigned char pwrLock:1;
- unsigned char enableKey:1;
- unsigned char keyLock:1;
- unsigned char lockShow:1;
- unsigned char groupTTSEnable:1;
- unsigned char startPoc:1;
- unsigned char earLev:1;
- unsigned char earPttReady:1;
- unsigned char lowPwrWarn:1;
- unsigned char lowPwrMsg:1;
- unsigned char forceUiFlash:1;
- unsigned char authReady:1;
- unsigned char lcdDlyLightUp:1;
- unsigned int lowPwrCnt;
- unsigned char earCnt;
- unsigned char pcant;
- unsigned int appSleepStatus;
- USER_STOR_INFO UserInfo;
- int g_iCSQ;
- int g_iBAT;
- char fotaVersion[10];
- char pocVersion[20];
- unsigned char simSel;
- char modemVer[30];
- unsigned char key_f1_cnt;
- unsigned char key_f2_cnt;
- int copstype;
- unsigned char ICCID[21];
- unsigned short VailDay;
- unsigned char voluemUpdate;
- unsigned char LightStatus;
- unsigned char MenuToStandby;
- }APP_DEF;
- #pragma pack(pop)
- extern APP_DEF sutApp;
- void appRun(void);
- void dataInit(void);
- void keyCheck(unsigned short keyStatus);
- void threadSendEvent(LSAPI_OSI_Thread_t *threadID, unsigned int id, unsigned int param1,unsigned int param2,unsigned int param3);
- void usbCmdHandler(const char *data,unsigned int length);
- void subTask(void *param);
- void ttsPlay(ENCODE_USER_ENUM type, char *tts);
- void backLightReset(void);
- void backLightCb(void *param);
- void StrAsciiToHex(char *src, unsigned char *des);
- #endif
|