GPS.h 744 B

1234567891011121314151617181920212223242526
  1. /**********************************************************************************
  2. *Modem.h
  3. *
  4. ***********************************************************************************/
  5. #ifndef __GPS_H
  6. #define __GPS_H
  7. /***********************************************************************************/
  8. //Modem Reset
  9. #define GPS_PWR_PIN GPIO_Pin_14
  10. #define GPS_PWR_PORT GPIOB
  11. #define GPS_PWR_ON GPS_PWR_PORT->BRR = GPS_PWR_PIN
  12. #define GPS_PWR_OFF GPS_PWR_PORT->BSRR = GPS_PWR_PIN
  13. char* GPSGetGPRMC(char *msg);
  14. #define GPS_DATA_SOCKET 1 //GPSÒµÎñʹÓõÄÄ£¿ésocketºÅ
  15. void GPSInit(void);
  16. void GPSRestart(void);
  17. void GPS_RFPwrCtrl(char on_off);
  18. #endif
  19. /***********************************************************************************/