Android Hardware Abstraction Layer
Data Fields
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 397 of file gps.h.

Field Documentation

void(* cleanup)(void)

Closes the interface.

Definition at line 413 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 431 of file gps.h.

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

Get a pointer to extension information.

Definition at line 442 of file gps.h.

int(* init)(GpsCallbacks *callbacks)

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

Definition at line 404 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 424 of file gps.h.

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

Injects the current time.

Definition at line 416 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 438 of file gps.h.

size_t size

set to sizeof(GpsInterface)

Definition at line 399 of file gps.h.

int(* start)(void)

Starts navigating.

Definition at line 407 of file gps.h.

int(* stop)(void)

Stops navigating.

Definition at line 410 of file gps.h.


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