1 /*
2  * Copyright (c) 2016, Freescale Semiconductor, Inc.
3  * Copyright 2016-2017 NXP
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 /**
10  * @file auto_detection_shield.h
11  * @brief The auto_detection_shield.h file describes the definitions for Sensor
12  * I2C and SPI parameters required to detects the Sensor Shield.
13  */
14 
15 #ifndef _ADS_DETECTION_SHIELD_H_
16 #define _ADS_DETECTION_SHIELD_H_
17 
18 // FXOS8700 Sensor Information
19 /*
20    In order to route INT1 signal from FXOS8700 to the K64F,
21    Pins 1-2 of Jumper J3 on the FRDM-FXS-MULT2-B should be connected.
22    In order to route INT2 signal from FXOS8700 to the K64F,
23    Pins 1-2 of Jumper J4 on the FRDM-FXS-MULT2-B should be connected.
24 */
25 #define FXOS8700_I2C_ADDR 0x1E
26 
27 // FXAS21002 Sensor Information
28 /*
29    In order to route INT1 signal from FXAS21002 to the K64F,
30    Pins 1-2 of Jumper J6 on the FRDM-FXS-MULT2-B should be connected.
31 */
32 #define FXAS21002_I2C_ADDR 0x20
33 
34 // MAG3110 Sensor Information
35 /*
36    In order to route INT1 signal from MAG3110 to the K64F,
37    Pins 2-3 of Jumper J3 on the FRDM-FXS-MULT2-B should be connected.
38 */
39 #define MAG3110_I2C_ADDR 0x0E
40 
41 // MPL3115 Sensor Information
42 /*
43    In order to route INT1 signal from MPL3115 to the K64F,
44    Pins 2-3 of Jumper J5 on the FRDM-FXS-MULT2-B should be connected.
45 */
46 #define MPL3115_I2C_ADDR 0x60
47 
48 // FXPQ3115 Sensor Information
49 #define FXPQ3115_I2C_ADDR 0x60
50 
51 // MMA8652 Sensor Information
52 /*
53    In order to route INT1 signal from MMA8652 to the K64F,
54    Pins 2-3 of Jumper J4 on the FRDM-FXS-MULT2-B should be connected.
55 */
56 #define MMA8652_I2C_ADDR 0x1D
57 
58 // FXLS8471Q Sensor Information
59 /*
60    In order to route INT1 signal from FXLS8471Q to the FRDM-K64F,
61    Pins 2-3 of Jumper J6 on the FRDM-FXS-MULT2-B should be connected.
62 */
63 #define FXLS8471_SPI_CS D10
64 
65 // FXLS8962 Sensor Information
66 #define FXLS8962_I2C_ADDR 0x18
67 #define FXLS8962_CS D10
68 
69 // FXLC95000 Sensor Information
70 #define FXLC95000_I2C_ADDR 0x4C
71 
72 // MMA9553 Sensor Information
73 #define MMA9553_I2C_ADDR 0x4C
74 
75 // MMA8491 Sensor Information
76 #define MMA8491_I2C_ADDR 0x55
77 #define MMA8491_EN A1
78 
79 // MMA8451 Sensor Information
80 #define MMA8451_I2C_ADDR 0x1D
81 
82 // DIFF-P Sensor Information
83 #define DIFF_P_I2C_ADDR 0x60
84 #define DIFF_P_SPI_CS D10
85 
86 #endif /* _ADS_DETECTION_SHIELD_H_ */
87