ISSDK  1.7
IoT Sensing Software Development Kit
auto_detection_shield.h
Go to the documentation of this file.
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2016, Freescale Semiconductor, Inc.
4  * Copyright 2016-2017 NXP
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,
8  * are permitted (subject to the limitations in the disclaimer below) provided
9  * that the following conditions are met:
10  *
11  * o Redistributions of source code must retain the above copyright notice, this list
12  * of conditions and the following disclaimer.
13  *
14  * o Redistributions in binary form must reproduce the above copyright notice, this
15  * list of conditions and the following disclaimer in the documentation and/or
16  * other materials provided with the distribution.
17  *
18  * o Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from this
20  * software without specific prior written permission.
21  *
22  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 /**
36  * @file auto_detection_shield.h
37  * @brief The auto_detection_shield.h file describes the definitions for Sensor
38  * I2C and SPI parameters required to detects the Sensor Shield.
39  */
40 
41 #ifndef _ADS_DETECTION_SHIELD_H_
42 #define _ADS_DETECTION_SHIELD_H_
43 
44 // FXOS8700 Sensor Information
45 /*
46  In order to route INT1 signal from FXOS8700 to the K64F,
47  Pins 1-2 of Jumper J3 on the FRDM-FXS-MULT2-B should be connected.
48  In order to route INT2 signal from FXOS8700 to the K64F,
49  Pins 1-2 of Jumper J4 on the FRDM-FXS-MULT2-B should be connected.
50 */
51 #define FXOS8700_I2C_ADDR 0x1E
52 
53 // FXAS21002 Sensor Information
54 /*
55  In order to route INT1 signal from FXAS21002 to the K64F,
56  Pins 1-2 of Jumper J6 on the FRDM-FXS-MULT2-B should be connected.
57 */
58 #define FXAS21002_I2C_ADDR 0x20
59 
60 // MAG3110 Sensor Information
61 /*
62  In order to route INT1 signal from MAG3110 to the K64F,
63  Pins 2-3 of Jumper J3 on the FRDM-FXS-MULT2-B should be connected.
64 */
65 #define MAG3110_I2C_ADDR 0x0E
66 
67 // MPL3115 Sensor Information
68 /*
69  In order to route INT1 signal from MPL3115 to the K64F,
70  Pins 2-3 of Jumper J5 on the FRDM-FXS-MULT2-B should be connected.
71 */
72 #define MPL3115_I2C_ADDR 0x60
73 
74 // FXPQ3115 Sensor Information
75 #define FXPQ3115_I2C_ADDR 0x60
76 
77 // MMA8652 Sensor Information
78 /*
79  In order to route INT1 signal from MMA8652 to the K64F,
80  Pins 2-3 of Jumper J4 on the FRDM-FXS-MULT2-B should be connected.
81 */
82 #define MMA8652_I2C_ADDR 0x1D
83 
84 // FXLS8471Q Sensor Information
85 /*
86  In order to route INT1 signal from FXLS8471Q to the FRDM-K64F,
87  Pins 2-3 of Jumper J6 on the FRDM-FXS-MULT2-B should be connected.
88 */
89 #define FXLS8471_SPI_CS D10
90 
91 // FXLS8962 Sensor Information
92 #define FXLS8962_I2C_ADDR 0x18
93 #define FXLS8962_CS D10
94 
95 // FXLC95000 Sensor Information
96 #define FXLC95000_I2C_ADDR 0x4C
97 
98 // MMA9553 Sensor Information
99 #define MMA9553_I2C_ADDR 0x4C
100 
101 // MMA8491 Sensor Information
102 #define MMA8491_I2C_ADDR 0x55
103 #define MMA8491_EN A1
104 
105 // MMA8451 Sensor Information
106 #define MMA8451_I2C_ADDR 0x1D
107 
108 // DIFF-P Sensor Information
109 #define DIFF_P_I2C_ADDR 0x60
110 #define DIFF_P_SPI_CS D10
111 
112 #endif /* _ADS_DETECTION_SHIELD_H_ */