Home | History | Annotate | Download | only in mllite
      1 /*
      2  $License:
      3    Copyright 2011 InvenSense, Inc.
      4 
      5  Licensed under the Apache License, Version 2.0 (the "License");
      6  you may not use this file except in compliance with the License.
      7  You may obtain a copy of the License at
      8 
      9  http://www.apache.org/licenses/LICENSE-2.0
     10 
     11  Unless required by applicable law or agreed to in writing, software
     12  distributed under the License is distributed on an "AS IS" BASIS,
     13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  See the License for the specific language governing permissions and
     15  limitations under the License.
     16   $
     17  */
     18 
     19 /******************************************************************************
     20  *
     21  * $Id$
     22  *
     23  *****************************************************************************/
     24 
     25 #ifndef INV_SET_GYRO_BIAS__H__
     26 #define INV_SET_GYRO_BIAS__H__
     27 
     28 #include "mltypes.h"
     29 
     30 #ifdef __cplusplus
     31 extern "C" {
     32 #endif
     33 
     34 #define INV_SGB_NO_MOTION 4
     35 #define INV_SGB_FAST_NO_MOTION 5
     36 #define INV_SGB_TEMP_COMP 6
     37 
     38     inv_error_t inv_enable_set_bias(void);
     39     inv_error_t inv_disable_set_bias(void);
     40     inv_error_t inv_set_gyro_bias_in_hw_unit(const short *bias, int mode);
     41     inv_error_t inv_set_gyro_bias_in_dps(const long *bias, int mode);
     42     inv_error_t inv_set_gyro_bias_in_dps_float(const float *bias, int mode);
     43     void inv_convert_bias(const unsigned char *regs, short *bias);
     44     void inv_set_motion_state(int motion);
     45 
     46 #ifdef __cplusplus
     47 }
     48 #endif
     49 #endif                          // INV_SET_GYRO_BIAS__H__
     50