Csr location class shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.

Dependents:   CsrLocationDemo CsrLocationDemo

Fork of CsrLocation by jie zhao

Revision:
17:05033198f8f3
Parent:
12:5fb829ce6b82
Child:
18:5d72465991f5
--- a/CsrLocation.h	Wed Nov 05 02:26:49 2014 +0000
+++ b/CsrLocation.h	Tue Nov 18 02:43:19 2014 +0000
@@ -13,6 +13,12 @@
 #define CSR_RESULT_SUCCESS  ((CsrResult) 0x0000)
 #define CSR_RESULT_FAILURE  ((CsrResult) 0xFFFF)
 
+/* Time related definitions */
+#define CSR_ULOC_UTC_GPS_OFFSET_MS      ((315964800000LL))
+#define CSR_ULOC_SEC_IN_WEEK_MS         (604800000)
+#define CSR_ULOC_UTC_LEAP_OFFSET_MS     (15000)
+
+
 /* IOCTL commands */
 #define CSR_IOCTL_CMD_WAKEUP_STATUS     (0x01)
 #define CSR_IOCTL_CMD_ONOFF_ON          (0x02)
@@ -189,10 +195,8 @@
 
 /** Structure to hold Position Response Message Information. */
 typedef struct LocPosResp {
-    union {
-        tGpsTime gpsTime;
-        float    utcTime;
-    } u;
+    tGpsTime gpsTime;
+    float    utcTime;
     /** Latitude */
     double lat;
     /** Longitude */