displayKeySetWakeup (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-400, LX4

Firmware version:

1.36.00


This function is used to configure the system to wake from suspend when the touch screen is pressed.

It is similar to using the key parameter on pmWaitEvent.

 

pmSuspend return codes for this wake-up source:

Error

Type

ID

Value

Description

False

8

0

1

Wake-up on screen press.

 

 

Input:

 

Enable : BOOL (default: TRUE)

Set to true to enable the wake-up, set to false to disable it.

 

Returns:

1

- The system has been configured to wake.

0

- This function is not supported.

 

Declaration:

FUNCTION ALIGN displayKeySetWakeup:INT;
VAR_INPUT
  enable: BOOL := TRUE;
END_VAR;
 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // Enable wake on touch screen press
  displayKeySetWakeup();
  ...
END;
 
END_PROGRAM;