| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

FXLC95000_2.c
Go to the documentation of this file.
1 /* ###################################################################
2 ** This component module is generated by Processor Expert. Do not modify it.
3 ** Filename : FXLC95000_2.c
4 ** CDE edition : Standard
5 ** Project : ISF2P2_K64F_MQX_PROJ
6 ** Processor : MK64FN1M0VLL12
7 ** Component : ISF_KSDK_Sensor_FXLC95000_Accelerometer
8 ** Version : Component 02.500, Driver 01.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 : FXLC95000_2
16 ** Device Address : 0x4C
17 ** Comm Channel : SPI1
18 ** Is SPI Selected : yes
19 ** Chip Select : fsl_gpio
20 ** SPI Select : fsl_gpio
21 ** Reset Sensor : fsl_gpio
22 ** Allowed Sample Rates : 800Hz
23 ** Allowed Full-scale Range : ±2 g
24 ** Contents :
25 ** No public methods
26 **
27 ** (c) Copyright Freescale Semiconductor Inc, 2015
28 http://www.freescale.com
29 ** ###################################################################*/
30 /*!
31 ** @file FXLC95000_2.c
32 ** @version 01.00
33 ** @brief
34 **
35 */
36 /*!
37 ** @addtogroup FXLC95000_2_module FXLC95000_2 module documentation
38 ** @{
39 */
40
41 /* MODULE FXLC95000_2. */
42
43 #include "FXLC95000_2.h"
44 #include "isf_util.h"
45 #include "isf_spi_master_types.h"
46 #include "SPIChipSelect.h"
47 #include "SPISelect.h"
48 #include "ResetSensor.h"
49
50 uint8 FXLC95000_2_ConfigRegisterBuffer[FXLC95000_2_CONFIG_REGISTER_SIZE];
51
52 const uint8 const BootToFlash[] = { 0x29, 0x00, 0xFF, 0xFF, 0xFF, 0xFF };
53 const uint8 const ConfigureMBoxCmd1[] = { 0x01, 0x02, 0x18, 0x14, 0x02, 0x03, 0x02, 0x02, 0x02, 0x01, 0x02, 0x00, 0x02, 0x05, 0x02, 0x04, 0x02, 0x07, 0x02, 0x06, 0x02, 0x09, 0x02, 0x08 };
54 const uint8 const ReadConfigRegistersCmd[] = { 0x02, 0x01, FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_2_CONFIG_REGISTER_SIZE };
55 const uint8 const QuickReadInterruptEnable[] = { 0x01, 0x02, 0x39, 0x01, 0x03 };
56 const uint8 const QuickReadInterruptDisable[] = { 0x01, 0x02, 0x39, 0x01, 0x02 };
57 const uint8 const StartDataCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x52 };
58 const uint8 const EndDataCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x51 };
59 const uint8 const ShutdownCmd[] = { 0x02, 0x02, 0x00, 0x01, 0x50 };
60 const uint8 const ConfigWritePreamble[] = { 0x02, 0x02, FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET, FXLC95000_2_CONFIG_REGISTER_SIZE };
61 const uint8 const UnprotectFlash[] = { 0x40, 0x00 };
62 const uint8 const EraseMainFlashArray[] = { 0x12, 0xC5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF };
63 const uint8 const ProtectFlash[] = { 0x38, 0x00 };
64
65 const fxlc95000_Command_t const InitializeSequence[] =
66 {
67 {
68 .offset = 0,
69 .nByteWrite = sizeof(BootToFlash),
70 .pWriteBuffer = (uint8* const)&BootToFlash
71 }
72 };
73
74 const fxlc95000_Command_t const ReadConfigRegistersSequence[] =
75 {
76 {
77 .offset = 0,
78 .nByteWrite = sizeof(ReadConfigRegistersCmd),
79 .pWriteBuffer = (uint8* const)&ReadConfigRegistersCmd
80 }
81 };
82
83 const fxlc95000_Command_t const ConfigureSequence[] =
84 {
85 {
86 .offset = 0,
87 .nByteWrite = sizeof(ConfigureMBoxCmd1),
88 .pWriteBuffer = (uint8* const)&ConfigureMBoxCmd1
89 },
90 {
91 .offset = 0,
92 .nByteWrite = sizeof(QuickReadInterruptEnable),
93 .pWriteBuffer = (uint8* const)&QuickReadInterruptEnable
94 }
95 };
96
97 const fxlc95000_Command_t const StartDataSequence[] =
98 {
99 {
100 .offset = 0,
101 .nByteWrite = sizeof(StartDataCmd),
102 .pWriteBuffer = (uint8* const)&StartDataCmd
103 }
104 };
105
106 const fxlc95000_Command_t const EndDataSequence[] =
107 {
108 {
109 .offset = 0,
110 .nByteWrite = sizeof(EndDataCmd),
111 .pWriteBuffer = (uint8* const)&EndDataCmd
112 }
113 };
114
115
116 const fxlc95000_Command_t const ShutdownSequence[] =
117 {
118 {
119 .offset = 0,
120 .nByteWrite = sizeof(ShutdownCmd),
121 .pWriteBuffer = (uint8* const)&ShutdownCmd
122 }
123 };
124
125 const fxlc95000_Command_t const WriteConfigPreambleSequence[] =
126 {
127 {
128 .offset = 0,
129 .nByteWrite = sizeof(ConfigWritePreamble),
130 .pWriteBuffer = (uint8* const)&ConfigWritePreamble
131 }
132 };
133
134 const fxlc95000_Command_t const FlashPreprocessSequence[] =
135 {
136 {
137 .offset = 0,
138 .nByteWrite = sizeof(UnprotectFlash),
139 .pWriteBuffer = (uint8* const)&UnprotectFlash
140 },
141 {
142 .offset = 0,
143 .nByteWrite = sizeof(EraseMainFlashArray),
144 .pWriteBuffer = (uint8* const)&EraseMainFlashArray
145 }
146 };
147
148 const fxlc95000_Command_t const FlashPostprocessSequence[] =
149 {
150 {
151 .offset = 0,
152 .nByteWrite = sizeof(ProtectFlash),
153 .pWriteBuffer = (uint8* const)&ProtectFlash
154 }
155 };
156
157 fxlc95000_Sensor_Specific_Settings_t FXLC95000_2_Sensor_Specific_Config =
158 {
159 .sampleDataOffset = FXLC95000_2_SAMPLE_OFFSET,
160 .sampleDataSize = FXLC95000_2_SAMPLE_SIZE,
161 .configRegisterReadOffset = FXLC95000_2_CONFIG_REGISTER_READ_OFFSET,
162 .configRegisterReadSize = FXLC95000_2_CONFIG_REGISTER_SIZE,
163 .engFloatConversionFactor = FXLC95000_2_ACC_FLOAT_CONVERSION_FACTOR,
164 .engFixedTotalWidth = 32,
165 .engFixedIntegerWidth = 16,
166 .engFixedSignBit = 1,
167 .resolution = FXLC95000_2_ACC_ACCEL_RESOLUTION_16_BIT,
168 .range = FXLC95000_2_ACC_ACCEL_RANGE_2G,
169 .mode = FXLC95000_2_ACC_MODE_ACCEL_ONLY,
170 .writeConfigRegisterPreamble = { .numCommands=sizeof(WriteConfigPreambleSequence)/sizeof(fxlc95000_Command_t),.commands=WriteConfigPreambleSequence},
171 .readConfigCommands = { .numCommands=sizeof(ReadConfigRegistersSequence)/sizeof(fxlc95000_Command_t),.commands=ReadConfigRegistersSequence},
172 .initializeCommands = { .numCommands=sizeof(InitializeSequence)/sizeof(fxlc95000_Command_t),.commands=InitializeSequence},
173 .validateSettingsCommands = { .numCommands=0, .commands=NULL},
174 .configureCommands = { .numCommands=sizeof(ConfigureSequence)/sizeof(fxlc95000_Command_t), .commands=ConfigureSequence},
175 .startDataCommands = { .numCommands=sizeof(StartDataSequence)/sizeof(fxlc95000_Command_t), .commands=StartDataSequence},
176 .endDataCommands = { .numCommands=sizeof(EndDataSequence)/sizeof(fxlc95000_Command_t), .commands=EndDataSequence},
177 .calibrateCommands = { .numCommands=0, .commands=NULL},
178 .shutdownCommands = { .numCommands=sizeof(ShutdownSequence)/sizeof(fxlc95000_Command_t), .commands=ShutdownSequence},
179 .getDataCommands = { .numCommands=0, .commands=NULL},
180 .flashPreprocessCommands = { .numCommands=sizeof(FlashPreprocessSequence)/sizeof(fxlc95000_Command_t), .commands=FlashPreprocessSequence},
181 .flashPostprocessCommands = { .numCommands=sizeof(FlashPostprocessSequence)/sizeof(fxlc95000_Command_t), .commands=FlashPostprocessSequence}
182 };
183
184 /*!
185 * @brief This creates the sensor adapter instance for the target sensor.
186 *
187 */
188 const isf_dsa_Adapter_t FXLC95000_2_Adapter =
189 {
190 .devInfo.pSupportedSensorTypes = fxlc95000_SupportedSensorTypes,
191 .devInfo.pSupportedSensorDataTypes = fxlc95000_SupportedDataTypes,
192 .devInfo.nNativeDataSetSize = sizeof(fxlc95000_DataBuffer_t),
193 .control.Initialize = &fsl_fxlc95000_Initialize,
194 .control.ValidateSettings = &fsl_fxlc95000_ValidateSettings,
195 .control.Configure = &fsl_fxlc95000_Configure,
196 .control.StartData = &fsl_fxlc95000_StartData,
197 .control.EndData = &fsl_fxlc95000_EndData,
198 .control.Calibrate = &fsl_fxlc95000_Calibrate,
199 .control.Shutdown = &fsl_fxlc95000_Shutdown,
200 .control.Flash = &fsl_fxlc95000_Flash,
201 .control.Convert = &fsl_fxlc95000_Convert
202 };
203
204
205 #define FSL_SENSOR_SPI_CMD_LENG 0x1
206 spi_master_slaveInfo_t fsl_spi_sensor_type_FXLC95000_2 = {
207 .slaveinit = (fnslaveinit_t)&fsl_95000_spi_slave_init,
208 .writepreProcess = (fnwritepreProcessing_t)fsl_95000_spi_slave_write_preprocess,
209 .writepostProcess = (fnwritepostProcossing_t)fsl_95000_spi_slave_write_postprocess,
210 .readpreProcess = (fnreadpreProcessing_t)fsl_95000_spi_slave_read_preprocess,
211 .readpostProcess = (fnreadpostProcossing_t)fsl_95000_spi_slave_read_postprocess
212 };
213
214 const spi_master_CommSpecificInfo_t FXLC95000_2_DeviceInfo =
215 {
216 .busConfig =
217 {
218 .timeout = 1000U,
219 .device =
220 {
221 .bitsPerSec = 500000U,
222 .dataBusConfig.bitsPerFrame = 8U,
223 .dataBusConfig.clkPolarity = kDspiClockPolarity_ActiveHigh,
224 .dataBusConfig.clkPhase = kDspiClockPhase_FirstEdge,
225 .dataBusConfig.direction = kDspiMsbFirst,
226 },
227 .userConfig =
228 {
229 .whichCtar = kDspiCtar0,
230 .isSckContinuous = false,
231 .isChipSelectContinuous = false,
232 .whichPcs = kDspiPcs0,
233 .pcsPolarity = kDspiPcs_ActiveHigh,
234 },
235 },
236 .pSlaveInfo = &fsl_spi_sensor_type_FXLC95000_2
237 };
238
239 static uint8 spiRead_CmdBuffer[64];
240 static uint8 spiRead_DataBuffer[64];
241 static uint8 spiWrite_CmdDataBuffer[64];
242
243
244 isf_status_t fsl_95000_spi_slave_init(void)
245 {
246 // Call the GPIO_LDD function to initialize the chip-select.
247 GPIO_DRV_OutputPinInit(ChipSelect_OutConfig0);
248 GPIO_DRV_OutputPinInit(SPISelect_OutConfig0);
249 GPIO_DRV_OutputPinInit(ResetSensor_OutConfig0);
250
251 // SPI Mode switch sequence.
252 GPIO_DRV_ClearPinOutput(J1_10);
253 GPIO_DRV_SetPinOutput(J1_11);
254 OSA_TimeDelay(30);
255 GPIO_DRV_ClearPinOutput(J1_11);
256 OSA_TimeDelay(50);
257 GPIO_DRV_SetPinOutput(J1_10);
258
259 return ISF_SUCCESS;
260 }
261
262 isf_status_t fsl_95000_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
263 {
264 spi_mater_slaveCmd_t* pSlaveCmd = (spi_mater_slaveCmd_t*)pCmdOut;
265
266 uint8 *pWBuff = spiWrite_CmdDataBuffer;
267 uint8 *pRBuff = spiWrite_CmdDataBuffer + size + FSL_SENSOR_SPI_CMD_LENG;
268
269 // formatting the command for the FSL_SENSORS
270 *pWBuff = (offset | 0x40) << 1 ; // offset is the internal register address of the sensor at which write is performed.
271
272 // Copy the command
273 ISF_MEM_CPY((uint8*)pWritebuffer, (pWBuff + FSL_SENSOR_SPI_CMD_LENG), size);
274
275 // Create the slave command.
276 pSlaveCmd->size = size + FSL_SENSOR_SPI_CMD_LENG;
277 pSlaveCmd->pWriteBuffer = (uint8*)pWBuff;
278 pSlaveCmd->pReadBuffer = (uint8*)pRBuff;
279
280 // Call the GPIO_LDD function to clear chip-select.
281 GPIO_DRV_ClearPinOutput(J1_13);
282
283 return ISF_SUCCESS;
284 }
285
286 isf_status_t fsl_95000_spi_slave_write_postprocess(void *pCmdOut)
287 {
288 // Call the GPIO_LDD function to set chip-select.
289 GPIO_DRV_SetPinOutput(J1_13);
290
291 return ISF_SUCCESS;
292 }
293
294 isf_status_t fsl_95000_spi_slave_read_preprocess(void *pCmdOut, uint32 offset, uint32 size)
295 {
296 spi_mater_slaveCmd_t* pSlaveCmd = (spi_mater_slaveCmd_t*)pCmdOut;
297
298 uint8 *pWBuff = spiRead_CmdBuffer;
299 uint8 *pRBuff = spiRead_DataBuffer;
300
301 // formatting the command for the FSL_SENSORS
302 *pWBuff = (offset & 0x7F) << 1 ; // offset is the internal register address of the sensor at which write is performed.
303
304 // Create the slave command.
305 pSlaveCmd->size = size + FSL_SENSOR_SPI_CMD_LENG;
306 pSlaveCmd->pWriteBuffer = (uint8*)pWBuff;
307 pSlaveCmd->pReadBuffer = (uint8*)pRBuff;
308
309 // Call the GPIO_LDD function to clear chip-select.
310 GPIO_DRV_ClearPinOutput(J1_13);
311
312 return ISF_SUCCESS;
313 }
314
315 isf_status_t fsl_95000_spi_slave_read_postprocess(void *pCmdOut, void* pDataOut)
316 {
317 spi_mater_slaveCmd_t* pSlaveCmd = (spi_mater_slaveCmd_t*)pCmdOut;
318
319 ISF_MEM_CPY((uint8*)(pSlaveCmd->pReadBuffer + FSL_SENSOR_SPI_CMD_LENG), pDataOut , (pSlaveCmd->size - FSL_SENSOR_SPI_CMD_LENG) );
320
321 // Call the GPIO_LDD function to set chip-select.
322 GPIO_DRV_SetPinOutput(J1_13);
323
324 return ISF_SUCCESS;
325 }
326 /* END FXLC95000_2. */
327
328 /*!
329 ** @}
330 */
331 /*
332 ** ###################################################################
333 **
334 ** This file was created by Processor Expert 10.5 [05.21]
335 ** for the Freescale Kinetis series of microcontrollers.
336 **
337 ** ###################################################################
338 */
spi_mater_SlaveCmd::size
uint32 size
Definition: isf_spi_master_types.h:39
J1_10
Definition: SPISelect.h:82
uint8
unsigned char uint8
Definition: isf_types.h:76
spi_mater_slaveInfo::slaveinit
fnslaveinit_t slaveinit
Definition: isf_spi_master_types.h:53
StartDataSequence
const fxlc95000_Command_t const StartDataSequence[]
Definition: FXLC95000_2.c:97
spi_master_CommSpecificInfo_t
Definition: isf_spi_master_types.h:60
fsl_fxlc95000_Calibrate
isf_dsa_status_t fsl_fxlc95000_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
Definition: fsl_fxlc95000_i2cspi_pedo.c:376
ProtectFlash
const uint8 const ProtectFlash[]
Definition: FXLC95000_2.c:63
ReadConfigRegistersSequence
const fxlc95000_Command_t const ReadConfigRegistersSequence[]
Definition: FXLC95000_2.c:74
ChipSelect_OutConfig0
const gpio_output_pin_user_config_t ChipSelect_OutConfig0[]
Configuration structure 0 for output pins.
Definition: ChipSelect.c:56
EndDataSequence
const fxlc95000_Command_t const EndDataSequence[]
Definition: FXLC95000_2.c:106
ISF_SUCCESS
Definition: isf.h:31
ISF_MEM_CPY
#define ISF_MEM_CPY(src, dest, number_of_bytes)
Macro for the memory copy.
Definition: isf_util.h:68
fxlc95000_Sensor_Specific_Settings_t::sampleDataOffset
const int32 sampleDataOffset
Definition: fxlc95000.h:65
ReadConfigRegistersCmd
const uint8 const ReadConfigRegistersCmd[]
Definition: FXLC95000_2.c:54
FlashPostprocessSequence
const fxlc95000_Command_t const FlashPostprocessSequence[]
Definition: FXLC95000_2.c:148
fsl_fxlc95000_Flash
isf_dsa_status_t fsl_fxlc95000_Flash(isf_SensorHandle_t *pSensorHandle, void *pFlashData, uint8 numBytes)
Definition: fsl_fxlc95000_i2cspi_pedo.c:530
fxlc95000_SupportedDataTypes
isf_SensorDataTypes_t fxlc95000_SupportedDataTypes[]
Definition: fsl_fxlc95000_i2cspi_pedo.c:28
ShutdownSequence
const fxlc95000_Command_t const ShutdownSequence[]
Definition: FXLC95000_2.c:116
FXLC95000_2_DeviceInfo
const spi_master_CommSpecificInfo_t FXLC95000_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLC95000_2.c:214
fxlc95000_Sensor_Specific_Settings_t
Definition: fxlc95000.h:63
spi_mater_slaveInfo
This structure defines the slave specific spi information.
Definition: isf_spi_master_types.h:51
FXLC95000_2_CONFIG_REGISTER_SIZE
#define FXLC95000_2_CONFIG_REGISTER_SIZE
Definition: FXLC95000_2.h:62
FXLC95000_2_CONFIG_REGISTER_READ_OFFSET
#define FXLC95000_2_CONFIG_REGISTER_READ_OFFSET
Definition: FXLC95000_2.h:61
fxlc95000_DataBuffer_t
This structure defines the dummy DSA data buffer format.
Definition: fsl_fxlc95000_i2cspi_pedo.h:28
fsl_fxlc95000_Convert
isf_dsa_status_t fsl_fxlc95000_Convert(volatile isf_SensorHandle_t *pSensorHandle, isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType, void *pNativeSample, void *pConvertedSample, int32 *numBytes)
This function converts the raw sample data to the desired output type.
Definition: fsl_fxlc95000_i2cspi_pedo.c:652
fsl_fxlc95000_Configure
isf_dsa_status_t fsl_fxlc95000_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
Definition: fsl_fxlc95000_i2cspi_pedo.c:166
fsl_95000_spi_slave_read_preprocess
isf_status_t fsl_95000_spi_slave_read_preprocess(void *pCmdOut, uint32 offset, uint32 size)
Definition: FXLC95000_2.c:294
ConfigWritePreamble
const uint8 const ConfigWritePreamble[]
Definition: FXLC95000_2.c:60
fsl_fxlc95000_EndData
isf_dsa_status_t fsl_fxlc95000_EndData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:315
spi_master_CommSpecificInfo_t::busConfig
spi_master_busConfig_t busConfig
Definition: isf_spi_master_types.h:63
EndDataCmd
const uint8 const EndDataCmd[]
Definition: FXLC95000_2.c:58
spi_mater_SlaveCmd::pWriteBuffer
uint8 * pWriteBuffer
Definition: isf_spi_master_types.h:41
WriteConfigPreambleSequence
const fxlc95000_Command_t const WriteConfigPreambleSequence[]
Definition: FXLC95000_2.c:125
ConfigureSequence
const fxlc95000_Command_t const ConfigureSequence[]
Definition: FXLC95000_2.c:83
fxlc95000_Command_t
Definition: fxlc95000.h:50
ResetSensor_OutConfig0
const gpio_output_pin_user_config_t ResetSensor_OutConfig0[]
Configuration structure 0 for output pins.
Definition: ResetSensor.c:56
FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET
#define FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET
Definition: FXLC95000_2.h:60
InitializeSequence
const fxlc95000_Command_t const InitializeSequence[]
Definition: FXLC95000_2.c:65
SPISelect_OutConfig0
const gpio_output_pin_user_config_t SPISelect_OutConfig0[]
Configuration structure 0 for output pins.
Definition: SPISelect.c:56
isf_dsa_Adapter_st::devInfo
isf_dsa_DeviceInfoBlock_t devInfo
Definition: isf_dsa_adapter.h:146
FlashPreprocessSequence
const fxlc95000_Command_t const FlashPreprocessSequence[]
Definition: FXLC95000_2.c:134
FXLC95000_2_ACC_ACCEL_RANGE_2G
#define FXLC95000_2_ACC_ACCEL_RANGE_2G
Definition: FXLC95000_2.h:65
UnprotectFlash
const uint8 const UnprotectFlash[]
Definition: FXLC95000_2.c:61
fxlc95000_SupportedSensorTypes
isf_SensorTypes_t fxlc95000_SupportedSensorTypes[]
Supported sensor and data types.
Definition: fsl_fxlc95000_i2cspi_pedo.c:27
FXLC95000_2_ConfigRegisterBuffer
uint8 FXLC95000_2_ConfigRegisterBuffer[FXLC95000_2_CONFIG_REGISTER_SIZE]
Definition: FXLC95000_2.c:50
isf_util.h
The isf_util.h file contains the utility method declarations and macros.
FXLC95000_2_SAMPLE_OFFSET
#define FXLC95000_2_SAMPLE_OFFSET
Definition: FXLC95000_2.h:58
ShutdownCmd
const uint8 const ShutdownCmd[]
Definition: FXLC95000_2.c:59
ConfigureMBoxCmd1
const uint8 const ConfigureMBoxCmd1[]
Definition: FXLC95000_2.c:53
isf_dsa_Adapter_st
This defines the DSA adapter structure required for static initialization of the concrete instance of...
Definition: isf_dsa_adapter.h:144
isf_dsa_DeviceInfoBlock_st::pSupportedSensorTypes
isf_SensorTypes_t * pSupportedSensorTypes
Definition: isf_dsa_adapter.h:70
fnwritepreProcessing_t
isf_status_t(* fnwritepreProcessing_t)(void *cmdOut, uint32 offset, uint32 size, void *writebuffer)
Definition: isf_spi_master_types.h:45
FXLC95000_2_Sensor_Specific_Config
fxlc95000_Sensor_Specific_Settings_t FXLC95000_2_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXLC95000_2.c:157
spi_mater_SlaveCmd
This structure defines the spi slave command format.
Definition: isf_spi_master_types.h:36
StartDataCmd
const uint8 const StartDataCmd[]
Definition: FXLC95000_2.c:57
ResetSensor.h
EraseMainFlashArray
const uint8 const EraseMainFlashArray[]
Definition: FXLC95000_2.c:62
fnwritepostProcossing_t
isf_status_t(* fnwritepostProcossing_t)(void *cmd)
Definition: isf_spi_master_types.h:46
fsl_fxlc95000_ValidateSettings
isf_dsa_status_t fsl_fxlc95000_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSubSettings)
Definition: fsl_fxlc95000_i2cspi_pedo.c:133
BootToFlash
const uint8 const BootToFlash[]
Definition: FXLC95000_2.c:52
FSL_SENSOR_SPI_CMD_LENG
#define FSL_SENSOR_SPI_CMD_LENG
Definition: FXLC95000_2.c:205
fsl_fxlc95000_StartData
isf_dsa_status_t fsl_fxlc95000_StartData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:256
fsl_95000_spi_slave_read_postprocess
isf_status_t fsl_95000_spi_slave_read_postprocess(void *pCmdOut, void *pDataOut)
Definition: FXLC95000_2.c:315
fsl_fxlc95000_Initialize
isf_dsa_status_t fsl_fxlc95000_Initialize(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:56
FXLC95000_2.h
fsl_fxlc95000_Shutdown
isf_dsa_status_t fsl_fxlc95000_Shutdown(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_fxlc95000_i2cspi_pedo.c:396
fnreadpreProcessing_t
isf_status_t(* fnreadpreProcessing_t)(void *cmdout, uint32 offset, uint32 size)
Definition: isf_spi_master_types.h:47
QuickReadInterruptEnable
const uint8 const QuickReadInterruptEnable[]
Definition: FXLC95000_2.c:55
isf_status_t
int32 isf_status_t
ISF return status type.
Definition: isf.h:76
spi_mater_SlaveCmd::pReadBuffer
uint8 * pReadBuffer
Definition: isf_spi_master_types.h:40
fsl_95000_spi_slave_init
isf_status_t fsl_95000_spi_slave_init(void)
Definition: FXLC95000_2.c:244
FXLC95000_2_ACC_MODE_ACCEL_ONLY
#define FXLC95000_2_ACC_MODE_ACCEL_ONLY
Definition: FXLC95000_2.h:68
QuickReadInterruptDisable
const uint8 const QuickReadInterruptDisable[]
Definition: FXLC95000_2.c:56
SPISelect.h
isf_spi_master_types.h
isf_spi_master_types.h defines the spi protocol adapter structure and types.
fnreadpostProcossing_t
isf_status_t(* fnreadpostProcossing_t)(void *cmd, void *dataOut)
Definition: isf_spi_master_types.h:48
fsl_spi_sensor_type_FXLC95000_2
spi_master_slaveInfo_t fsl_spi_sensor_type_FXLC95000_2
Definition: FXLC95000_2.c:206
FXLC95000_2_ACC_FLOAT_CONVERSION_FACTOR
#define FXLC95000_2_ACC_FLOAT_CONVERSION_FACTOR
Definition: FXLC95000_2.h:64
spi_master_BusConfig_struct::timeout
isf_duration_t timeout
Definition: isf_spi_master_types.h:21
FXLC95000_2_ACC_ACCEL_RESOLUTION_16_BIT
#define FXLC95000_2_ACC_ACCEL_RESOLUTION_16_BIT
Definition: FXLC95000_2.h:69
uint32
unsigned long int uint32
Definition: isf_types.h:78
J1_13
Definition: SPIChipSelect.h:82
FXLC95000_2_Adapter
const isf_dsa_Adapter_t FXLC95000_2_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXLC95000_2.c:188
J1_11
Definition: ResetSensor.h:82
FXLC95000_2_SAMPLE_SIZE
#define FXLC95000_2_SAMPLE_SIZE
Definition: FXLC95000_2.h:59
fxlc95000_Command_t::offset
int32 offset
Definition: fxlc95000.h:52
fsl_95000_spi_slave_write_preprocess
isf_status_t fsl_95000_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
Definition: FXLC95000_2.c:262
fnslaveinit_t
isf_status_t(* fnslaveinit_t)(void)
Definition: isf_spi_master_types.h:44
SPIChipSelect.h
fsl_95000_spi_slave_write_postprocess
isf_status_t fsl_95000_spi_slave_write_postprocess(void *pCmdOut)
Definition: FXLC95000_2.c:286
- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.