summaryrefslogtreecommitdiffstats
path: root/libsensors_iio/software/simple_apps/common/gestureMenu.h
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2012-10-03 20:16:57 -0700
committerJP Abgrall <jpa@google.com>2012-10-03 20:16:57 -0700
commit33ce91b37062fa63af192f5643de93f3beebe854 (patch)
treeba6a03c7954a32ce23b00c6d46cd3d524f4d7007 /libsensors_iio/software/simple_apps/common/gestureMenu.h
parent64ca18f95225d0a86f7ccfd1d21c23971b9f77ae (diff)
downloadandroid_hardware_invensense-33ce91b37062fa63af192f5643de93f3beebe854.tar.gz
android_hardware_invensense-33ce91b37062fa63af192f5643de93f3beebe854.tar.bz2
android_hardware_invensense-33ce91b37062fa63af192f5643de93f3beebe854.zip
1. Removed all #ifdef in HAL's member APIs. 2. Added necessary comments as reference. 3. Made changes for coding style, optimization and so on per prior comments. 4. Now raw/calibrated gyroscope sensors could co-exist Default sensor would be calibrated gyroscope sensor for getDefaultSensor() call in Android. * Correctly handle onPower()/masterEnable(). * Use the support functions for reading/writing sysfs. 1 line instead of 9 all over the place. * Fix return code for {read,write}_sysfs_int(): was > 0 in case of failure instead of < 0. Bug: 7211625 Change-Id: Ib49dab8ca0f48f45a2838de72f4f8ac011d0e68f
Diffstat (limited to 'libsensors_iio/software/simple_apps/common/gestureMenu.h')
-rw-r--r--libsensors_iio/software/simple_apps/common/gestureMenu.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/libsensors_iio/software/simple_apps/common/gestureMenu.h b/libsensors_iio/software/simple_apps/common/gestureMenu.h
deleted file mode 100644
index 8f804e1..0000000
--- a/libsensors_iio/software/simple_apps/common/gestureMenu.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- $License:
- Copyright (C) 2011 InvenSense Corporation, All Rights Reserved.
- $
- */
-/***************************************************************************** *
- * $Id: gestureMenu.h 5705 2011-06-28 19:32:29Z nroyer $
- ******************************************************************************/
-/**
- * @defgroup
- * @brief
- *
- * @{
- * @file gestureMenu.h
- * @brief
- *
- *
- */
-
-#ifndef __GESTUREMENU_H__
-#define __GESTUREMENU_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/******************************************************************************/
- typedef struct sGestureMenuParams {
- /* Tap Params */
- int xTapThreshold;
- int yTapThreshold;
- int zTapThreshold;
- int tapTime;
- int nextTapTime;
- int maxTaps;
- float shakeRejectValue;
-
- /* Shake Params */
- int xShakeThresh;
- int yShakeThresh;
- int zShakeThresh;
- int xSnapThresh;
- int ySnapThresh;
- int zSnapThresh;
- int shakeTime;
- int nextShakeTime;
- int shakeFunction;
- int maxShakes;
-
- /* Yaw rotate params */
- int yawRotateTime;
- int yawRotateThreshold;
-
- /* Orientation */
- float orientationThreshold;
- int sensorsIndex;
- unsigned long available_sensors;
- } tGestureMenuParams;
-
- void PrintGestureMenu(tGestureMenuParams const * const params) ;
- inv_error_t GestureMenuProcessChar(tGestureMenuParams * const params,char ch);
- void PrintGesture(gesture_t* gesture);
- void PrintOrientation(unsigned short orientation);
- void GestureMenuSetDefaults(tGestureMenuParams * const params);
- void GestureMenuSetAvailableSensors(tGestureMenuParams * const params,
- unsigned long available_sensors);
- inv_error_t GestureMenuSetMpl(tGestureMenuParams const * const params);
-
-/******************************************************************************/
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // __GESTUREMENU_H__