ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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) 2014, Freescale Semiconductor, Inc.
7  */
8 
9 #ifndef ISF_SM_TYPES_H_
10 #define ISF_SM_TYPES_H_
11 
12 #include "isf.h"
13 #include "lwevent.h"
14 #include "isf_sensor_types.h"
15 #include "isf_dsa_adapter.h"
16 
17 /*! Error Return codes */
18 #define ERR_INVALID_HANDLE (int32)(-1L)
19 #define ERR_INVALID_PTR (int32)(-2L)
20 
21 
22 /*! Sensor configuration settings used when subscribing to sensor data. */
23 typedef struct
24 {
25  isf_SensorDataTypes_t resultType; //!< The desired data type of the subscription
26  isf_dsa_result_types_t resultFormat; //!< The format of the data to be returned- 0=RAW, 1=FIXED, 2=FLOAT
27  uint32 nSamplePeriod; //!< Sample period in microseconds
28  uint8 nSettingsToUse; //!< 1 = current; 2=given; 3=best possible
29  uint8 nFifoDepth; //!< 1 = no FIFO, or another value < ::SM_MAX_FIFO_DEPTH
31 
32 
33 #endif /* ISF_SM_TYPES_H_ */
unsigned char uint8
This defines uint8 as unsigned char.
Definition: isf_types.h:18
isf_dsa_result_types_t resultFormat
The format of the data to be returned- 0=RAW, 1=FIXED, 2=FLOAT.
unsigned long uint32
This defines uint32 as unsigned long.
Definition: isf_types.h:36
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.