From 48f07a0e06662ee7ca0a8eb8d8d6114fc228d40c Mon Sep 17 00:00:00 2001 From: Jiafei Wen Date: Fri, 6 Sep 2013 18:06:38 -0700 Subject: [PATCH] Modem Batching Implementation Modem released new batching location feature, which adds new masks for batching. this change is corresponding to new masks. Change-Id: I8bd8e978a0f1066130049b8b2fc669298691d935 --- core/gps_extended_c.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/core/gps_extended_c.h b/core/gps_extended_c.h index 42df7f68..bda16903 100644 --- a/core/gps_extended_c.h +++ b/core/gps_extended_c.h @@ -175,6 +175,22 @@ typedef enum loc_position_mode_type { #define MIN_POSSIBLE_FIX_INTERVAL 1000 /* msec */ +/** GpsLocationExtended has valid latitude and longitude. */ +#define GPS_LOCATION_EXTENDED_HAS_LAT_LONG (1U<<0) +/** GpsLocationExtended has valid altitude. */ +#define GPS_LOCATION_EXTENDED_HAS_ALTITUDE (1U<<1) +/** GpsLocationExtended has valid speed. */ +#define GPS_LOCATION_EXTENDED_HAS_SPEED (1U<<2) +/** GpsLocationExtended has valid bearing. */ +#define GPS_LOCATION_EXTENDED_HAS_BEARING (1U<<4) +/** GpsLocationExtended has valid accuracy. */ +#define GPS_LOCATION_EXTENDED_HAS_ACCURACY (1U<<8) + +/** GPS extended supports geofencing */ +#define GPS_EXTENDED_CAPABILITY_GEOFENCE 0x0000001 +/** GPS extended supports batching */ +#define GPS_EXTENDED_CAPABILITY_BATCHING 0x0000002 + /** Flags to indicate which values are valid in a GpsLocationExtended. */ typedef uint16_t GpsLocationExtendedFlags; /** GpsLocationExtended has valid pdop, hdop, vdop. */ @@ -286,6 +302,8 @@ enum loc_api_adapter_event_index { LOC_API_ADAPTER_PEDOMETER_CTRL, // LOC_API_ADAPTER_MOTION_CTRL, // LOC_API_ADAPTER_REQUEST_WIFI_AP_DATA, // Wifi ap data + LOC_API_ADAPTER_BATCH_FULL, // Batching on full + LOC_API_ADAPTER_BATCHED_POSITION_REPORT, // Batching on fix LOC_API_ADAPTER_EVENT_MAX }; @@ -309,6 +327,8 @@ enum loc_api_adapter_event_index { #define LOC_API_ADAPTER_BIT_PEDOMETER_CTRL (1<