| 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
MPL3115_1.c
Go to the documentation of this file.
1 /* ###################################################################
2 ** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
3 ** Filename : MPL3115_1.c
4 ** CDE edition : Community
5 ** Project : ISF_K64F_CW_PROJ
6 ** Processor : MK64FN1M0VLL12
7 ** Component : ISF_Sensor_MPL3115_Pressure
8 ** Version : Component 01.000, Driver 01.00, CPU db: 3.00.000
9 ** Compiler : GNU C Compiler
10 ** Date/Time : 2015-03-03, 11:01, # CodeGen: 0
11 ** Abstract :
12 **
13 ** Settings :
14 ** Contents :
15 ** No public methods
16 **
17 ** For non-commercial use only.
18 (c) Copyright <company/user-name>, 2014
19 http://www.<company>.com
20 mail: info@<company>.com
21 ** ###################################################################*/
22 /*!
23 ** @file MPL3115_1.c
24 ** @version 01.00
25 ** @brief
26 **
27 */
28 /*!
29 ** @addtogroup MPL3115_1_module MPL3115_1 module documentation
30 ** @{
31 */
32
33 /* MODULE MPL3115_1. */
34
35 #include "MPL3115_1.h"
36 #include "mpl3115.h"
37
38 mpl3115_Sensor_Specific_Settings_t MPL3115_1_Sensor_Specific_Config =
39 {
40 .regCount = 28, // Number of register pairs to follow
41 .regPairs =
42 {
43 // Data configuration registers.
44 { MPL3115_F_SETUP, 0 },
45 { MPL3115_PT_DATA_CFG, (MPL3115_SET_FIELD(DREM,1)) | (MPL3115_SET_FIELD(PDEFE,1)) | (MPL3115_SET_FIELD(TDEFE,1)) },
46 { MPL3115_BAR_IN_MSB, 197 },
47 { MPL3115_BAR_IN_LSB, 231 },
48 { MPL3115_P_ARM_MSB, 0 },
49 { MPL3115_P_ARM_LSB, 0 },
50 { MPL3115_T_ARM, 0 },
51 { MPL3115_P_ARM_WND_MSB, 0 },
52 { MPL3115_P_ARM_WND_LSB, 0 },
53 { MPL3115_T_ARM_WND, 0 },
54 { MPL3115_P_MIN_MSB, 0 },
55 { MPL3115_P_MIN_CSB, 0 },
56 { MPL3115_P_MIN_LSB, 0 },
57 { MPL3115_P_MAX_MSB, 0 },
58 { MPL3115_P_MAX_CSB, 0 },
59 { MPL3115_P_MAX_LSB, 0 },
60 { MPL3115_T_MIN_MSB, 0 },
61 { MPL3115_T_MIN_LSB, 0 },
62 { MPL3115_T_MAX_MSB, 0 },
63 { MPL3115_T_MAX_LSB, 0 },
64 { MPL3115_CTRL_REG1, (MPL3115_SET_FIELD(OS,0)) },
65 { MPL3115_CTRL_REG2, 0 },
66 { MPL3115_CTRL_REG3, 0 },
67 { MPL3115_CTRL_REG4, 0 },
68 { MPL3115_CTRL_REG5, 0 },
69 { MPL3115_OFF_P, 0 },
70 { MPL3115_OFF_T, 0 },
71 { MPL3115_OFF_H, 0 }
72 }
73 };
74
75 /*!
76 * @brief This creates the sensor adapter instance for the target sensor.
77 *
78 */
79 const isf_dsa_Adapter_t MPL3115_1_Adapter =
80 {
81 .devInfo.pSupportedSensorTypes = mpl3115_SupportedSensorTypes,
82 .devInfo.pSupportedSensorDataTypes = mpl3115_SupportedDataTypes,
83 .devInfo.nNativeDataSetSize = sizeof(mpl3115_DataBuffer_t),
84 .control.Initialize = &fsl_mpl3115_i2c_1D_press_Initialize,
85 .control.ValidateSettings = &fsl_mpl3115_i2c_1D_press_ValidateSettings,
86 .control.Configure = &fsl_mpl3115_i2c_1D_press_Configure,
87 .control.StartData = &fsl_mpl3115_i2c_1D_press_StartData,
88 .control.EndData = &fsl_mpl3115_i2c_1D_press_EndData,
89 .control.Calibrate = &fsl_mpl3115_i2c_1D_press_Calibrate,
90 .control.Shutdown = &fsl_mpl3115_i2c_1D_press_Shutdown,
91 .control.Convert = &fsl_mpl3115_i2c_1D_press_Convert
92 };
93
94 const i2c_device_t MPL3115_1_DeviceInfo =
95 {
96 .addrType = 0, // 7-bit addresses for now.
97 .baudRate_kbps = 400, // default baud rate (kbps).
98 .address = 96 // instance specific device address.
99 };
100
101
102 /* END MPL3115_1. */
103
104 /*!
105 ** @}
106 */
107 /*
108 ** ###################################################################
109 **
110 ** This file was created by Processor Expert 10.3 [05.09]
111 ** for the Freescale Kinetis series of microcontrollers.
112 **
113 ** ###################################################################
114 */
MPL3115_T_ARM_WND
Definition: mpl3115.h:55
MPL3115_P_MIN_MSB
Definition: mpl3115.h:56
fsl_mpl3115_i2c_1D_press_Shutdown
isf_dsa_status_t fsl_mpl3115_i2c_1D_press_Shutdown(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mpl3115_i2c_1D_press.c:545
MPL3115_PT_DATA_CFG
Definition: mpl3115.h:47
MPL3115_P_MIN_LSB
Definition: mpl3115.h:58
I2CDeviceInfo
Information necessary to communicate with an I2C slave device.
Definition: fsl_i2c_master_driver.h:30
MPL3115_1.h
fsl_mpl3115_i2c_1D_press_Convert
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.
Definition: fsl_mpl3115_i2c_1D_press.c:668
MPL3115_CTRL_REG3
Definition: mpl3115.h:68
MPL3115_T_MAX_MSB
Definition: mpl3115.h:64
MPL3115_P_MAX_CSB
Definition: mpl3115.h:62
MPL3115_P_MIN_CSB
Definition: mpl3115.h:57
MPL3115_P_ARM_WND_LSB
Definition: mpl3115.h:54
mpl3115_SupportedDataTypes
isf_SensorDataTypes_t mpl3115_SupportedDataTypes[]
Definition: fsl_mpl3115_i2c_1D_press.c:157
MPL3115_OFF_P
Definition: mpl3115.h:71
mpl3115_Sensor_Specific_Settings_t
Definition: mpl3115.h:231
MPL3115_P_ARM_WND_MSB
Definition: mpl3115.h:53
fsl_mpl3115_i2c_1D_press_Configure
isf_dsa_status_t fsl_mpl3115_i2c_1D_press_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
Definition: fsl_mpl3115_i2c_1D_press.c:312
fsl_mpl3115_i2c_1D_press_Calibrate
isf_dsa_status_t fsl_mpl3115_i2c_1D_press_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
Definition: fsl_mpl3115_i2c_1D_press.c:525
isf_dsa_Adapter_st::devInfo
isf_dsa_DeviceInfoBlock_t devInfo
Definition: isf_dsa_adapter.h:146
mpl3115_DataBuffer_t
This structure defines the dummy DSA data buffer format.
Definition: fsl_mpl3115_i2c_1D_press.h:52
fsl_mpl3115_i2c_1D_press_ValidateSettings
isf_dsa_status_t fsl_mpl3115_i2c_1D_press_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
Definition: fsl_mpl3115_i2c_1D_press.c:283
MPL3115_P_ARM_MSB
Definition: mpl3115.h:50
isf_dsa_Adapter_st
This defines the DSA adapter structure required for static initialization of the concrete instance of...
Definition: isf_dsa_adapter.h:144
MPL3115_CTRL_REG4
Definition: mpl3115.h:69
MPL3115_BAR_IN_MSB
Definition: mpl3115.h:48
MPL3115_P_MAX_LSB
Definition: mpl3115.h:63
mpl3115.h
The mpl3115.h contains the MPL3115 Pressure sensor register definitions, access macros, and device access functions.
isf_dsa_DeviceInfoBlock_st::pSupportedSensorTypes
isf_SensorTypes_t * pSupportedSensorTypes
Definition: isf_dsa_adapter.h:72
MPL3115_P_MAX_MSB
Definition: mpl3115.h:61
MPL3115_CTRL_REG1
Definition: mpl3115.h:66
MPL3115_P_ARM_LSB
Definition: mpl3115.h:51
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
MPL3115_SET_FIELD
#define MPL3115_SET_FIELD(name, val)
Definition: mpl3115.h:82
fsl_mpl3115_i2c_1D_press_StartData
isf_dsa_status_t fsl_mpl3115_i2c_1D_press_StartData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mpl3115_i2c_1D_press.c:401
MPL3115_T_ARM
Definition: mpl3115.h:52
MPL3115_BAR_IN_LSB
Definition: mpl3115.h:49
MPL3115_1_DeviceInfo
const i2c_device_t MPL3115_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MPL3115_1.c:94
MPL3115_T_MIN_MSB
Definition: mpl3115.h:59
mpl3115_SupportedSensorTypes
isf_SensorTypes_t mpl3115_SupportedSensorTypes[]
Supported sensor and data types for MPL3115.
Definition: fsl_mpl3115_i2c_1D_press.c:156
I2CDeviceInfo::addrType
LDD_I2C_TAddrType addrType
Definition: fsl_i2c_master_driver.h:34
MPL3115_T_MAX_LSB
Definition: mpl3115.h:65
MPL3115_CTRL_REG2
Definition: mpl3115.h:67
MPL3115_OFF_H
Definition: mpl3115.h:73
MPL3115_T_MIN_LSB
Definition: mpl3115.h:60
MPL3115_CTRL_REG5
Definition: mpl3115.h:70
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
mpl3115_Sensor_Specific_Settings_t::regCount
uint32 regCount
Definition: mpl3115.h:233
MPL3115_F_SETUP
Definition: mpl3115.h:43
fsl_mpl3115_i2c_1D_press_Initialize
isf_dsa_status_t fsl_mpl3115_i2c_1D_press_Initialize(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mpl3115_i2c_1D_press.c:191
MPL3115_OFF_T
Definition: mpl3115.h:72
fsl_mpl3115_i2c_1D_press_EndData
isf_dsa_status_t fsl_mpl3115_i2c_1D_press_EndData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mpl3115_i2c_1D_press.c:461
- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.