Data Fields
GpsInterface Struct Reference

Represents the standard GPS interface. More...

Data Fields

void(* cleanup )(void)
 Closes the interface. More...
 
void(* delete_aiding_data )(GpsAidingData flags)
 Specifies that the next call to start will not use the information defined in the flags. More...
 
const void *(* get_extension )(const char *name)
 Get a pointer to extension information. More...
 
int(* init )(GpsCallbacks *callbacks)
 Opens the interface and provides the callback routines to the implemenation of this interface. More...
 
int(* inject_location )(double latitude, double longitude, float accuracy)
 Injects current location from another location provider (typically cell ID). More...
 
int(* inject_time )(GpsUtcTime time, int64_t timeReference, int uncertainty)
 Injects the current time. More...
 
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. More...
 
size_t size
 set to sizeof(GpsInterface) More...
 
int(* start )(void)
 Starts navigating. More...
 
int(* stop )(void)
 Stops navigating. More...
 

Detailed Description

Represents the standard GPS interface.

Definition at line 384 of file gps.h.

Field Documentation

void(* GpsInterface::cleanup)(void)

Closes the interface.

Definition at line 400 of file gps.h.

void(* GpsInterface::delete_aiding_data)(GpsAidingData flags)

Specifies that the next call to start will not use the information defined in the flags.

GPS_DELETE_ALL is passed for a cold start.

Definition at line 418 of file gps.h.

const void*(* GpsInterface::get_extension)(const char *name)

Get a pointer to extension information.

Definition at line 429 of file gps.h.

int(* GpsInterface::init)(GpsCallbacks *callbacks)

Opens the interface and provides the callback routines to the implemenation of this interface.

Definition at line 391 of file gps.h.

int(* GpsInterface::inject_location)(double latitude, double longitude, float accuracy)

Injects current location from another location provider (typically cell ID).

latitude and longitude are measured in degrees expected accuracy is measured in meters

Definition at line 411 of file gps.h.

int(* GpsInterface::inject_time)(GpsUtcTime time, int64_t timeReference, int uncertainty)

Injects the current time.

Definition at line 403 of file gps.h.

int(* GpsInterface::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.

Definition at line 425 of file gps.h.

size_t GpsInterface::size

set to sizeof(GpsInterface)

Definition at line 386 of file gps.h.

int(* GpsInterface::start)(void)

Starts navigating.

Definition at line 394 of file gps.h.

int(* GpsInterface::stop)(void)

Stops navigating.

Definition at line 397 of file gps.h.