Click or drag to resize

GM_GPSStartTrackingSerial

Starts tracking a GPS device connected to a serial port. The GPS will actually be tracked on a background thread, so this function will return quickly and possibly before a connection is established.

If a callback function is provided, it will be called on the GPS thread whenever new GPS locations are received and when the GPS tracking state changes.

If you provide a format value of GPS_FORMAT_AUTODETECT, a GPS connection will automatically be checked for on connected serial and USB devices.

Syntax
GM_Error_t32 GM_GPSStartTrackingSerial
( 
GM_gps_format_t8        aFormat,        // format (NMEA or Garmin)
uint8                   aPort,          // COM port for serial connections
uint32                  aBaud,          // baud rate for serial port
GM_GPSCallbackFunc      aCallbackFunc,  // optional callback function
uint32                  aReserved       // 32-bit reserved value (must be 0)
);