| 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
Data Structures | Macros | Enumerations | Functions | Variables
fsl_mpl3115_i2c_1D_press.c File Reference
`#include <isf.h>`
`#include <isf_types.h>`
`#include <lwmem.h>`
`#include <lwsem.h>`
`#include <lwevent.h>`
`#include <isf_sm_api.h>`
`#include <isf_dsa_adapter.h>`
`#include <isf_bm.h>`
`#include <isf_sensor_types.h>`
`#include <isf_fifo.h>`
`#include <isf_pressure_types.h>`
`#include <isf_altitude_types.h>`
`#include <isf_temperature_types.h>`
`#include <isf_comm.h>`
`#include <isf_util.h>`
`#include <isf_sensors.h>`
`#include "mpl3115.h"`
`#include "fsl_i2c_master_driver.h"`
`#include "fsl_mpl3115_i2c_1D_press.h"`
Include dependency graph for fsl_mpl3115_i2c_1D_press.c:

Go to the source code of this file.

## Data Structures
struct | dataPair_t
struct | fLfiTable_t

## Macros
#define | MPL3115_PRESS_FLOAT_CONVERSION_FACTOR 0.000000061035
#define | MPL3115_PRESS_FLOAT_CONVERSION_OFFSET 0.0
#define | MPL3115_PRESS_FIXED_CONVERSION_FACTOR (1000/4)
#define | MPL3115_PRESS_FIXED_CONVERSION_OFFSET 0
#define | MPL3115_ALT_FLOAT_CONVERSION_FACTOR 1.0
#define | MPL3115_ALT_FLOAT_CONVERSION_OFFSET 0.0
#define | MPL3115_ALT_FIXED_CONVERSION_FACTOR 1
#define | MPL3115_ALT_FIXED_CONVERSION_OFFSET 0
#define | MPL3115_TEMP_FLOAT_CONVERSION_FACTOR 256.0
#define | MPL3115_TEMP_FLOAT_CONVERSION_OFFSET 0.0
#define | MPL3115_TEMP_FIXED_CONVERSION_FACTOR 256
#define | MPL3115_TEMP_FIXED_CONVERSION_OFFSET 0
#define | MPL3115_ONE_SECOND 1000000
#define | BYTES_FOR_FULL_READ 5
| This function retrieves the raw data from the MPL3115 sensor. More...
#define | MPL3115_DEBUG 0
#define | ABSOLUTE_VALUE(x) ( (x) < 0.0 ? (-(x)) : (x))
#define | ZERO_EPSILON (1.0E-10)
#define | IS_PRACTICALLY_ZERO(x) ( ABSOLUTE_VALUE(x) < ZERO_EPSILON )

## Enumerations
enum | { LFI_NO_EXTRAPOLATION = 0, LFI_TABLE_LIMITS = 1, LFI_EXTRAPOLATE = 2 }
enum | { LFI_SUCCESS = 0, LFI_BAD_TABLE = -1, LFI_BAD_PTR = -2, LFI_OUT_OF_RANGE = -3 }

## Functions
long | fLfi (const fLfiTable_t *lookupTable, float lFiIn, float *lfiOut)
void | mpl3115_Reset (int32_t *status, void *pSensorHandle)
| This function resets the MPL3115 sensor resulting in a default configuration for all registers. More...
void | mpl3115_CheckId (int32_t *status, void *pSensorHandle)
| This function validates the MPL3115 sensor is connected via the I2C bus. More...
void | mpl3115_SetMode (int32_t *status, void *pSensorHandle, int32_t Mode)
| This function sets the MPL3115 part to the requested mode. More...
void | mpl3115_ValidateConfig (int32_t *status, void *pSensorHandle, void *pSettings)
| This function validates the configuration for the MPL3115 sensor. More...
isf_dsa_status_t | mpl3115_SetConfig (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pConfigSettings)
| This function sets the MPL3115 sensor configuration. More...
int32 | convertPressureToAltitude (uint32 pressure)
isf_dsa_status_t | mpl3115_GetData (isf_SensorHandle_t *pSensorHandle, mpl3115_DataBuffer_t *pData)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_Initialize (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_ValidateSettings (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_Configure (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_StartData (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_EndData (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_Calibrate (isf_SensorHandle_t *pSensorHandle, void *pCalData)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_Shutdown (isf_SensorHandle_t *pSensorHandle)
void | fsl_mpl3115_i2c_1D_press_PeriodicCallback (void *pSensorHandle)
isf_dsa_status_t | fsl_mpl3115_i2c_1D_press_Convert (volatile isf_SensorHandle_t *pSensorHandle, isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType, void *pNativeSample, void *pConvertedSample, int32 *numBytes)
| This function coverts the raw sample data to the desired output type. More...
void | mpl3115_ReadRegisters (isf_SensorHandle_t *pSensorHandle)

## Variables
isf_SensorTypes_t | mpl3115_SupportedSensorTypes [] = { TYPE_THERMOMETER, TYPE_ALTIMETER, TYPE_BAROMETER, TYPE_ABSOLUTE_PRESSURE_SENSOR, TYPE_NATIVE_SENSOR_TYPE }
| Supported sensor and data types for MPL3115. More...
isf_SensorDataTypes_t | mpl3115_SupportedDataTypes [] = { TYPE_TEMPERATURE, TYPE_ALTITUDE, TYPE_PRESSURE, TYPE_NATIVE_SENSOR_DATA_TYPE }

## Detailed Description

Version
  01.00

Definition in file fsl_mpl3115_i2c_1D_press.c.

- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.