A controller-neutral API for working with GPS devices.

Dependents:   CsrLocationDemo CsrLocationDemo

Files at this revision

API Documentation at this revision

Comitter:
zhjcpi
Date:
Wed Nov 19 01:34:29 2014 +0000
Parent:
6:8afa9ac0da9b
Commit message:
add comments for utcTime field.

Changed in this revision

GPSProvider.h Show annotated file Show diff for this revision Revisions of this file
--- a/GPSProvider.h	Tue Nov 18 09:03:30 2014 +0000
+++ b/GPSProvider.h	Wed Nov 19 01:34:29 2014 +0000
@@ -76,7 +76,7 @@
      */
     struct GPSTime_t {
         uint16_t gps_week;
-        uint32_t tow;       /* time of week (in seconds) */
+        uint32_t tow;       /* time of week (in millisecond) */
     };
 
     typedef float LocationType_t;
@@ -92,8 +92,8 @@
         unsigned       numGPSSVs; /* num GPS Satellites */
         unsigned       numGLOSVs; /* num GLONASS Satellites */
 
-        GPSTime_t      gpsTime;
-        uint64_t       utcTime;
+        GPSTime_t      gpsTime; /* gps time */
+        uint64_t       utcTime; /* UTC time in millisecond */
     };
 
 public: