Home | History | Annotate | Download | only in mpl
      1 /*
      2  $License:
      3     Copyright (C) 2011-2012 InvenSense Corporation, All Rights Reserved.
      4     See included License.txt for License information.
      5  $
      6  */
      7 
      8 /******************************************************************************
      9  *
     10  * $Id$
     11  *
     12  *****************************************************************************/
     13 
     14 #ifndef MLDMP_FAST_NO_MOTION_H__
     15 #define MLDMP_FAST_NO_MOTION_H__
     16 
     17 #include "mltypes.h"
     18 
     19 #ifdef __cplusplus
     20 extern "C" {
     21 #endif
     22 
     23     inv_error_t inv_enable_fast_nomot(void);
     24     inv_error_t inv_disable_fast_nomot(void);
     25     inv_error_t inv_start_fast_nomot(void);
     26     inv_error_t inv_stop_fast_nomot(void);
     27     inv_error_t inv_init_fast_nomot(void);
     28     void inv_set_default_number_of_samples(int count);
     29     inv_error_t inv_fast_nomot_is_enabled(unsigned char *is_enabled);
     30     inv_error_t inv_update_fast_nomot(long *gyro);
     31 
     32     void inv_get_fast_nomot_accel_param(long *cntr, long long *param);
     33     void inv_get_fast_nomot_compass_param(long *cntr, long long *param);
     34     void inv_set_fast_nomot_accel_threshold(long long thresh);
     35     void inv_set_fast_nomot_compass_threshold(long long thresh);
     36     void int_set_fast_nomot_gyro_threshold(long long thresh);
     37 
     38     inv_time_t fast_nomot_get_gyro_bias_update_time(void);
     39     void fast_nomot_set_gyro_bias_update_time(struct inv_sensor_cal_t *sensor_cal);
     40 
     41     int fast_nomot_get_gyro_calibration_confidence_level(struct inv_sensor_cal_t *sensor_cal);
     42     void fast_nomot_set_gyro_calibration_confidence_level_time_threshold(float time_seconds);
     43 
     44     void inv_fnm_debug_print(void);
     45 
     46 #ifdef __cplusplus
     47 }
     48 #endif
     49 
     50 
     51 #endif // MLDMP_FAST_NO_MOTION_H__
     52 
     53