1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef __SETSYSTEMPARA_H
- #define __SETSYSTEMPARA_H
- /*****************************************************************/
- #include <stm32f10x.h>
- /*
- #define APN_NAME "card"
- #define APN_PASSWORD "card"
- higos.m2m vnet.mobi
- */
- #define APN_NUM (4)
- typedef struct SUT_LCD_PARAM{
- unsigned char SetTimeIndex;
- 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 short g_ausTimeOut[5];
- 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;
- void SetAPNShow(int update);
- void SetAPNResponse(void);
-
- void SetGPSShow(int update);
- void SetGPSResponse(void);
-
- void SetLCDShow(int update);
- void SetLCDResponse(void);
- 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 SetUpIntercomVerShow(int update);
- const char *GetCaptionByMododex(unsigned int mododex);
- void SetStartInfoShow(int update);
- void SetFastInterfaceModeResponse(void);
- void SetFastInterfaceModeShow(int update);
- void SetSYSResponse(void);
- void SetAwModeShow(int update);
- void SetAwModeResponse();
- void SetADBDebugShow(int update);
- void SetAdbDebugResponse(void);
- void SetLowConsumptionResponse(void);
- void SetBOOTDebugResponse(void);
- void SetBOOTDebugShow(int update);
- void SetPowerOffResponse(void);
- void PowerOffShow(int update);
-
- 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;
- extern unsigned char MododrxTable[4];
- extern char BOOTDebug;
- #endif
|