summaryrefslogtreecommitdiffstats
path: root/include/hardware/gps.h
diff options
context:
space:
mode:
authordestradaa <destradaa@google.com>2015-04-28 13:10:56 -0700
committerdestradaa <destradaa@google.com>2015-04-28 13:10:56 -0700
commit8153488b70d13ddc1122426e961783084fd46572 (patch)
tree99d09255eee3592aec2f86d867fa533a6de3097b /include/hardware/gps.h
parente532724fe050b85aa1e89c6602a3fba76d7cd1d4 (diff)
downloadhardware_libhardware-8153488b70d13ddc1122426e961783084fd46572.zip
hardware_libhardware-8153488b70d13ddc1122426e961783084fd46572.tar.gz
hardware_libhardware-8153488b70d13ddc1122426e961783084fd46572.tar.bz2
Update documentation related to A-GPS modes.
MS-Assisted has only be supported for legacy reasons for a while now. This change moves gps.h in a direction where MS-Based (on device computation with AGPS/Supl support) is the preferred mode to compute locations in the device. Change-Id: Id34a84bae79be52a435b78d249fb5b86a5f6b090
Diffstat (limited to 'include/hardware/gps.h')
-rw-r--r--include/hardware/gps.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/hardware/gps.h b/include/hardware/gps.h
index 75453ce..38353f2 100644
--- a/include/hardware/gps.h
+++ b/include/hardware/gps.h
@@ -51,7 +51,10 @@ typedef uint32_t GpsPositionMode;
#define GPS_POSITION_MODE_STANDALONE 0
/** AGPS MS-Based mode. */
#define GPS_POSITION_MODE_MS_BASED 1
-/** AGPS MS-Assisted mode. */
+/**
+ * AGPS MS-Assisted mode. This mode is not maintained by the platform anymore.
+ * It is strongly recommended to use GPS_POSITION_MODE_MS_BASE instead.
+ */
#define GPS_POSITION_MODE_MS_ASSISTED 2
/** Requested recurrence mode for GPS operation. */
@@ -619,6 +622,12 @@ typedef struct {
* min_interval represents the time between fixes in milliseconds.
* preferred_accuracy represents the requested fix accuracy in meters.
* preferred_time represents the requested time to first fix in milliseconds.
+ *
+ * 'mode' parameter should be one of GPS_POSITION_MODE_MS_BASE
+ * or GPS_POSITION_MODE_STANDALONE.
+ * It is allowed by the platform (and it is recommended) to fallback to
+ * GPS_POSITION_MODE_MS_BASE if GPS_POSITION_MODE_MS_ASSISTED is passed in, and
+ * GPS_POSITION_MODE_MS_BASED is supported.
*/
int (*set_position_mode)(GpsPositionMode mode, GpsPositionRecurrence recurrence,
uint32_t min_interval, uint32_t preferred_accuracy, uint32_t preferred_time);