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
...
navETASetMode(mode := 3);
...
END;
END_PROGRAM;
|