ESP32-PaxCounter/include/gpsread.h

22 lines
513 B
C
Raw Normal View History

#ifndef _GPSREAD_H
#define _GPSREAD_H
2018-07-15 14:28:05 +02:00
#include <TinyGPS++.h> // library for parsing NMEA data
2019-02-21 23:17:01 +01:00
#include <RtcDateTime.h>
2018-07-17 13:51:41 +02:00
#ifdef GPS_I2C // Needed for reading from I2C Bus
#include <Wire.h>
#endif
extern TinyGPSPlus gps; // Make TinyGPS++ instance globally availabe
extern gpsStatus_t
gps_status; // Make struct for storing gps data globally available
extern TaskHandle_t GpsTask;
2018-07-17 11:53:43 +02:00
2018-11-25 16:05:30 +01:00
int gps_init(void);
2018-07-15 14:28:05 +02:00
void gps_read(void);
void gps_loop(void *pvParameters);
2019-01-28 23:59:52 +01:00
time_t get_gpstime(void);
2019-02-09 13:02:38 +01:00
int gps_config();
2018-07-15 14:28:05 +02:00
#endif