accOpen (Function) |
Top Previous Next |
This function will open the accelerometer interface. Calling this function is required before the accelerometer interface can be used. This interface and the Motion Sensor (MS) interface are mutually exclusive, thus only one of them can be used at a time. See also msOpen.
The device is unable to detect vibration (using pmVibration or pmWaitEvent) when the acceleration interface is open.
Modes The mode parameter will determine how if acceleration event and readings are relative to motion or gravity of earth.
Acceleration measured as it reaches a constant acceleration in both ABSOLUTE and RELATIVE mode.
Input: Mode : SINT (1..3, Default 1) Determine how accelerations and events are measured and triggered, for details see description of the modes above.
Returns: INT
Declaration: FUNCTION accOpen : INT;
Example: INCLUDE rtcu.inc |