ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
fxlc95000.h
Go to the documentation of this file.
1 /**
2  * @file fxlc95000.h
3  * @brief The \b fxlc95000.h contains the FXLC95000 Intelligent Sensor register definitions, access macros, and
4  * device access functions.
5  *
6  * @copyright Copyright (c) 2015, Freescale Semiconductor, Inc.
7  */
8 
9 #ifndef FXLC95000_H_
10 #define FXLC95000_H_
11 
12 #include "isf_types.h"
13 
14 #define startof(type,member) ((int32)&((type *)0)->member)
15 
17 
18 /* These map to the ISF1P195K types */
19 #pragma pack(push,1)
20  typedef struct
21  {
22  uint8 nSettingsToUse; //!< 1 = current; 2=given; 3=best possible
23  uint8 nFifoDepth; //!< 1 = no FIFO, or another value < ::SM_MAX_FIFO_DEPTH
24  uint32 nCurrentReportRate; //!< Sample period in microseconds
25  uint8 nCurrentResolution; //!< Expected sensor resolution.
26  uint8 nRange; //!< Expected sensor dynamic range.
27  uint8 nMode; //!< sensor specific mode
29 
30  typedef struct
31  {
35 
36  typedef struct
37  {
38  uint8 responseBytes[2];
41 
42 
43 #define REPORTRATE_OFFSET startof(fxlc95000_SensorSetting_t,nCurrentReportRate)
44 #define RESOLUTION_OFFSET startof(fxlc95000_SensorSetting_t,nCurrentResolution)
45 #define RANGE_OFFSET startof(fxlc95000_SensorSetting_t,nRange)
46 #define MODE_OFFSET startof(fxlc95000_SensorSetting_t,nMode)
47 
48 #pragma pack(pop)
49 
50 typedef struct
51 {
56 
57 typedef struct
58 {
62 
63 typedef struct
64 {
74  const uint8 range;
75  const uint8 mode;
89 
90 
91 
92 #endif /* FXLC95000_H_ */
unsigned char uint8
Definition: isf_types.h:76
uint8 nMode
sensor specific mode
Definition: fxlc95000.h:27
const fxlc95000_CommandList_t startDataCommands
Definition: fxlc95000.h:81
fxlc95000_appConfigRegister_t configData
Definition: fxlc95000.h:39
uint8 nCurrentResolution
Expected sensor resolution.
Definition: fxlc95000.h:25
const fxlc95000_CommandList_t flashPostprocessCommands
Definition: fxlc95000.h:87
const fxlc95000_CommandList_t configureCommands
Definition: fxlc95000.h:80
fxlc95000_SensorSetting_t settings
Definition: fxlc95000.h:33
uint8 nSettingsToUse
1 = current; 2=given; 3=best possible
Definition: fxlc95000.h:22
const fxlc95000_CommandList_t endDataCommands
Definition: fxlc95000.h:82
const fxlc95000_CommandList_t calibrateCommands
Definition: fxlc95000.h:83
const fxlc95000_CommandList_t flashPreprocessCommands
Definition: fxlc95000.h:86
uint8 nFifoDepth
1 = no FIFO, or another value < SM_MAX_FIFO_DEPTH
Definition: fxlc95000.h:23
The isf_types.h file contains the ISF data type definitions and some of the globally used macros...
const fxlc95000_CommandList_t initializeCommands
Definition: fxlc95000.h:79
const fxlc95000_Command_t * commands
Definition: fxlc95000.h:60
int32 fxlc95000_status_t
Definition: fxlc95000.h:16
uint32 nCurrentReportRate
Sample period in microseconds.
Definition: fxlc95000.h:24
signed long int int32
Definition: isf_types.h:74
const fxlc95000_CommandList_t validateSettingsCommands
Definition: fxlc95000.h:78
const fxlc95000_CommandList_t getDataCommands
Definition: fxlc95000.h:85
const fxlc95000_CommandList_t shutdownCommands
Definition: fxlc95000.h:84
const fxlc95000_CommandList_t writeConfigRegisterPreamble
Definition: fxlc95000.h:76
unsigned long int uint32
Definition: isf_types.h:78
uint8 nRange
Expected sensor dynamic range.
Definition: fxlc95000.h:26
const fxlc95000_CommandList_t readConfigCommands
Definition: fxlc95000.h:77
uint8 *const pWriteBuffer
Definition: fxlc95000.h:54