|Top Previous Next|
This function is used to configure the system to wake from suspend when data is received on a serial port.
It is similar to using the ser0 and ser1 parameters on pmWaitEvent.
pmSuspend return codes for this wake-up source:
The ID variable is set to the port number of the affected serial port.
Enable : BOOL (default: TRUE)
Set to true to enable the wake-up, set to false to disable it.
Port : SINT (default: 0)
The serial port to wake on.
Mode : SINT (default: 0)
The type of event to wake on. Not all ports have support for all modes. Mode 0 will wake when data is received. Mode 1 will wake on any change on the bus and the received data is not available from serFrameReceiver.
FUNCTION ALIGN serSetWakeup:INT;