| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #ifndef __SETSYSTEMPARA_H
- #define __SETSYSTEMPARA_H
- /*****************************************************************/
- #include <stm32f10x.h>
- /*
- #define APN_NAME "card"
- #define APN_PASSWORD "card"
- higos.m2m vnet.mobi
- */
- #define APN_NUM (2)
- typedef struct SUT_LCD_PARAM{
- unsigned char SetTimeIndex;
- unsigned char Rev;
- unsigned char FileIndex;
- unsigned short SetTime[5];
- unsigned char OnTimeIndex;//放最后面 初始化是0 但是掉电不保存
- unsigned short OnTime;
- unsigned short OnTimeCt;
- }__attribute__((packed)) SUT_LCD_PARAM;
- typedef struct SUT_NET_PARAM{
-
- unsigned char Set_Net_Flag;
- unsigned char Set_Net_Mode;
-
- }__attribute__((packed))SUT_NET_PARAM;
-
- extern SUT_NET_PARAM Sut_Net_Param;
- extern SUT_LCD_PARAM sutLcdParam;
- extern char* g_cGetlongitude;
- extern char* g_cGetlatitude;
- extern unsigned int g_uiGpsStat;
- extern int Index;
- extern unsigned int g_uikey_up_stat;
- extern unsigned int g_iLCDFlag;
- extern unsigned short g_ausIPTimeOut[4];
- typedef enum{
- MODEM_STATUS_TRIGGER,
- MODEM_STATUS_READY,
- MODEM_STATUS_CMD_VER_ERR,
- MODEM_STATUS_NO_NEWVER,
- MODEM_STATUS_LOADING,
- MODEM_STATUS_SER_ERR,
- MODEM_STATUS_DONE,
- MODEM_STATUS_INSTALLED,
- MODEM_STATUS_TIMEOUT,
- MODEM_STATUS_REBOOT
- }MODEM_UPDATE_DEF;
- // extern unsigned int g_LCDTimeCt;
- // extern unsigned int g_LCDFlag;
- // extern unsigned int g_LCDTemp;
- void SetAPNShow(int update);
- void SetAPNResponse(void);
-
- void SetGPSShow(int update);
- void SetGPSResponse(void);
-
- void SetLCDShow(int update);
- void SetLCDResponse(void);
- void SetNetResponse(void);
- void SetNetShow(int update);
- void EnterGTmodem(void);
- void MakeGpsSendData(void);
-
- void AscStrTurnHexStr(char *AscStr, char *HexStr);
- void GetCoordinates(unsigned char type);
- void SetAPNDetailShow(int);
- void SetAPNDetailResponse(void);
- void APNFileInit(void);
- void SetApnDetailShow(int update);
- void SetApnDetailResponse(void);
- void UpdateStatus(MODEM_UPDATE_DEF status);
- void ShowNetCaption(unsigned char g_net);
- void GetMododexWithCard(void);
- void SetLoginShow(int update);
- const char *GetCaptionByMododex(unsigned int mododex);
- void SetSelectIpResponse(void);
- void UIShowGpsTimeSetup(int update);
- void SetGPSTimeResponse(void);
- void UIShowGpsServerSetup(int update);
- void SetGPSServerResponse(void);
- void UIShowGpsManuIPSelect(int update);
- void SetAutoIptimeshow(int update);
- void SetAutoIpResponse(void);
- void SetAutoGIpResponse(void);
- void SetAutoGIptimeshow(int update);
-
- void SetMenuPassMageShow(int update);
- void SetMenuPassMageResponse(void);
- void ResetPasswordShow(int update);
- void ResetPasswordResponse();
- void ReConfigPasswordShow(int update);
- void ReConfigPasswordResponse();
- void PasswordInableShow(int update);
- void PasswordInableResponse();
-
- extern unsigned char m_process;
- extern unsigned char validApnNum;
- extern int ApnFileIndex;
- extern int HgsApnLen;
- extern char showApnTable[2*APN_NUM][31];
- extern unsigned char Net_temp_flag;
-
- #endif
|