This function will return the type of device the NMP is running on.
Input:
None.
Returns: INT
1
|
PNM-100.
|
2
|
PNM-200 Series.
|
0x100
to 0x10F
|
The 16 values from 0x100 to 0x10F are reserved for custom devices. The exact value depends on the configuration of the device.
|
0
|
- Navigation device is not present or no hardware ID is available.
|
-1
|
- Navigation interface is not open.
|
-11
|
- This is not supported by the device (the device is not an NMP device).
|
Declaration:
FUNCTION nmpGetHardwareID : INT;
Example:
INCLUDE rtcu.inc
PROGRAM NMPExample;
BEGIN
...
DebugFmt(message := "NMP device type: \1", v1 := nmpGetHardwareID());
...
END;
END_PROGRAM;
|