ISF  1.1
Intelligent Sensing Framework
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
User/Source/isf_sensor_configuration.c
Go to the documentation of this file.
00001 /**
00002  * @file isf_sensor_configuration.c
00003  * 
00004  * @brief The \b isf_sensor_configuration.c file contains the list of Digital Sensor Abstraction (DSA) 
00005  * sensor adapters and static definition of individual sensor-specific settings.   
00006  *
00007  * @copyright Copyright (c) 2012, Freescale Semiconductor, Inc.  
00008  */
00009 
00010 #include "isf_sysconf_comms.h"
00011 #include<fsl_mag3110_i2c_3D_mag_config_types.h>
00012 #include<isf_sensor_configuration.h>
00013 
00014 /*!
00015  * @brief This is the static definition of sensor-specific settings for the MAG3110 Magnetometer sensor adapter.
00016  */
00017 static mag3110_Specific_Config_t     mag3110SpecificSettings;
00018 
00019 /*!
00020  * @brief This is the global DSA sensor adapter list currently supported by the Sensor Manager component.
00021  * Each array element describes the sensor adapter for the individual sensor located 
00022  * at the specified device channel and the device address. 
00023  */
00024 SensorConfig_t   gSensorList[] =
00025 {       // sm_DsaAdapter_t,              *pSensorHandle, *pSensorSpecificSettings, device channel, dev address
00026         {&fsl_fxlc95000_mmap_3D_accel_adapter,     NULL, NULL,                      INTERNAL_CHAN, 0xFFFEC4 },
00027         {&fsl_mag3110_i2c_3D_mag_adapter,          NULL, &mag3110SpecificSettings,  I2C_MASTER1,   0x0E },
00028 };  
00029 
00030 /*!
00031  * @brief Definition and initialization of the global variable for the total number of
00032  * digital sensors currently supported by the system. 
00033  * \n This definition is used by the Sensor Manager and the Digital Sensor Abstraction implementation.
00034  */
00035 uint8   gNumSupportedSensors = sizeof(gSensorList)/sizeof(SensorConfig_t);