Sets the protocol to be used to communicate with the GPS device.
Parameters
Parameters
Description
GPSPROTOCOL gpProtocol
Specifies the protocol used when communicating with the GPS device.
Return Value
If the GPS protocol is successfully set, then the return value will be GPSERROR_NONE. If the GPS protocol is not successfully set, then the return value will be GPSERROR_INVALID_PARAMETER.
Remarks
This function sets the protocol used by the Toolkit. This must match the protocol currently used by the GPS receiver, or communications will be disabled. For functions that cause the receiver protocol to be reconfigured, see NMEASwitchToSIRF, SirfSwitchToNMEA and GpsSwitchToProtocol.
See the Autodetect topic for special settings to initiate an automatic GPS receiver detection.