ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
isf_dsa_direct_types.h
Go to the documentation of this file.
1 /**
2  * @file isf_sm_types.h
3  * @brief The \b isf_sm_types.h contains the collection of type definitions used in the Sensor Manager Interface as well as related defines and data structures
4  * required.
5  *
6  * @copyright Copyright (c) 2015, Freescale Semiconductor, Inc.
7  */
8 
9 #ifndef ISF_SM_TYPES_H_
10 #define ISF_SM_TYPES_H_
11 
12 #include "isf.h"
13 #include "isf_sensor_types.h"
14 #include "isf_dsa_adapter.h"
15 
16 /*! Error Return codes */
17 #define ERR_INVALID_HANDLE (int32)(-1L)
18 #define ERR_INVALID_PTR (int32)(-2L)
19 
20 
21 /*! Sensor configuration settings used when subscribing to sensor data. */
22 typedef struct
23 {
24  isf_SensorDataTypes_t resultType; //!< The desired data type of the subscription
25  isf_dsa_result_types_t resultFormat; //!< The format of the data to be returned- 0=RAW, 1=FIXED, 2=FLOAT
26  uint32 nSamplePeriod; //!< Sample period in microseconds
27  uint8 nSettingsToUse; //!< 1 = current; 2=given; 3=best possible
28  uint8 nFifoDepth; //!< 1 = no FIFO, or another value < ::SM_MAX_FIFO_DEPTH
30 
31 
32 #endif /* ISF_SM_TYPES_H_ */
unsigned char uint8
Definition: isf_types.h:76
isf_dsa_result_types_t resultFormat
The format of the data to be returned- 0=RAW, 1=FIXED, 2=FLOAT.
uint8 nFifoDepth
1 = no FIFO, or another value < SM_MAX_FIFO_DEPTH
The isf_sensor_types.h contains the enumerated list of sensor types used by ISF.
enum isf_dsa_result_enums isf_dsa_result_types_t
isf_SensorDataTypes_t
isf_SensorDataTypes_t resultType
The desired data type of the subscription.
Main ISF header file. Contains code common to all ISF components.
uint8 nSettingsToUse
1 = current; 2=given; 3=best possible
uint32 nSamplePeriod
Sample period in microseconds.
unsigned long int uint32
Definition: isf_types.h:78