gpsPowerLP (Function)

Top  Previous  Next

Architecture:

NX32

Device support:

MX2 turbo/encore/warp, CX1 series.

Firmware version:

4.00


Similar to the gpsPower() function this function controls the power to the GPS receiver.

This function operates the GPS module at a lower communication speed than gpsPower(). When using gpsPowerLP the satellites in view will not be retrieved and gpsUpdateFreq() is only supported with 1 position per. second.

 

 

Input:

power : BOOL

TRUE:

Turns on the power.

FALSE:

Turns off the power.

 

Returns: INT

0

- Success

1

- Not supported.

2

- GPS already powered on by gpsPower

 

Declaration:

FUNCTION gpsPowerLP : INT;
VAR_INPUT
  power : BOOL;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Turn on power to the GPS module
gpsPowerLP(power := TRUE);
 
BEGIN
  ...
END;
 
END_PROGRAM;