The dwSensorGPS_readFrame()
function reads the next available GPS data frame with a given timeout. The function call is blocking, until a GPS frame is available or the timeout is exceeded. Frames read from the sensor do not have to be returned because the messages are copied.
Depending on the particular GPS sensor capabilities, a GPS frame can be only partially filled with data. The dwGPSFlags
are used to indicate which fields in dwGPSFrame
are valid.
The following code shows the general structure of a program reading data from a GPS sensor.
For more details see GPS Location Logger Sample