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: pressure.h 4092 2010-11-17 23:49:22Z kkeal $
21 *
22 *******************************************************************************/
23
24#ifndef PRESSURE_H
25#define PRESSURE_H
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include "mltypes.h"
32#include "mpu.h"
33#ifdef INV_INCLUDE_LEGACY_HEADERS
34#include "pressure_legacy.h"
35#endif
36
37    /* ------------ */
38    /* - Defines. - */
39    /* ------------ */
40
41#define USE_PRESSURE_BMA                    0
42
43#define PRESSURE_SLAVEADDR_INVALID          0x00
44#define PRESSURE_SLAVEADDR_BMA085           0x77
45
46/*
47    Define default pressure to use if no selection is made
48*/
49#if USE_PRESSURE_BMA
50#define DEFAULT_PRESSURE_TYPE              PRESSURE_ID_BMA
51#endif
52
53    /* --------------- */
54    /* - Structures. - */
55    /* --------------- */
56
57    /* --------------------- */
58    /* - Function p-types. - */
59    /* --------------------- */
60
61    unsigned char inv_pressure_present(void);
62    unsigned char inv_get_pressure_slave_addr(void);
63    inv_error_t inv_suspend_pressure(void);
64    inv_error_t inv_resume_presure(void);
65    inv_error_t inv_get_pressure_data(long *data);
66    unsigned short inv_get_pressure_id(void);
67
68#ifdef __cplusplus
69}
70#endif
71#endif                          // PRESSURE_H
72