Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI DmTftLibrary
Diff: Peripherals/GpsMax7.h
- Revision:
- 20:626b92b70bf7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Peripherals/GpsMax7.h Thu Nov 08 10:14:39 2018 +0000
@@ -0,0 +1,73 @@
+/*
+ ______ _
+ / _____) _ | |
+( (____ _____ ____ _| |_ _____ ____| |__
+ \____ \| ___ | (_ _) ___ |/ ___) _ \
+ _____) ) ____| | | || |_| ____( (___| | | |
+(______/|_____)_|_|_| \__)_____)\____)_| |_|
+ (C)2016 Semtech
+
+Description: uBlox MAX7 GPS header
+
+Maintainer: Gregory Cristian & Gilbert Menth
+*/
+
+#ifndef MAX7_GPS_H
+#define MAX7_GPS_H
+
+
+/*!
+ * \brief GPGGA format structure.
+ */
+struct GpggaStruct
+{
+ char Lat[15];
+ char Long[15];
+ char NumSats[3];
+ bool Fixed;
+ bool Updated;
+};
+
+/*!
+ * \brief GPZDA format structure.
+ */
+struct GpzdaStruct
+{
+ char Hour[3];
+ char Minute[3];
+ char Second[3];
+ char Day[3];
+ char Month[3];
+ char Year[5];
+ bool Updated;
+};
+
+/*!
+ * \brief GPS data structure.
+ */
+struct GpsStruct
+{
+ GpggaStruct Position;
+ GpzdaStruct Time;
+};
+
+
+/*!
+ * \brief Initialses the hardware and variables associated with the MAX7.
+ */
+void Max7GpsInit( void );
+
+/*!
+ * \brief Returns the required data from the MAX7.
+ *
+ * \retval GpsStruct* Pointer to the current GPS data.
+ */
+GpsStruct* Max7GpsgetData( void );
+
+ /*!
+ * \brief Called from the main loop in order to deal with the MAX7 communications.
+ */
+void Max7GpsHandle( void );
+
+#endif //MAX7_GPS_H
+