| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

isf_sensor_configuration.c
Go to the documentation of this file.
1 /**
2 * @file isf_sensor_configuration.c
3 *
4 * @brief The \b isf_sensor_configuration.c file contains the list of Digital Sensor Abstraction (DSA)
5 * sensor drivers and static definition of individual sensor-specific settings.
6 *
7 * @copyright Copyright (c) 2015, Freescale Semiconductor, Inc.
8 */
9
10 #include "isf_sysconf_comms.h"
11 #include <isf_sensor_configuration.h>
12
13 #include <Custom_1.h>
14 #include <FXAS21002_1.h>
15 #include <FXAS21002_2.h>
16 #include <FXLC95000_1.h>
17 #include <FXLC95000_2.h>
18 #include <FXLS8471_1.h>
19 #include <FXLS8471_2.h>
20 #include <FXLS8952_1.h>
21 #include <FXOS8700_1.h>
22 #include <FXOS8700_2.h>
23 #include <Analog_1.h>
24 #include <MAG3110_1.h>
25 #include <MMA8491Q_1.h>
26 #include <MMA865x_1.h>
27 #include <MMA955x_1.h>
28 #include <MMA955x_2.h>
29 #include <MPL3115_1.h>
30 #include <ORIENT_1.h>
31
32 /*!
33 * @brief This is the global DSA sensor driver list currently supported by the Sensor Manager component.
34 * Each array element describes the sensor driver for the individual sensor located
35 * at the specified device channel and the device address.
36 */
37 const isf_SensorConfig_t gSensorList[] =
38 { /* *pAdapter, *pSensorSpecificSettings, device channel, device info */
39 {&Custom_1_Adapter, &Custom_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &Custom_1_DeviceInfo},
40 {&FXAS21002_1_Adapter, &FXAS21002_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &FXAS21002_1_DeviceInfo},
41 {&FXAS21002_2_Adapter, &FXAS21002_2_Sensor_Specific_Config, COMM_CHANNEL_SPI1, &FXAS21002_2_DeviceInfo},
42 {&FXLC95000_1_Adapter, &FXLC95000_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &FXLC95000_1_DeviceInfo},
43 {&FXLC95000_2_Adapter, &FXLC95000_2_Sensor_Specific_Config, COMM_CHANNEL_SPI1, &FXLC95000_2_DeviceInfo},
44 {&FXLS8471_1_Adapter, &FXLS8471_1_Sensor_Specific_Config, COMM_CHANNEL_SPI1, &FXLS8471_1_DeviceInfo},
45 {&FXLS8471_2_Adapter, &FXLS8471_2_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &FXLS8471_2_DeviceInfo},
46 {&FXLS8952_1_Adapter, &FXLS8952_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &FXLS8952_1_DeviceInfo},
47 {&FXOS8700_1_Adapter, &FXOS8700_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &FXOS8700_1_DeviceInfo},
48 {&FXOS8700_2_Adapter, &FXOS8700_2_Sensor_Specific_Config, COMM_CHANNEL_SPI1, &FXOS8700_2_DeviceInfo},
49 {&Analog_1_Adapter, &Analog_1_Sensor_Specific_Config, COMM_CHANNEL_INTERNAL, &Analog_1_DeviceInfo},
50 {&MAG3110_1_Adapter, &MAG3110_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &MAG3110_1_DeviceInfo},
51 {&MMA8491Q_1_Adapter, &MMA8491Q_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &MMA8491Q_1_DeviceInfo},
52 {&MMA865x_1_Adapter, &MMA865x_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &MMA865x_1_DeviceInfo},
53 {&MMA955x_1_Adapter, &MMA955x_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &MMA955x_1_DeviceInfo},
54 {&MMA955x_2_Adapter, &MMA955x_2_Sensor_Specific_Config, COMM_CHANNEL_SPI1, &MMA955x_2_DeviceInfo},
55 {&MPL3115_1_Adapter, &MPL3115_1_Sensor_Specific_Config, COMM_CHANNEL_I2C1, &MPL3115_1_DeviceInfo},
56 {&ORIENT_1_Adapter, &ORIENT_1_Sensor_Specific_Config, COMM_CHANNEL_INTERNAL, 0},
57 };
58
59 /*!
60 * @brief Definition and initialization of the global variable for the total number of
61 * digital sensors currently supported by the system.
62 * \n This definition is used by the Sensor Manager and the Digital Sensor Abstraction implementation.
63 */
64 uint8 gNumSupportedSensors = sizeof(gSensorList)/sizeof(isf_SensorConfig_t);
65
66 /*!
67 * @brief This is the global DSA sensor driver list of the current sensor handles.
68 */
69 isf_SensorHandle_t *gSensorHandleList[sizeof(gSensorList)/sizeof(isf_SensorConfig_t)];
70
71
72
MAG3110_1_DeviceInfo
const i2c_device_t MAG3110_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MAG3110_1.c:87
FXLC95000_1_Adapter
const isf_dsa_Adapter_t FXLC95000_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXLC95000_1.c:180
isf_sysconf_comms.h
This file defines the system configuration for the communication channel.
uint8
unsigned char uint8
Definition: isf_types.h:76
Custom_1_Sensor_Specific_Config
Custom_1_Sensor_Specific_Settings_t Custom_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: fsl_Sensor_Custom_1_Functions.c:62
FXAS21002_1_DeviceInfo
const i2c_device_t FXAS21002_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXAS21002_1.c:92
FXAS21002_1.h
MMA8491Q_1_Adapter
const isf_dsa_Adapter_t MMA8491Q_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: MMA8491Q_1.c:56
SensorConfig_st
This defines the DSA sensor configuration structure defining each individual sensor adapter in the DS...
Definition: isf_dsa_adapter.h:154
COMM_CHANNEL_INTERNAL
Definition: isf_sysconf_comms.h:29
ORIENT_1.h
Analog_1_DeviceInfo
const Analog_1_device_t Analog_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: fsl_Sensor_Analog_1_Functions.c:70
FXLS8952_1_Sensor_Specific_Config
fxls8952_Sensor_Specific_Settings_t FXLS8952_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXLS8952_1.c:133
MMA865x_1_Adapter
const isf_dsa_Adapter_t MMA865x_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: MMA865x_1.c:111
MMA8491Q_1_DeviceInfo
const i2c_device_t MMA8491Q_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MMA8491Q_1.c:71
FXOS8700_2_Adapter
const isf_dsa_Adapter_t FXOS8700_2_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXOS8700_2.c:151
FXOS8700_1_DeviceInfo
const i2c_device_t FXOS8700_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXOS8700_1.c:157
FXLC95000_2_DeviceInfo
const spi_master_CommSpecificInfo_t FXLC95000_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLC95000_2.c:214
Custom_1_Adapter
const isf_dsa_Adapter_t Custom_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: Custom_1.c:43
MPL3115_1.h
ORIENT_1_Adapter
const isf_dsa_Adapter_t ORIENT_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: ORIENT_1.c:88
isf_SensorHandle_st
This defines the DSA sensor device handle structure used to invoke the adapter access functions...
Definition: isf_dsa_adapter.h:107
FXLS8471_1_Sensor_Specific_Config
fxls8471_Sensor_Specific_Settings_t FXLS8471_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXLS8471_1.c:115
Custom_1_DeviceInfo
const i2c_device_t Custom_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: fsl_Sensor_Custom_1_Functions.c:80
FXAS21002_2_DeviceInfo
const spi_master_CommSpecificInfo_t FXAS21002_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXAS21002_2.c:112
gSensorHandleList
isf_SensorHandle_t * gSensorHandleList[sizeof(gSensorList)/sizeof(isf_SensorConfig_t)]
This is the global DSA sensor driver list of the current sensor handles.
Definition: isf_sensor_configuration.c:69
gNumSupportedSensors
uint8 gNumSupportedSensors
Definition and initialization of the global variable for the total number of digital sensors currentl...
Definition: isf_sensor_configuration.c:64
isf_sensor_configuration.h
The isf_sensor_configuration.h contains the enumerated list of Digital Sensor Abstraction (DSA) senso...
FXLS8952_1_DeviceInfo
const i2c_device_t FXLS8952_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLS8952_1.c:194
Custom_1.h
MMA955x_1_Sensor_Specific_Config
mma955x_Sensor_Specific_Settings_t MMA955x_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MMA955x_1.c:172
MMA8491Q_1.h
MMA8491Q_1_Sensor_Specific_Config
mma8491q_Sensor_Specific_Settings_t MMA8491Q_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MMA8491Q_1.c:47
FXLS8471_1_DeviceInfo
const spi_master_CommSpecificInfo_t FXLS8471_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLS8471_1.c:204
FXLS8471_2.h
FXAS21002_1_Adapter
const isf_dsa_Adapter_t FXAS21002_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXAS21002_1.c:77
FXLS8952_1_Adapter
const isf_dsa_Adapter_t FXLS8952_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXLS8952_1.c:179
MMA955x_1_Adapter
const isf_dsa_Adapter_t MMA955x_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: MMA955x_1.c:198
FXLC95000_2_Sensor_Specific_Config
fxlc95000_Sensor_Specific_Settings_t FXLC95000_2_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXLC95000_2.c:157
MAG3110_1.h
COMM_CHANNEL_I2C1
Definition: isf_sysconf_comms.h:30
FXOS8700_1_Adapter
const isf_dsa_Adapter_t FXOS8700_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXOS8700_1.c:142
Analog_1.h
FXLS8471_1.h
FXLS8471_1_Adapter
const isf_dsa_Adapter_t FXLS8471_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXLS8471_1.c:178
MPL3115_1_Adapter
const isf_dsa_Adapter_t MPL3115_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: MPL3115_1.c:89
Analog_1_Sensor_Specific_Config
Analog_1_Sensor_Specific_Settings_t Analog_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: fsl_Sensor_Analog_1_Functions.c:78
MMA955x_2.h
MMA955x_1_DeviceInfo
const i2c_device_t MMA955x_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MMA955x_1.c:213
FXOS8700_1_Sensor_Specific_Config
fxos8700_Sensor_Specific_Settings_t FXOS8700_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXOS8700_1.c:90
MPL3115_1_DeviceInfo
const i2c_device_t MPL3115_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MPL3115_1.c:104
FXLS8952_1.h
FXOS8700_2.h
MMA955x_2_Adapter
const isf_dsa_Adapter_t MMA955x_2_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: MMA955x_2.c:204
MMA865x_1.h
MMA955x_2_Sensor_Specific_Config
mma955x_Sensor_Specific_Settings_t MMA955x_2_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MMA955x_2.c:178
FXLC95000_2.h
MMA955x_1.h
MMA865x_1_DeviceInfo
const i2c_device_t MMA865x_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MMA865x_1.c:126
FXAS21002_2_Adapter
const isf_dsa_Adapter_t FXAS21002_2_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXAS21002_2.c:86
FXLC95000_1.h
gSensorList
const isf_SensorConfig_t gSensorList[]
This is the global DSA sensor driver list currently supported by the Sensor Manager component...
Definition: isf_sensor_configuration.c:37
ORIENT_1_Sensor_Specific_Config
fsl_fusion_Sensor_Specific_Settings_t ORIENT_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: ORIENT_1.c:68
FXAS21002_2_Sensor_Specific_Config
fxas21002_Sensor_Specific_Settings_t FXAS21002_2_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXAS21002_2.c:67
FXOS8700_1.h
MAG3110_1_Sensor_Specific_Config
mag3110_Sensor_Specific_Settings_t MAG3110_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MAG3110_1.c:51
MMA865x_1_Sensor_Specific_Config
mma865x_Sensor_Specific_Settings_t MMA865x_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MMA865x_1.c:70
FXLC95000_2_Adapter
const isf_dsa_Adapter_t FXLC95000_2_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXLC95000_2.c:188
MAG3110_1_Adapter
const isf_dsa_Adapter_t MAG3110_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: MAG3110_1.c:72
MPL3115_1_Sensor_Specific_Config
mpl3115_Sensor_Specific_Settings_t MPL3115_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MPL3115_1.c:48
FXLC95000_1_DeviceInfo
const i2c_device_t FXLC95000_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLC95000_1.c:196
FXLS8471_2_DeviceInfo
const i2c_device_t FXLS8471_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLS8471_2.c:184
FXOS8700_2_Sensor_Specific_Config
fxos8700_Sensor_Specific_Settings_t FXOS8700_2_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXOS8700_2.c:99
COMM_CHANNEL_SPI1
Definition: isf_sysconf_comms.h:31
FXAS21002_1_Sensor_Specific_Config
fxas21002_Sensor_Specific_Settings_t FXAS21002_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXAS21002_1.c:58
FXLC95000_1_Sensor_Specific_Config
fxlc95000_Sensor_Specific_Settings_t FXLC95000_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXLC95000_1.c:149
Analog_1_Adapter
const isf_dsa_Adapter_t Analog_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: Analog_1.c:47
MMA955x_2_DeviceInfo
const spi_master_CommSpecificInfo_t MMA955x_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MMA955x_2.c:229
FXLS8471_2_Adapter
const isf_dsa_Adapter_t FXLS8471_2_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXLS8471_2.c:169
FXOS8700_2_DeviceInfo
const spi_master_CommSpecificInfo_t FXOS8700_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXOS8700_2.c:177
FXLS8471_2_Sensor_Specific_Config
fxls8471_Sensor_Specific_Settings_t FXLS8471_2_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXLS8471_2.c:106
FXAS21002_2.h
- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.