msAccEnable (Function) |
Top Previous Next |
Configure and enable/disable the accelerometer for data acquisition using msDataSet with msRead or through the data logger (see msLoggerCreate). The accelerometer data can reflect either absolute or relative mode. In absolute mode the 1g gravity pull on the device will show, otherwise not. Mixed mode gives absolute data readings, but events are triggered by relative measurements.
Input: Enable : BOOL (default TRUE) Enable or disable the accelerometer.
Mode : SINT (1, 2, 3) (default 2) Mode of operation. 1 = relative mode, 2 = absolute mode, 3 = mixed mode.
Resolution : INT (2, 4, 8, 16) (default 16) The range of the measurements the device can measure in units of gravity g. F.ex. the value 2 represents the range: [-2g ; +2g].
Returns: INT
Declaration FUNCTION msAccEnable : INT; Example: INCLUDE rtcu.inc |