nmpGetHardwareID (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2i pro, CX1 pro/flex/warp, SX1, MX2 turbo, NX-200, NX-400, NX-900, LX2

Firmware version:

2.84 / 1.00.00

Nav. API level:

2


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
  ...   // Read device type
  DebugFmt(message := "NMP device type: \1", v1 := nmpGetHardwareID());
  ...
END;
END_PROGRAM;