ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
BasicApp1_types.h
Go to the documentation of this file.
1 /* ###################################################################
2 ** This component module is generated by Processor Expert. Do not modify it.
3 ** Filename : BasicApp1.h
4 ** CDE edition : Standard
5 ** Project : ISF2P2_K64F_MQX_PROJ
6 ** Processor : MK64FN1M0VLL12
7 ** Component : ISF_KSDK_BasicApp
8 ** Version : Component 02.500, Driver 02.00, CPU db: 3.00.000
9 ** Repository : My Components
10 ** Compiler : GNU C Compiler
11 ** Date/Time : 2016-10-06, 13:38, # CodeGen: 0
12 ** Abstract :
13 **
14 ** Settings :
15 ** Component Name : BasicApp1
16 ** Main Application Settings :
17 ** Processed Data Buffer Size : 34
18 ** Application Version Number : 0100
19 ** Additional User-Defined App Info :
20 ** Host Interface :
21 ** Host Command Interface Supported : yes
22 ** ISF_Core : ISFCore1
23 ** App Task Priority : 11
24 ** App Task Stack Size : 1200
25 ** Subscription List : 20
26 ** Sensor Subscription :
27 ** Sensor Type : Accelerometer
28 ** Selected Sensor : FXLC95000_1
29 ** Settings To Use : UseGiven
30 ** Sample Period : 10000
31 ** Sensor Data Format : Raw Sensor Format
32 ** Sensor Data Type : Native Sensor Output
33 ** FIFO Depth : 1
34 ** Sensor Subscription :
35 ** Sensor Type : Accelerometer
36 ** Selected Sensor : FXLC95000_2
37 ** Settings To Use : UseGiven
38 ** Sample Period : 10000
39 ** Sensor Data Format : Raw Sensor Format
40 ** Sensor Data Type : Native Sensor Output
41 ** FIFO Depth : 1
42 ** Sensor Subscription :
43 ** Sensor Type : Accelerometer
44 ** Selected Sensor : FXLS8471_1
45 ** Settings To Use : UseGiven
46 ** Sample Period : 10000
47 ** Sensor Data Format : Raw Sensor Format
48 ** Sensor Data Type : Native Sensor Output
49 ** FIFO Depth : 1
50 ** Sensor Subscription :
51 ** Sensor Type : Accelerometer
52 ** Selected Sensor : FXLS8471_2
53 ** Settings To Use : UseGiven
54 ** Sample Period : 10000
55 ** Sensor Data Format : Raw Sensor Format
56 ** Sensor Data Type : Native Sensor Output
57 ** FIFO Depth : 1
58 ** Sensor Subscription :
59 ** Sensor Type : Accelerometer
60 ** Selected Sensor : FXLS8952_1
61 ** Settings To Use : UseGiven
62 ** Sample Period : 10000
63 ** Sensor Data Format : Raw Sensor Format
64 ** Sensor Data Type : Native Sensor Output
65 ** FIFO Depth : 1
66 ** Sensor Subscription :
67 ** Sensor Type : Accelerometer
68 ** Selected Sensor : FXOS8700_1
69 ** Settings To Use : UseGiven
70 ** Sample Period : 10000
71 ** Sensor Data Format : Raw Sensor Format
72 ** Sensor Data Type : Native Sensor Output
73 ** FIFO Depth : 1
74 ** Sensor Subscription :
75 ** Sensor Type : Accelerometer
76 ** Selected Sensor : MMA8491Q_1
77 ** Settings To Use : UseGiven
78 ** Sample Period : 10000
79 ** Sensor Data Format : Raw Sensor Format
80 ** Sensor Data Type : Native Sensor Output
81 ** FIFO Depth : 1
82 ** Sensor Subscription :
83 ** Sensor Type : Accelerometer
84 ** Selected Sensor : MMA865x_1
85 ** Settings To Use : UseGiven
86 ** Sample Period : 10000
87 ** Sensor Data Format : Raw Sensor Format
88 ** Sensor Data Type : Native Sensor Output
89 ** FIFO Depth : 1
90 ** Sensor Subscription :
91 ** Sensor Type : Magnetometer
92 ** Selected Sensor : FXOS8700_2
93 ** Settings To Use : UseGiven
94 ** Sample Period : 10000
95 ** Sensor Data Format : Raw Sensor Format
96 ** Sensor Data Type : Native Sensor Output
97 ** FIFO Depth : 1
98 ** Sensor Subscription :
99 ** Sensor Type : Magnetometer
100 ** Selected Sensor : MAG3110_1
101 ** Settings To Use : UseGiven
102 ** Sample Period : 200000
103 ** Sensor Data Format : Raw Sensor Format
104 ** Sensor Data Type : Native Sensor Output
105 ** FIFO Depth : 1
106 ** Sensor Subscription :
107 ** Sensor Type : Gyrometer
108 ** Selected Sensor : FXAS21002_1
109 ** Settings To Use : UseGiven
110 ** Sample Period : 10000
111 ** Sensor Data Format : Raw Sensor Format
112 ** Sensor Data Type : Native Sensor Output
113 ** FIFO Depth : 1
114 ** Sensor Subscription :
115 ** Sensor Type : Gyrometer
116 ** Selected Sensor : FXAS21002_2
117 ** Settings To Use : UseGiven
118 ** Sample Period : 10000
119 ** Sensor Data Format : Raw Sensor Format
120 ** Sensor Data Type : Native Sensor Output
121 ** FIFO Depth : 1
122 ** Sensor Subscription :
123 ** Sensor Type : Pressure
124 ** Selected Sensor : MPL3115_1
125 ** Settings To Use : UseGiven
126 ** Sample Period : 10000
127 ** Sensor Data Format : Raw Sensor Format
128 ** Sensor Data Type : Native Sensor Output
129 ** FIFO Depth : 1
130 ** Sensor Subscription :
131 ** Sensor Type : Temperature
132 ** Selected Sensor : MPL3115_1
133 ** Settings To Use : UseGiven
134 ** Sample Period : 10000
135 ** Sensor Data Format : Raw Sensor Format
136 ** Sensor Data Type : Native Sensor Output
137 ** FIFO Depth : 1
138 ** Sensor Subscription :
139 ** Sensor Type : Orientation
140 ** Selected Sensor : ORIENT_1
141 ** Settings To Use : UseGiven
142 ** Sample Period : 10000
143 ** Sensor Data Format : Raw Sensor Format
144 ** Sensor Data Type : Native Sensor Output
145 ** FIFO Depth : 1
146 ** Sensor Subscription :
147 ** Sensor Type : Altitude
148 ** Selected Sensor : MPL3115_1
149 ** Settings To Use : UseGiven
150 ** Sample Period : 10000
151 ** Sensor Data Format : Raw Sensor Format
152 ** Sensor Data Type : Native Sensor Output
153 ** FIFO Depth : 1
154 ** Sensor Subscription :
155 ** Sensor Type : Pedometer
156 ** Selected Sensor : MMA955x_1
157 ** Settings To Use : UseGiven
158 ** Sample Period : 8192
159 ** Sensor Data Format : Raw Sensor Format
160 ** Sensor Data Type : Native Sensor Output
161 ** FIFO Depth : 1
162 ** Sensor Subscription :
163 ** Sensor Type : Pedometer
164 ** Selected Sensor : MMA955x_2
165 ** Settings To Use : UseGiven
166 ** Sample Period : 8192
167 ** Sensor Data Format : Raw Sensor Format
168 ** Sensor Data Type : Native Sensor Output
169 ** FIFO Depth : 1
170 ** Sensor Subscription :
171 ** Sensor Type : Custom
172 ** Selected Sensor : Custom_1
173 ** Settings To Use : UseGiven
174 ** Sample Period : 10000
175 ** Sensor Data Format : Raw Sensor Format
176 ** Sensor Data Type : Native Sensor Output
177 ** FIFO Depth : 1
178 ** Sensor Subscription :
179 ** Sensor Type : Analog
180 ** Selected Sensor : Analog_1
181 ** Settings To Use : UseGiven
182 ** Sample Period : 10000
183 ** Sensor Data Format : Raw Sensor Format
184 ** Sensor Data Type : Native Sensor Output
185 ** FIFO Depth : 1
186 ** Contents :
187 ** No public methods
188 **
189 ** (c) Copyright Freescale Semiconductor, Inc., 2015,
190 **
191 http://www.freescale.com
192 ** ###################################################################*/
193 /*!
194 ** @file BasicApp1.h
195 ** @version 02.00
196 ** @brief
197 **
198 */
199 /*!
200 ** @addtogroup BasicApp1_module BasicApp1 module documentation
201 ** @{
202 */
203 #ifndef __BasicApp1_TYPES_H
204 #define __BasicApp1_TYPES_H
205 
206 #include "isf_dsa_adapter.h"
207 
208 /* Application Information */
209 
210 /* additional user-provided application data */
211 #define BasicApp1_APP_DATA ""
212 
213 /*!
214  * @struct BasicApp1_app_info_t
215  * @This structure holds the Embedded Application version and build
216  * information.
217  *
218 */
219 typedef struct
220 {
221  //! ISF Embedded Application type
223  //! ISF Embedded Application version information
225  //! ISF Embedded Application registered additional information/data size
227  //! ISF Embedded Application registered additional information/data
228  uint8 appData[sizeof(BasicApp1_APP_DATA)];
230 
231 /* Generic sensor interfaces */
232 #include "isf_accelerometer_types.h"
233 #include "isf.h"
234 #include "isf_accelerometer_types.h"
235 #include "isf.h"
236 #include "isf_accelerometer_types.h"
237 #include "isf.h"
238 #include "isf_accelerometer_types.h"
239 #include "isf.h"
240 #include "isf_accelerometer_types.h"
241 #include "isf.h"
242 #include "isf_accelerometer_types.h"
243 #include "isf.h"
244 #include "isf_accelerometer_types.h"
245 #include "isf.h"
246 #include "isf_accelerometer_types.h"
247 #include "isf.h"
248 #include "isf_magnetometer_types.h"
249 #include "isf.h"
250 #include "isf_magnetometer_types.h"
251 #include "isf.h"
252 #include "isf_gyrometer_types.h"
253 #include "isf.h"
254 #include "isf_gyrometer_types.h"
255 #include "isf.h"
256 #include "isf_pressure_types.h"
257 #include "isf.h"
258 #include "isf_temperature_types.h"
259 #include "isf.h"
260 #include "isf_orientation_types.h"
261 #include "isf.h"
262 #include "isf_altitude_types.h"
263 #include "isf.h"
264 #include "isf_pedometer_types.h"
265 #include "isf.h"
266 #include "isf_pedometer_types.h"
267 #include "isf.h"
269 #include "isf_sm_types.h"
270 #include "isf.h"
272 #include "isf_sm_types.h"
273 #include "isf.h"
274 
275 /* Define the user data types based on the Subscription list.*/
276 #define DATA_FIFO_LEN_SUB0 1
277 #define DATA_TYPE_SUB0 FXLC95000_1_DATA_TYPE
278 #define DATA_FIFO_LEN_SUB1 1
279 #define DATA_TYPE_SUB1 FXLC95000_2_DATA_TYPE
280 #define DATA_FIFO_LEN_SUB2 1
281 #define DATA_TYPE_SUB2 FXLS8471_1_DATA_TYPE
282 #define DATA_FIFO_LEN_SUB3 1
283 #define DATA_TYPE_SUB3 FXLS8471_2_DATA_TYPE
284 #define DATA_FIFO_LEN_SUB4 1
285 #define DATA_TYPE_SUB4 FXLS8952_1_DATA_TYPE
286 #define DATA_FIFO_LEN_SUB5 1
287 #define DATA_TYPE_SUB5 FXOS8700_1_DATA_TYPE
288 #define DATA_FIFO_LEN_SUB6 1
289 #define DATA_TYPE_SUB6 MMA8491Q_1_DATA_TYPE
290 #define DATA_FIFO_LEN_SUB7 1
291 #define DATA_TYPE_SUB7 MMA865x_1_DATA_TYPE
292 #define DATA_FIFO_LEN_SUB8 1
293 #define DATA_TYPE_SUB8 FXOS8700_2_DATA_TYPE
294 #define DATA_FIFO_LEN_SUB9 1
295 #define DATA_TYPE_SUB9 MAG3110_1_DATA_TYPE
296 #define DATA_FIFO_LEN_SUB10 1
297 #define DATA_TYPE_SUB10 FXAS21002_1_DATA_TYPE
298 #define DATA_FIFO_LEN_SUB11 1
299 #define DATA_TYPE_SUB11 FXAS21002_2_DATA_TYPE
300 #define DATA_FIFO_LEN_SUB12 1
301 #define DATA_TYPE_SUB12 MPL3115_1_DATA_TYPE
302 #define DATA_FIFO_LEN_SUB13 1
303 #define DATA_TYPE_SUB13 MPL3115_1_DATA_TYPE
304 #define DATA_FIFO_LEN_SUB14 1
305 #define DATA_TYPE_SUB14 ORIENT_1_DATA_TYPE
306 #define DATA_FIFO_LEN_SUB15 1
307 #define DATA_TYPE_SUB15 MPL3115_1_DATA_TYPE
308 #define DATA_FIFO_LEN_SUB16 1
309 #define DATA_TYPE_SUB16 MMA955x_1_DATA_TYPE
310 #define DATA_FIFO_LEN_SUB17 1
311 #define DATA_TYPE_SUB17 MMA955x_2_DATA_TYPE
312 #define DATA_FIFO_LEN_SUB18 1
313 #define DATA_TYPE_SUB18 Custom_1_DATA_TYPE
314 #define DATA_FIFO_LEN_SUB19 1
315 #define DATA_TYPE_SUB19 Analog_1_DATA_TYPE
316 
317 /* Sensor subscription indexes. */
318 #define SENSOR_IDX_Accelerometer0 0
319 #define SENSOR_IDX_Accelerometer1 1
320 #define SENSOR_IDX_Accelerometer2 2
321 #define SENSOR_IDX_Accelerometer3 3
322 #define SENSOR_IDX_Accelerometer4 4
323 #define SENSOR_IDX_Accelerometer5 5
324 #define SENSOR_IDX_Accelerometer6 6
325 #define SENSOR_IDX_Accelerometer7 7
326 #define SENSOR_IDX_Magnetometer8 8
327 #define SENSOR_IDX_Magnetometer9 9
328 #define SENSOR_IDX_Gyrometer10 10
329 #define SENSOR_IDX_Gyrometer11 11
330 #define SENSOR_IDX_Pressure12 12
331 #define SENSOR_IDX_Temperature13 13
332 #define SENSOR_IDX_Orientation14 14
333 #define SENSOR_IDX_Altitude15 15
334 #define SENSOR_IDX_Pedometer16 16
335 #define SENSOR_IDX_Pedometer17 17
336 #define SENSOR_IDX_Custom18 18
337 #define SENSOR_IDX_Analog19 19
338 
339 
340 
341 
342 
343 
344 
345 
346 
347 
348 
349 
350 
351 
352 
353 
354 
355 
356 
357 
358 
359 /* All Sensor data ready event mask */
360 #define ALL_SENSOR_DATA_READY_BasicApp1 (1048575)
361 #define NUM_SUBSCRIPTIONS 20
362 
363 /* Structure to store misc data about each sensor subscription */
364 typedef struct
365 {
368  uint8 sensorId;
369 } SensorInfo_t;
370 
371 /* User data access typedefs. */
372 typedef struct
373 {
374  DATA_TYPE_SUB0 rawAccelerometerData_Sub0[DATA_FIFO_LEN_SUB0]; /* Sensor subscription data */
375  DATA_TYPE_SUB1 rawAccelerometerData_Sub1[DATA_FIFO_LEN_SUB1]; /* Sensor subscription data */
376  DATA_TYPE_SUB2 rawAccelerometerData_Sub2[DATA_FIFO_LEN_SUB2]; /* Sensor subscription data */
377  DATA_TYPE_SUB3 rawAccelerometerData_Sub3[DATA_FIFO_LEN_SUB3]; /* Sensor subscription data */
378  DATA_TYPE_SUB4 rawAccelerometerData_Sub4[DATA_FIFO_LEN_SUB4]; /* Sensor subscription data */
379  DATA_TYPE_SUB5 rawAccelerometerData_Sub5[DATA_FIFO_LEN_SUB5]; /* Sensor subscription data */
380  DATA_TYPE_SUB6 rawAccelerometerData_Sub6[DATA_FIFO_LEN_SUB6]; /* Sensor subscription data */
381  DATA_TYPE_SUB7 rawAccelerometerData_Sub7[DATA_FIFO_LEN_SUB7]; /* Sensor subscription data */
382  DATA_TYPE_SUB8 rawMagnetometerData_Sub8[DATA_FIFO_LEN_SUB8]; /* Sensor subscription data */
383  DATA_TYPE_SUB9 rawMagnetometerData_Sub9[DATA_FIFO_LEN_SUB9]; /* Sensor subscription data */
384  DATA_TYPE_SUB10 rawGyrometerData_Sub10[DATA_FIFO_LEN_SUB10]; /* Sensor subscription data */
385  DATA_TYPE_SUB11 rawGyrometerData_Sub11[DATA_FIFO_LEN_SUB11]; /* Sensor subscription data */
386  DATA_TYPE_SUB12 rawPressureData_Sub12[DATA_FIFO_LEN_SUB12]; /* Sensor subscription data */
387  DATA_TYPE_SUB13 rawTemperatureData_Sub13[DATA_FIFO_LEN_SUB13]; /* Sensor subscription data */
388  DATA_TYPE_SUB14 rawOrientationData_Sub14[DATA_FIFO_LEN_SUB14]; /* Sensor subscription data */
389  DATA_TYPE_SUB15 rawAltitudeData_Sub15[DATA_FIFO_LEN_SUB15]; /* Sensor subscription data */
390  DATA_TYPE_SUB16 rawPedometerData_Sub16[DATA_FIFO_LEN_SUB16]; /* Sensor subscription data */
391  DATA_TYPE_SUB17 rawPedometerData_Sub17[DATA_FIFO_LEN_SUB17]; /* Sensor subscription data */
392  DATA_TYPE_SUB18 rawCustomData_Sub18[DATA_FIFO_LEN_SUB18]; /* Sensor subscription data */
393  DATA_TYPE_SUB19 rawAnalogData_Sub19[DATA_FIFO_LEN_SUB19]; /* Sensor subscription data */
394  uint8 processedData[34]; /* Processed data buffer. */
395 } BasicApp1SensorData_t; /* Sensor data */
396 
397 typedef struct
398 {
399  semaphore_t outputDataLock; /* Output buffer lightweight semaphore. */
400  uint8 outputData[34]; /* The App Output buffer for any app-specific computed results */
401  uint8 configData[4]; /* The App Config Data buffer */
403 
404 typedef void (sensordataHandler_t)( uint8, void**, void * );
405 
406 #endif
407 
408 /* ifndef __BasicApp1_TYPES_H */
409 /*!
410 ** @}
411 */
412 /*
413 ** ###################################################################
414 **
415 ** This file was created by Processor Expert 10.5 [05.21]
416 ** for the Freescale Kinetis series of microcontrollers.
417 **
418 ** ###################################################################
419 */
#define DATA_TYPE_SUB11
unsigned char uint8
Definition: isf_types.h:76
#define DATA_FIFO_LEN_SUB9
#define DATA_FIFO_LEN_SUB3
#define DATA_TYPE_SUB0
#define DATA_TYPE_SUB1
#define DATA_FIFO_LEN_SUB18
The isf_magnetometer_types.h file contains the ISF data type definitions for use with the ISF generic...
#define DATA_FIFO_LEN_SUB16
This is user's event module. Put your event handler code here.
#define DATA_FIFO_LEN_SUB11
#define DATA_TYPE_SUB3
uint32 dataReadyEventFlag
void( sensordataHandler_t)(uint8, void **, void *)
#define DATA_TYPE_SUB17
#define DATA_FIFO_LEN_SUB19
#define DATA_TYPE_SUB13
#define DATA_TYPE_SUB16
#define DATA_TYPE_SUB15
#define DATA_TYPE_SUB6
#define DATA_TYPE_SUB2
#define DATA_FIFO_LEN_SUB12
#define DATA_FIFO_LEN_SUB14
uint16 version_info
ISF Embedded Application version information.
#define DATA_FIFO_LEN_SUB4
#define DATA_FIFO_LEN_SUB15
#define DATA_TYPE_SUB10
#define DATA_FIFO_LEN_SUB2
The isf_pressure_types.h file contains the ISF data type definitions for use with the ISF generic pre...
#define DATA_TYPE_SUB12
#define DATA_TYPE_SUB4
#define DATA_TYPE_SUB9
The isf_gyrometer_types.h file contains the ISF data type definitions for use with the ISF generic gy...
uint8 numBytes
ISF Embedded Application registered additional information/data size.
#define DATA_FIFO_LEN_SUB7
#define DATA_TYPE_SUB8
#define DATA_FIFO_LEN_SUB5
The isf_altitude_types.h file contains the ISF data type definitions for use with the ISF generic alt...
The isf_temperature_fixed_t.h file contains the ISF data type definitions for use with the ISF generi...
#define DATA_TYPE_SUB7
#define DATA_TYPE_SUB19
Main ISF header file. Contains code common to all ISF components.
unsigned short int uint16
Definition: isf_types.h:77
#define DATA_FIFO_LEN_SUB0
#define DATA_FIFO_LEN_SUB13
#define DATA_FIFO_LEN_SUB10
#define DATA_TYPE_SUB18
uint8 appType
ISF Embedded Application type.
#define DATA_FIFO_LEN_SUB8
unsigned long int uint32
Definition: isf_types.h:78
This is user's event module. Put your event handler code here.
#define BasicApp1_APP_DATA
#define DATA_FIFO_LEN_SUB1
The isf_sm_types.h contains the collection of type definitions used in the Sensor Manager Interface a...
#define DATA_TYPE_SUB5
The isf_accelerometer_types.h file contains the ISF data type definitions for use with the ISF generi...
#define DATA_FIFO_LEN_SUB6
#define DATA_TYPE_SUB14
#define DATA_FIFO_LEN_SUB17