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 * $Id: accel.h 4580 2011-01-22 03:19:23Z prao $ 21 * 22 *******************************************************************************/ 23 24 #ifndef ACCEL_H 25 #define ACCEL_H 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30 31 #include "mltypes.h" 32 #include "mpu.h" 33 #ifdef INV_INCLUDE_LEGACY_HEADERS 34 #include "accel_legacy.h" 35 #endif 36 37 /* ------------ */ 38 /* - Defines. - */ 39 /* ------------ */ 40 41 /* --------------- */ 42 /* - Structures. - */ 43 /* --------------- */ 44 45 /* --------------------- */ 46 /* - Function p-types. - */ 47 /* --------------------- */ 48 49 unsigned char inv_accel_present(void); 50 unsigned char inv_get_slave_addr(void); 51 inv_error_t inv_get_accel_data(long *data); 52 unsigned short inv_get_accel_id(void); 53 54 #ifdef __cplusplus 55 } 56 #endif 57 #endif // ACCEL_H 58