ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
fsl_mag3110_i2c_3D_mag.h
Go to the documentation of this file.
1 /**
2 ** @file fsl_mag3110_i2c_3D_mag.h
3 ** @brief The \b fsl_mag3110_i2c_3D_mag.h file contains the definitions and functions supporting the MAG3110 Sensor Adapter header file
4  * @copyright Copyright (c) 2015, Freescale Semiconductor, Inc.
5 ** @version 01.00
6 ** @brief
7 **
8 */
9 /*!
10 ** @addtogroup fsl_mag3110_i2c_3D_mag_module fsl_mag3110_i2c_3D_mag module documentation
11 ** @{
12 */
13 
14 #ifndef FSL_MAG3110_I2C_3D_MAG_H_
15 #define FSL_MAG3110_I2C_3D_MAG_H_
16 
17 /* Include shared modules, which are used for whole project */
18 #include "isf.h"
19 #include "isf_sm_types.h"
20 #include "isf_dsa_adapter.h"
21 
22 /*! @brief This structure defines the dummy DSA data buffer format.*/
23 typedef struct {
24  uint32 timeStamp; /*!< The time stamp for the data packet.*/
25  int16 mag[3]; /*!< The magnetometer data */
26  uint8 addr; /*!< The device "address" can uniquely identify the sensor */
28 
29 /*! @brief Supported sensor and data types for MMA8652 */
32 
33 /*
34 ** ===================================================================
35 ** Method : fsl_mag3110_i2c_3D_mag_Initialize (component ISFDSA)
36 ** @brief
37 **
38 ** Parameters :
39 ** NAME - DESCRIPTION
40 ** @param
41 ** void* pSensorHandle -
42 ** @return
43 ** int32_t -
44 ** ===================================================================
45 */
47 
48 /*
49 ** ===================================================================
50 ** Method : fsl_mag3110_i2c_3D_mag_ValidateSettings (component ISFDSA)
51 ** @brief
52 **
53 ** Parameters :
54 ** NAME - DESCRIPTION
55 ** @param
56 ** void* pSensorHandle -
57 ** @param
58 ** void* pSettings -
59 ** @return
60 ** int32_t -
61 ** ===================================================================
62 */
64 
65 /*
66 ** ===================================================================
67 ** Method : fsl_mag3110_i2c_3D_mag_Configure (component ISFDSA)
68 ** @brief
69 **
70 ** Parameters :
71 ** NAME - DESCRIPTION
72 ** @param
73 ** void* pSensorHandle -
74 ** @param
75 ** void* pConfigSettings -
76 ** @return
77 ** int32_t -
78 ** ===================================================================
79 */
81 
82 /*
83 ** ===================================================================
84 ** Method : fsl_mag3110_i2c_3D_mag_StartData (component ISFDSA)
85 ** @brief
86 **
87 ** Parameters :
88 ** NAME - DESCRIPTION
89 ** @param
90 ** void* pSensorHandle -
91 ** @return
92 ** int32_t -
93 ** ===================================================================
94 */
96 
97 /*
98 ** ===================================================================
99 ** Method : fsl_mag3110_i2c_3D_mag_EndData (component ISFDSA)
100 ** @brief
101 **
102 ** Parameters :
103 ** NAME - DESCRIPTION
104 ** @param
105 ** void* pSensorHandle -
106 ** @return
107 ** int32_t -
108 ** ===================================================================
109 */
111 
112 /*
113 ** ===================================================================
114 ** Method : fsl_mag3110_i2c_3D_mag_Calibrate (component ISFDSA)
115 ** @brief
116 **
117 ** Parameters :
118 ** NAME - DESCRIPTION
119 ** @param
120 ** void* pSensorHandle -
121 ** @return
122 ** int32_t -
123 ** ===================================================================
124 */
126 
127 /*
128 ** ===================================================================
129 ** Method : fsl_mag3110_i2c_3D_mag_Shutdown (component ISFDSA)
130 ** @brief
131 **
132 ** Parameters :
133 ** NAME - DESCRIPTION
134 ** @param
135 ** void* pSensorHandle -
136 ** @return
137 ** int32_t -
138 ** ===================================================================
139 */
141 
142 /*
143 ** ===================================================================
144 ** Method : fsl_mag3110_i2c_3D_mag_PeriodicCallback (component ISFDSA)
145 ** @brief
146 **
147 ** Parameters :
148 ** NAME - DESCRIPTION
149 ** @param
150 ** void* pSensorHandle -
151 ** @return
152 ** void -
153 ** ===================================================================
154 */
155 void fsl_mag3110_i2c_3D_mag_PeriodicCallback(void *pSensorHandle);
156 
157 /*
158 ** ===================================================================
159 ** Method : fsl_mag3110_i2c_3D_mag_Convert (component ISFDSA)
160 ** @brief
161 **
162 ** Parameters :
163 ** NAME - DESCRIPTION
164 ** @param
165 ** void* pSensorHandle -
166 ** @return
167 ** void -
168 ** ===================================================================
169 */
171  (
172  volatile isf_SensorHandle_t *pSensorHandle,
173  isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType,
174  void *pNativeSample,
175  void *pConvertedSample,
176  int32 *numBytes
177  );
178 
179 #endif
180 /* END FSL_MAG3110_I2C_3D_MAG_H_ */
181 /*!
182 ** @}
183 */
unsigned char uint8
Definition: isf_types.h:76
This structure defines the dummy DSA data buffer format.
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Shutdown(isf_SensorHandle_t *pSensorHandle)
void fsl_mag3110_i2c_3D_mag_PeriodicCallback(void *pSensorHandle)
This defines the DSA sensor device handle structure used to invoke the adapter access functions...
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_EndData(isf_SensorHandle_t *pSensorHandle)
isf_SensorTypes_t
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Initialize(isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSubSettings)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_SensorDataTypes_t mag3110_SupportedDataTypes[]
int32 isf_dsa_status_t
This is the Sensor Manager API return type definition.
isf_SensorTypes_t mag3110_SupportedSensorTypes[]
Supported sensor and data types for MMA8652.
signed short int int16
Definition: isf_types.h:73
enum isf_dsa_result_enums isf_dsa_result_types_t
isf_SensorDataTypes_t
Main ISF header file. Contains code common to all ISF components.
signed long int int32
Definition: isf_types.h:74
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_StartData(isf_SensorHandle_t *pSensorHandle)
This defines the DSA sensor configuration parameter structure configuring the sensor settings by a su...
unsigned long int uint32
Definition: isf_types.h:78
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_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.
The isf_sm_types.h contains the collection of type definitions used in the Sensor Manager Interface a...