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: mputest.h 4051 2010-11-19 04:51:58Z mcaramello $ 22 * 23 *****************************************************************************/ 24 25 #ifndef MPUTEST_H 26 #define MPUTEST_H 27 28 #ifdef __cplusplus 29 extern "C" { 30 #endif 31 32 #include "mlsl.h" 33 #include "mldl_cfg.h" 34 #include "mputest_legacy.h" 35 36 /* user facing APIs */ 37 inv_error_t inv_factory_calibrate(void *mlsl_handle, 38 uint_fast8_t provide_result); 39 void inv_set_test_parameters(unsigned int slave_addr, float sensitivity, 40 int p_thresh, float total_time_tol, 41 int bias_thresh, float rms_thresh, 42 float sp_shift_thresh, 43 unsigned short accel_samples); 44 45 /* additional functions */ 46 int inv_mpu_test(void *mlsl_handle, uint_fast8_t provide_result); 47 48 49 #ifdef __cplusplus 50 } 51 #endif 52 53 #endif /* MPUTEST_H */ 54 55