navETASetMode (Function)

Top  Previous  Next

Architecture:

NX32 / NX32L

Device support:

MX2 turbo/encore/warp, AX9 turbo, NX-200, NX-400, NX-900, LX2, LX4, LX5

Firmware version:

4.70 / 1.30.00

Nav. API level:

23


This function is used to configure what ETA events should be reported while driving.

By default only ETA events for stops created with the API are reported.

This setting is stored across reboots of the navigation device.

 

Input:

mode : SINT (0..3)

The wanted reporting mode:

0

- No ETA events.

1

- Only ETA events for stops created with this API.

2

- Only ETA events for user created stops.

3

- All ETA events.

 

 

Returns: INT

0

- Success.

-1

- Navigation interface is not opened.

-2

- Error communicating with navigation device.

-4

- The navigation device rejected the command.

-8

- Invalid mode.

-11

- Changing the ETA mode is not supported.

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION navETASetMode : INT;
VAR_INPUT
  mode     : SINT;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM NavigationExample;
 
BEGIN
  ...
  // Set mode to 3, all ETA events
  navETASetMode(mode := 3);
  ...
END;
END_PROGRAM;