GpsReceiverDetectGps(SerialBaudRate, SerialBaudRate, SerialCommPort, SerialBaudRate) Method |
Detects the first GPS receiver connected to the system and returns as output parameters
the communication port and baud rate.
Only baud rate values between startBaudRate and endBaudRate are checked.
Namespace: ZylSoft.GpsAssembly: ZylGpsReceiver (in ZylGpsReceiver.dll) Version: 3.32.9621.18621
XMLNS for XAML: Not mapped to an xmlns.
Syntaxpublic bool DetectGps(
SerialBaudRate startBaudRate,
SerialBaudRate endBaudRate,
out SerialCommPort port,
out SerialBaudRate baudRate
)
Public Function DetectGps (
startBaudRate As SerialBaudRate,
endBaudRate As SerialBaudRate,
<OutAttribute> ByRef port As SerialCommPort,
<OutAttribute> ByRef baudRate As SerialBaudRate
) As Boolean
Dim instance As GpsReceiver
Dim startBaudRate As SerialBaudRate
Dim endBaudRate As SerialBaudRate
Dim port As SerialCommPort
Dim baudRate As SerialBaudRate
Dim returnValue As Boolean
returnValue = instance.DetectGps(startBaudRate,
endBaudRate, port, baudRate)
public:
bool DetectGps(
SerialBaudRate startBaudRate,
SerialBaudRate endBaudRate,
[OutAttribute] SerialCommPort% port,
[OutAttribute] SerialBaudRate% baudRate
)
member DetectGps :
startBaudRate : SerialBaudRate *
endBaudRate : SerialBaudRate *
port : SerialCommPort byref *
baudRate : SerialBaudRate byref -> bool public boolean DetectGps(
SerialBaudRate startBaudRate,
SerialBaudRate endBaudRate,
/** @attribute OutAttribute */ /** @ref */SerialCommPort port,
/** @attribute OutAttribute */ /** @ref */SerialBaudRate baudRate
)
public function DetectGps(
startBaudRate : SerialBaudRate,
endBaudRate : SerialBaudRate,
port : SerialCommPort,
baudRate : SerialBaudRate
) : boolean
function DetectGps(startBaudRate, endBaudRate, port, baudRate);
METHOD DetectGps(
startBaudRate AS SerialBaudRate,
endBaudRate AS SerialBaudRate,
port OUT SerialCommPort,
baudRate OUT SerialBaudRate
) AS LOGIC
No code example is currently available or this language may not be supported.
Parameters
- startBaudRate SerialBaudRate
-
The lower baud rate limit used at the detection process.
- endBaudRate SerialBaudRate
-
The higher baud rate limit used at the detection process.
- port SerialCommPort
-
The serial port where the GPS receiver is connected to.
- baudRate SerialBaudRate
-
Baud rate of the communication.
Return Value
Boolean
Returns true, if a GPS receiver was detected, otherwise false.
See Also