SetSystemPara.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 (4)
  11. typedef struct SUT_LCD_PARAM{
  12. unsigned char SetTimeIndex;
  13. unsigned short OnTimeCt;
  14. }__attribute__((packed)) SUT_LCD_PARAM;
  15. typedef struct SUT_NET_PARAM{
  16. unsigned char Set_Net_Flag;
  17. unsigned char Set_Net_Mode;
  18. }__attribute__((packed))SUT_NET_PARAM;
  19. extern SUT_NET_PARAM Sut_Net_Param;
  20. extern SUT_LCD_PARAM sutLcdParam;
  21. extern char* g_cGetlongitude;
  22. extern char* g_cGetlatitude;
  23. extern unsigned int g_uiGpsStat;
  24. extern int Index;
  25. extern unsigned short g_ausTimeOut[5];
  26. typedef enum{
  27. MODEM_STATUS_TRIGGER,
  28. MODEM_STATUS_READY,
  29. MODEM_STATUS_CMD_VER_ERR,
  30. MODEM_STATUS_NO_NEWVER,
  31. MODEM_STATUS_LOADING,
  32. MODEM_STATUS_SER_ERR,
  33. MODEM_STATUS_DONE,
  34. MODEM_STATUS_INSTALLED,
  35. MODEM_STATUS_TIMEOUT,
  36. MODEM_STATUS_REBOOT
  37. }MODEM_UPDATE_DEF;
  38. void SetAPNShow(int update);
  39. void SetAPNResponse(void);
  40. void SetGPSShow(int update);
  41. void SetGPSResponse(void);
  42. void SetLCDShow(int update);
  43. void SetLCDResponse(void);
  44. void EnterGTmodem(void);
  45. void MakeGpsSendData(void);
  46. void AscStrTurnHexStr(char *AscStr, char *HexStr);
  47. void GetCoordinates(unsigned char type);
  48. void SetAPNDetailShow(int);
  49. void SetAPNDetailResponse(void);
  50. void APNFileInit(void);
  51. void SetApnDetailShow(int update);
  52. void SetApnDetailResponse(void);
  53. void UpdateStatus(MODEM_UPDATE_DEF status);
  54. void ShowNetCaption(unsigned char g_net);
  55. void GetMododexWithCard(void);
  56. void SetUpIntercomVerShow(int update);
  57. const char *GetCaptionByMododex(unsigned int mododex);
  58. void SetStartInfoShow(int update);
  59. void SetFastInterfaceModeResponse(void);
  60. void SetFastInterfaceModeShow(int update);
  61. void SetSYSResponse(void);
  62. void SetAwModeShow(int update);
  63. void SetAwModeResponse();
  64. void SetADBDebugShow(int update);
  65. void SetAdbDebugResponse(void);
  66. void SetLowConsumptionResponse(void);
  67. void SetBOOTDebugResponse(void);
  68. void SetBOOTDebugShow(int update);
  69. void SetPowerOffResponse(void);
  70. void PowerOffShow(int update);
  71. extern unsigned char m_process;
  72. extern unsigned char validApnNum;
  73. extern int ApnFileIndex;
  74. extern int HgsApnLen;
  75. extern char showApnTable[2*APN_NUM][31];
  76. extern unsigned char Net_temp_flag;
  77. extern unsigned char MododrxTable[4];
  78. extern char BOOTDebug;
  79. #endif