GpsInterface Struct Reference
#include <
gps.h
>
Data Fields |
|
size_t | size |
int(* | init )( GpsCallbacks *callbacks) |
int(* | start )(void) |
int(* | stop )(void) |
void(* | cleanup )(void) |
int(* | inject_time )( GpsUtcTime time, int64_t timeReference, int uncertainty) |
int(* | inject_location )(double latitude, double longitude, float accuracy) |
void(* | delete_aiding_data )( GpsAidingData flags) |
int(* | set_position_mode )( GpsPositionMode mode, GpsPositionRecurrence recurrence, uint32_t min_interval, uint32_t preferred_accuracy, uint32_t preferred_time) |
const void *(* | get_extension )(const char *name) |
Detailed Description
Field Documentation
void(* delete_aiding_data)( GpsAidingData flags) |
const void*(* get_extension)(const char *name) |
int(* init)( GpsCallbacks *callbacks) |
int(* inject_location)(double latitude, double longitude, float accuracy) |
int(* inject_time)( GpsUtcTime time, int64_t timeReference, int uncertainty) |
int(* set_position_mode)( GpsPositionMode mode, GpsPositionRecurrence recurrence, uint32_t min_interval, uint32_t preferred_accuracy, uint32_t preferred_time) |
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_BASED or GPS_POSITION_MODE_STANDALONE. It is allowed by the platform (and it is recommended) to fallback to GPS_POSITION_MODE_MS_BASED if GPS_POSITION_MODE_MS_ASSISTED is passed in, and GPS_POSITION_MODE_MS_BASED is supported.
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ gps.h