accVibrationSetWakeup (Function) |
Top Previous Next |
Configure the system to wake from suspend on detection of vibration. See pmSuspend.
pmSuspend return codes for this wake-up source (shared with msVibrationSetWakeup ):
Input: Enable : BOOL Controls if enabling or disabling wake-up on vibration.
Sensitivity : SINT (-1..100, default -1)
To use vibration as a wake-up source, the sensitivity must not be 0.
Returns: INT
Declaration FUNCTION accVibrationSetWakeup : INT;
Example: INCLUDE rtcu.inc // Sleep 600 seconds or wake on vibration detection |