canSetWakeup (Function) |
Top Previous Next |
This function is used to configure the system to wake from suspend when a CAN message is received. It is similar to using the CAN parameter on pmWaitEvent.
pmSuspend return codes for this wake-up source:
Input: enable : BOOL (default: TRUE) Set to true to enable the wake-up, set to false to disable it.
port : SINT (1/2) (default 1) The port of the CAN bus.
Returns: INT
Declaration: FUNCTION ALIGN canSetWakeup : INT;
Example: INCLUDE rtcu.inc |