Merge "Modem Batching Implementation"
This commit is contained in:
commit
899247c295
1 changed files with 20 additions and 0 deletions
|
@ -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<<LOC_API_ADAPTER_PEDOMETER_CTRL)
|
||||
#define LOC_API_ADAPTER_BIT_MOTION_CTRL (1<<LOC_API_ADAPTER_MOTION_CTRL)
|
||||
#define LOC_API_ADAPTER_BIT_REQUEST_WIFI_AP_DATA (1<<LOC_API_ADAPTER_REQUEST_WIFI_AP_DATA)
|
||||
#define LOC_API_ADAPTER_BIT_BATCH_FULL (1<<LOC_API_ADAPTER_BATCH_FULL)
|
||||
#define LOC_API_ADAPTER_BIT_BATCHED_POSITION_REPORT (1<<LOC_API_ADAPTER_BATCHED_POSITION_REPORT)
|
||||
|
||||
typedef unsigned int LOC_API_ADAPTER_EVENT_MASK_T;
|
||||
|
||||
|
|
Loading…
Reference in a new issue