ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
FXLC95000_2.h
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.h
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.h
32 ** @version 01.00
33 ** @brief
34 **
35 */
36 /*!
37 ** @addtogroup FXLC95000_2_module FXLC95000_2 module documentation
38 ** @{
39 */
40 
41 #ifndef __FXLC95000_2_H
42 #define __FXLC95000_2_H
43 
44 /* MODULE FXLC95000_2. */
45 
46 /* Include inherited components */
47 #include "SPI1.h"
48 #include "SPIChipSelect.h"
49 #include "SPISelect.h"
50 #include "ResetSensor.h"
51 #include "fxlc95000.h"
53 #include "isf_spi_master_types.h"
54 
55 #include "Cpu.h"
56 
57 #define FXLC95000_2_DATA_TYPE fxlc95000_DataBuffer_t
58 #define FXLC95000_2_SAMPLE_OFFSET (16)
59 #define FXLC95000_2_SAMPLE_SIZE (10)
60 #define FXLC95000_2_CONFIG_REGISTER_CMD_OFFSET (0)
61 #define FXLC95000_2_CONFIG_REGISTER_READ_OFFSET (4)
62 #define FXLC95000_2_CONFIG_REGISTER_SIZE (sizeof(fxlc95000_appConfigRegister_t))
63 /* FXLC95000 Sensor Output conversion factors */
64 #define FXLC95000_2_ACC_FLOAT_CONVERSION_FACTOR (0.000061035156)
65 #define FXLC95000_2_ACC_ACCEL_RANGE_2G (0x40)
66 #define FXLC95000_2_ACC_ACCEL_RANGE_4G (0x80)
67 #define FXLC95000_2_ACC_ACCEL_RANGE_8G (0xC0)
68 #define FXLC95000_2_ACC_MODE_ACCEL_ONLY (0x00)
69 #define FXLC95000_2_ACC_ACCEL_RESOLUTION_16_BIT (0x00)
70 
71 /*!
72  * @brief This allows access to the sensor specific configuration for the target sensor.
73  *
74  */
76 /*!
77  * @brief This allows access to the sensor adapter instance for the target sensor.
78  *
79  */
81 
82 
83 /*!
84  * @brief This allows access to the sensor communications specific configuration.
85  *
86  */
88 
90 isf_status_t fsl_95000_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer);
93 isf_status_t fsl_95000_spi_slave_read_postprocess(void *pCmdOut, void* pDataOut);
94 
95 
96 /* END FXLC95000_2. */
97 
98 #endif
99 /* ifndef __FXLC95000_2_H */
100 /*!
101 ** @}
102 */
103 /*
104 ** ###################################################################
105 **
106 ** This file was created by Processor Expert 10.5 [05.21]
107 ** for the Freescale Kinetis series of microcontrollers.
108 **
109 ** ###################################################################
110 */
const spi_master_CommSpecificInfo_t FXLC95000_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXLC95000_2.c:214
isf_status_t fsl_95000_spi_slave_read_preprocess(void *pCmdOut, uint32 offset, uint32 size)
Definition: FXLC95000_2.c:294
This defines the DSA adapter structure required for static initialization of the concrete instance of...
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
The fxlc95000.h contains the FXLC95000 Intelligent Sensor register definitions, access macros...
isf_status_t fsl_95000_spi_slave_read_postprocess(void *pCmdOut, void *pDataOut)
Definition: FXLC95000_2.c:315
int32 isf_status_t
ISF return status type.
Definition: isf.h:76
isf_status_t fsl_95000_spi_slave_init(void)
Definition: FXLC95000_2.c:244
isf_spi_master_types.h defines the spi protocol adapter structure and types.
unsigned long int uint32
Definition: isf_types.h:78
const isf_dsa_Adapter_t FXLC95000_2_Adapter
This allows access to the sensor adapter instance for the target sensor.
Definition: FXLC95000_2.c:188
isf_status_t fsl_95000_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
Definition: FXLC95000_2.c:262
isf_status_t fsl_95000_spi_slave_write_postprocess(void *pCmdOut)
Definition: FXLC95000_2.c:286