| ISF 2.1 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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) 2014, Freescale Semiconductor, Inc.
8 */
9
10 #include "isf_sysconf_comms.h"
11 #include <isf_sensor_configuration.h>
12
13 #include <MAG3110_1.h>
14 #include <FXOS8700_1.h>
15 #include <FXAS21002_1.h>
16 #include <ORIENT_1.h>
17 #include <FXLS8471_1.h>
18 #include <MPL3115_1.h>
19 #include <MMA865x_1.h>
20
21 /*!
22 * @brief This is the global DSA sensor driver list currently supported by the Sensor Manager component.
23 * Each array element describes the sensor driver for the individual sensor located
24 * at the specified device channel and the device address.
25 */
26 const isf_SensorConfig_t gSensorList[] =
27 { /* *pAdapter, *pSensorSpecificSettings, device channel, device info */
28 {&MAG3110_1_Adapter, &MAG3110_1_Sensor_Specific_Config, COMM_CHANNEL_I2C_CH1, &MAG3110_1_DeviceInfo},
29 {&FXOS8700_1_Adapter, &FXOS8700_1_Sensor_Specific_Config, COMM_CHANNEL_I2C_CH1, &FXOS8700_1_DeviceInfo},
30 {&FXAS21002_1_Adapter, &FXAS21002_1_Sensor_Specific_Config, COMM_CHANNEL_I2C_CH1, &FXAS21002_1_DeviceInfo},
31 {&ORIENT_1_Adapter, &ORIENT_1_Sensor_Specific_Config, COMM_CHANNEL_INTERNAL, 0},
32 {&FXLS8471_1_Adapter, &FXLS8471_1_Sensor_Specific_Config, COMM_CHANNEL_SPI_CH1, &FXLS8471_1_DeviceInfo},
33 {&MPL3115_1_Adapter, &MPL3115_1_Sensor_Specific_Config, COMM_CHANNEL_I2C_CH1, &MPL3115_1_DeviceInfo},
34 {&MMA865x_1_Adapter, &MMA865x_1_Sensor_Specific_Config, COMM_CHANNEL_I2C_CH1, &MMA865x_1_DeviceInfo},
35 };
36
37 /*!
38 * @brief Definition and initialization of the global variable for the total number of
39 * digital sensors currently supported by the system.
40 * \n This definition is used by the Sensor Manager and the Digital Sensor Abstraction implementation.
41 */
42 uint8 gNumSupportedSensors = sizeof(gSensorList)/sizeof(isf_SensorConfig_t);
43
44 /*!
45 * @brief This is the global DSA sensor driver list of the current sensor handles.
46 */
47 isf_SensorHandle_t *gSensorHandleList[sizeof(gSensorList)/sizeof(isf_SensorConfig_t)];
48
49
50
MAG3110_1_DeviceInfo
const i2c_device_t MAG3110_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MAG3110_1.c:74
isf_sysconf_comms.h
This file defines the system configuration for the communication channel.
uint8
unsigned char uint8
This defines uint8 as unsigned char.
Definition: isf_types.h:18
FXAS21002_1_DeviceInfo
const i2c_device_t FXAS21002_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXAS21002_1.c:69
FXAS21002_1.h
SensorConfig_st
This defines the DSA sensor configuration structure defining each individual sensor adapter in the DS...
Definition: isf_dsa_adapter.h:154
ORIENT_1.h
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:79
FXOS8700_1_DeviceInfo
const i2c_device_t FXOS8700_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXOS8700_1.c:103
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:61
isf_SensorHandle_st
This defines the DSA sensor device handle structure used to invoke the adapter access functions...
Definition: isf_dsa_adapter.h:109
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:48
COMM_CHANNEL_INTERNAL
Definition: isf_sysconf_comms.h:29
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:47
gNumSupportedSensors
uint8 gNumSupportedSensors
Definition and initialization of the global variable for the total number of digital sensors currentl...
Definition: isf_sensor_configuration.c:42
isf_sensor_configuration.h
The isf_sensor_configuration.h contains the enumerated list of Digital Sensor Abstraction (DSA) senso...
FXLS8471_1_DeviceInfo
const spi_master_CommSpecificInfo_t FXLS8471_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLS8471_1.c:136
COMM_CHANNEL_SPI_CH1
Definition: isf_sysconf_comms.h:32
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:54
MAG3110_1.h
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:88
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:111
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:79
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:37
MPL3115_1_DeviceInfo
const i2c_device_t MPL3115_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MPL3115_1.c:94
MMA865x_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:94
COMM_CHANNEL_I2C_CH1
Definition: isf_sysconf_comms.h:30
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:26
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:39
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:38
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:38
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:59
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:38
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:36
- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.