ContentsIndex
PreviousUpNext
GPS
Topics | Functions | Structs, Records, Enums | Types
Description

The GPS API allows you to receive location data.

Introduction

To use the GPS-related functions, call vm_gps_open() to assign the required global navigation satellite system and assign a callback function that will handle the events. vm_gps_callback will handle the callbacks, please refer to VM_GPS_MESSAGE for details on the different messages. 

To setup optional parameters, use vm_gps_set_parameter, please refer to VM_GPS_PARAMETERS for more information. 

Once the satellite system has located the current position, the callback function registered in vm_gps_open() will start receiving messages of type VM_GPS_SENTENCE_DATA. You should then parse the NMEA sentences to retrieve the information needed. Please refer to http://www.gpsinformation.org/dale/nmea.htm for details on NMEA. 

To switch off the GPS functionality, call vm_gps_close().

Limitation

N/A

Functions
Function 
Description 
This function will close the GPS if it is not in use by any other application. 
This function gets a GPS parameter. 
This initializes the GPS and opens the UART port. 
This function sets a GPS parameter. 
Structs, Records, Enums
Struct, Record, Enum 
Description 
The GPS assist data. 
The GPS callback message. 
GPS open confirm message structures 
The GPS start parameters. 
The GPS data structures 
The GPS type. GPS is always available and it can be enhanced with the optional support of Beidou and GLONASS. The actual support of multiple satellite systems is dependent on the underlying hardware platform. GPS type. The type is dependent on your GPS chipset. Only MediaTek MTK3336 supports VM_GPS_ONLY. 
Types
Type 
Description 
This function represents a GPS callback. 
Links
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.