summaryrefslogtreecommitdiffstats
path: root/libsensors/software/core/mpl/compass_fit.h
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2012-06-14 20:38:42 -0700
committerJP Abgrall <jpa@google.com>2012-06-14 20:38:42 -0700
commitc0aca57ba5869c883bb8ce2dd1d90db86c8212f9 (patch)
treea684dea6dd0805b37408f038fe64b609f0728005 /libsensors/software/core/mpl/compass_fit.h
parent8792ef0f74a024dec788de02f60280dd66f871f3 (diff)
downloadandroid_hardware_invensense-c0aca57ba5869c883bb8ce2dd1d90db86c8212f9.tar.gz
android_hardware_invensense-c0aca57ba5869c883bb8ce2dd1d90db86c8212f9.tar.bz2
android_hardware_invensense-c0aca57ba5869c883bb8ce2dd1d90db86c8212f9.zip
HACK: libsensors: Initial attempt at MotionApps 5.1 for MPU6050 + AKM8975
The code in this patch still needs work. But checking it in will allow other parts of the sensor stack to have something to work with. 1. Have sensor HAL for IIO driver, which uses MPU6050 + AKM8975 (on 2nd bus). 2. Include MPL binaries (libmllite.so/libmplmpu.so). 3. Include necessary header files. 4. remove light sensor dependency. 5. add missing include file. 6. modify the module name into "manta". 7. remove mlsdk directory. 8. Fix some known issues. 9. Sync up to June.12. 10. Tweak slightly so that it can be used with other sensors on manta. Change-Id: Ibabcef6efe279724ad5d6f7640d66f99c59feaaf Signed-off-by: Mars Lee <mlee@invensense.com>
Diffstat (limited to 'libsensors/software/core/mpl/compass_fit.h')
-rw-r--r--libsensors/software/core/mpl/compass_fit.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libsensors/software/core/mpl/compass_fit.h b/libsensors/software/core/mpl/compass_fit.h
new file mode 100644
index 0000000..be3cce8
--- /dev/null
+++ b/libsensors/software/core/mpl/compass_fit.h
@@ -0,0 +1,28 @@
+/*
+ $License:
+ Copyright (C) 2011-2012 InvenSense Corporation, All Rights Reserved.
+ See included License.txt for License information.
+ $
+ */
+
+#ifndef INV_MLDMP_COMPASSFIT_H__
+#define INV_MLDMP_COMPASSFIT_H__
+
+#include "mltypes.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void inv_init_compass_fit(void);
+inv_error_t inv_enable_compass_fit(void);
+inv_error_t inv_disable_compass_fit(void);
+inv_error_t inv_start_compass_fit(void);
+inv_error_t inv_stop_compass_fit(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif // INV_MLDMP_COMPASSFIT_H__