Global Mapper SDK
GM_GPSStartTrackingUSB
Note: Currently only Garmin USB devices are supported.
Starts tracking a GPS device connected to a USB 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.
Syntax
C++
Copy
GM_Error_t32 GM_GPSStartTrackingUSB
(
GM_GPSCallbackFunc aCallbackFunc, // optional callback function
uint32 aReserved // 32-bit reserved value (must be 0)
);