gps.h File Reference

Go to the source code of this file.


Data Structures

struct  GpsLocation
 Represents a location. More...
struct  GpsStatus
 Represents the status. More...
struct  GpsSvInfo
 Represents SV information. More...
struct  GpsSvStatus
 Represents SV status. More...
struct  GpsCallbacks
 GPS callback structure. More...
struct  GpsInterface
 Represents the standard GPS interface. More...
struct  GpsXtraCallbacks
 Callback structure for the XTRA interface. More...
struct  GpsXtraInterface
 Extended interface for XTRA support. More...
struct  GpsSuplInterface
 Extended interface for SUPL support. More...

Typedefs

typedef int64_t GpsUtcTime
 Milliseconds since January 1, 1970.
typedef uint16_t GpsPositionMode
 Requested mode for GPS operation.
typedef uint16_t GpsStatusValue
 GPS status event values.
typedef uint16_t GpsLocationFlags
 Flags to indicate which values are valid in a GpsLocation.
typedef uint16_t GpsAidingData
 Flags used to specify which aiding data to delete when calling delete_aiding_data().
typedef void(* gps_location_callback )(GpsLocation *location)
 Callback with location information.
typedef void(* gps_status_callback )(GpsStatus *status)
 Callback with status information.
typedef void(* gps_sv_status_callback )(GpsSvStatus *sv_info)
 Callback with SV status information.
typedef void(* gps_xtra_download_request )()
 Callback to request the client to download XTRA data.

Functions

const GpsInterfacegps_get_hardware_interface ()
 Returns the hardware GPS interface.
const GpsInterfacegps_get_qemu_interface ()
 Returns the qemu emulated GPS interface.
const GpsInterfacegps_get_interface ()
 Returns the default GPS interface.

Typedef Documentation

typedef void(* gps_location_callback)(GpsLocation *location)

Callback with location information.

Definition at line 166 of file gps.h.

typedef void(* gps_status_callback)(GpsStatus *status)

Callback with status information.

Definition at line 169 of file gps.h.

typedef void(* gps_sv_status_callback)(GpsSvStatus *sv_info)

Callback with SV status information.

Definition at line 172 of file gps.h.

typedef void(* gps_xtra_download_request)()

Callback to request the client to download XTRA data.

The client should download XTRA data and inject it by calling inject_xtra_data().

Definition at line 226 of file gps.h.

typedef uint16_t GpsAidingData

Flags used to specify which aiding data to delete when calling delete_aiding_data().

Definition at line 75 of file gps.h.

typedef uint16_t GpsLocationFlags

Flags to indicate which values are valid in a GpsLocation.

Definition at line 59 of file gps.h.

typedef uint16_t GpsPositionMode

Requested mode for GPS operation.

Definition at line 33 of file gps.h.

typedef uint16_t GpsStatusValue

GPS status event values.

Definition at line 44 of file gps.h.

typedef int64_t GpsUtcTime

Milliseconds since January 1, 1970.

Definition at line 27 of file gps.h.


Function Documentation

const GpsInterface* gps_get_hardware_interface (  ) 

Returns the hardware GPS interface.

const GpsInterface* gps_get_interface (  ) 

Returns the default GPS interface.

const GpsInterface* gps_get_qemu_interface (  ) 

Returns the qemu emulated GPS interface.