msVibrationSetWakeup (Function) |
Top Previous Next |
Configure the system to wake from suspend on detection of vibration. See pmSuspend.
Note: The Motion Sensor interface must be opened with msOpen before calling this function. To wake on vibration without calling msOpen, see accVibrationSetWakeup.
pmSuspend return codes for this wake-up source:
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 msVibrationSetWakeup : INT;
Example: INCLUDE rtcu.inc // Sleep 600 seconds or wake on vibration detection |