SetSystemPara.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #ifndef __SETSYSTEMPARA_H
  2. #define __SETSYSTEMPARA_H
  3. /*****************************************************************/
  4. #include <stm32f10x.h>
  5. /*
  6. #define APN_NAME "card"
  7. #define APN_PASSWORD "card"
  8. higos.m2m vnet.mobi
  9. */
  10. #define APN_NUM (2)
  11. typedef struct SUT_LCD_PARAM{
  12. unsigned char SetTimeIndex;
  13. unsigned char Rev;
  14. unsigned char FileIndex;
  15. unsigned short SetTime[5];
  16. unsigned char OnTimeIndex;//放最后面 初始化是0 但是掉电不保存
  17. unsigned short OnTime;
  18. unsigned short OnTimeCt;
  19. }__attribute__((packed)) SUT_LCD_PARAM;
  20. typedef struct SUT_NET_PARAM{
  21. unsigned char Set_Net_Flag;
  22. unsigned char Set_Net_Mode;
  23. }__attribute__((packed))SUT_NET_PARAM;
  24. extern SUT_NET_PARAM Sut_Net_Param;
  25. extern SUT_LCD_PARAM sutLcdParam;
  26. extern char* g_cGetlongitude;
  27. extern char* g_cGetlatitude;
  28. extern unsigned int g_uiGpsStat;
  29. extern int Index;
  30. extern unsigned int g_uikey_up_stat;
  31. extern unsigned int g_iLCDFlag;
  32. extern unsigned short g_ausIPTimeOut[4];
  33. typedef enum{
  34. MODEM_STATUS_TRIGGER,
  35. MODEM_STATUS_READY,
  36. MODEM_STATUS_CMD_VER_ERR,
  37. MODEM_STATUS_NO_NEWVER,
  38. MODEM_STATUS_LOADING,
  39. MODEM_STATUS_SER_ERR,
  40. MODEM_STATUS_DONE,
  41. MODEM_STATUS_INSTALLED,
  42. MODEM_STATUS_TIMEOUT,
  43. MODEM_STATUS_REBOOT
  44. }MODEM_UPDATE_DEF;
  45. // extern unsigned int g_LCDTimeCt;
  46. // extern unsigned int g_LCDFlag;
  47. // extern unsigned int g_LCDTemp;
  48. void SetAPNShow(int update);
  49. void SetAPNResponse(void);
  50. void SetGPSShow(int update);
  51. void SetGPSResponse(void);
  52. void SetLCDShow(int update);
  53. void SetLCDResponse(void);
  54. void SetNetResponse(void);
  55. void SetNetShow(int update);
  56. void EnterGTmodem(void);
  57. void MakeGpsSendData(void);
  58. void AscStrTurnHexStr(char *AscStr, char *HexStr);
  59. void GetCoordinates(unsigned char type);
  60. void SetAPNDetailShow(int);
  61. void SetAPNDetailResponse(void);
  62. void APNFileInit(void);
  63. void SetApnDetailShow(int update);
  64. void SetApnDetailResponse(void);
  65. void UpdateStatus(MODEM_UPDATE_DEF status);
  66. void ShowNetCaption(unsigned char g_net);
  67. void GetMododexWithCard(void);
  68. void SetLoginShow(int update);
  69. const char *GetCaptionByMododex(unsigned int mododex);
  70. void SetSelectIpResponse(void);
  71. void UIShowGpsTimeSetup(int update);
  72. void SetGPSTimeResponse(void);
  73. void UIShowGpsServerSetup(int update);
  74. void SetGPSServerResponse(void);
  75. void UIShowGpsManuIPSelect(int update);
  76. void SetAutoIptimeshow(int update);
  77. void SetAutoIpResponse(void);
  78. void SetAutoGIpResponse(void);
  79. void SetAutoGIptimeshow(int update);
  80. void SetMenuPassMageShow(int update);
  81. void SetMenuPassMageResponse(void);
  82. void ResetPasswordShow(int update);
  83. void ResetPasswordResponse();
  84. void ReConfigPasswordShow(int update);
  85. void ReConfigPasswordResponse();
  86. void PasswordInableShow(int update);
  87. void PasswordInableResponse();
  88. extern unsigned char m_process;
  89. extern unsigned char validApnNum;
  90. extern int ApnFileIndex;
  91. extern int HgsApnLen;
  92. extern char showApnTable[2*APN_NUM][31];
  93. extern unsigned char Net_temp_flag;
  94. #endif