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

Represents the standard GPS interface.

Definition at line 560 of file gps.h.

Field Documentation

void(* cleanup)(void)

Closes the interface.

Definition at line 576 of file gps.h.

void(* 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 594 of file gps.h.

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

Get a pointer to extension information.

Definition at line 605 of file gps.h.

int(* init)(GpsCallbacks *callbacks)

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

Definition at line 567 of file gps.h.

int(* 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 587 of file gps.h.

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

Injects the current time.

Definition at line 579 of file gps.h.

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.

Definition at line 601 of file gps.h.

size_t size

set to sizeof(GpsInterface)

Definition at line 562 of file gps.h.

int(* start)(void)

Starts navigating.

Definition at line 570 of file gps.h.

int(* stop)(void)

Stops navigating.

Definition at line 573 of file gps.h.


The documentation for this struct was generated from the following file: