ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
MMA955x_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 : MMA955x_2.h
4 ** CDE edition : Standard
5 ** Project : ISF2P2_K64F_MQX_PROJ
6 ** Processor : MK64FN1M0VLL12
7 ** Component : ISF_KSDK_Sensor_MMA955x_Pedometer
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 : MMA955x_2
16 ** Device Address : 0x4C
17 ** Comm Channel : SPI1
18 ** Is SPI Selected : yes
19 ** Chip Select : ChipSelect
20 ** Reset Sensor : SensorReset
21 ** Allowed Sample Rates : 488.28Hz
22 ** Allowed Full-scale Range : ±8 g
23 ** Contents :
24 ** No public methods
25 **
26 ** (c) Copyright Freescale Semiconductor Inc, 2015
27 http://www.freescale.com
28 ** ###################################################################*/
29 /*!
30 ** @file MMA955x_2.h
31 ** @version 01.00
32 ** @brief
33 **
34 */
35 /*!
36 ** @addtogroup MMA955x_2_module MMA955x_2 module documentation
37 ** @{
38 */
39 
40 #ifndef __MMA955x_2_H
41 #define __MMA955x_2_H
42 
43 /* MODULE MMA955x_2. */
44 
45 /* Include inherited components */
46 #include "SPI1.h"
47 #include "ChipSelect.h"
48 #include "SensorReset.h"
49 #include "mma955x.h"
51 #include "isf_spi_master_types.h"
52 
53 #include "Cpu.h"
54 
55 #define MMA955x_2_DATA_TYPE mma955x_PedometerNativeData_t
56 #define MMA955x_2_SAMPLE_OFFSET (26)
57 #define MMA955x_2_SAMPLE_SIZE (6)
58 #define MMA955x_2_CONFIG_REGISTER_READ_OFFSET (0)
59 #define MMA955x_2_CONFIG_REGISTER_SIZE (sizeof(mma955x_readConfigResponseBuffer_t))
60 
61 /* MMA955x Sensor Output conversion factors */
62 #define MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_2g (0.000061035156)
63 #define MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_4g (0.000122070312)
64 #define MMA955x_2_ACC_FLOAT_CONVERSION_FACTOR_8g (0.000244140624)
65 
66 /*!
67  * @brief This allows access to the sensor specific configuration for the target sensor.
68  *
69  */
71 /*!
72  * @brief This allows access to the sensor adapter instance for the target sensor.
73  *
74  */
76 
77 
78 /*!
79  * @brief This allows access to the sensor communications specific configuration.
80  *
81  */
83 
85 isf_status_t fsl_955x_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer);
88 isf_status_t fsl_955x_spi_slave_read_postprocess(void *pCmdOut, void* pDataOut);
89 
90 
91 /* END MMA955x_2. */
92 
93 #endif
94 /* ifndef __MMA955x_2_H */
95 /*!
96 ** @}
97 */
98 /*
99 ** ###################################################################
100 **
101 ** This file was created by Processor Expert 10.5 [05.21]
102 ** for the Freescale Kinetis series of microcontrollers.
103 **
104 ** ###################################################################
105 */
isf_status_t fsl_955x_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
Definition: MMA955x_2.c:287
isf_status_t fsl_955x_spi_slave_read_postprocess(void *pCmdOut, void *pDataOut)
Definition: MMA955x_2.c:340
isf_status_t fsl_955x_spi_slave_init(void)
Definition: MMA955x_2.c:270
isf_status_t fsl_955x_spi_slave_write_postprocess(void *pCmdOut)
Definition: MMA955x_2.c:311
This defines the DSA adapter structure required for static initialization of the concrete instance of...
const isf_dsa_Adapter_t MMA955x_2_Adapter
This allows access to the sensor adapter instance for the target sensor.
Definition: MMA955x_2.c:204
isf_status_t fsl_955x_spi_slave_read_preprocess(void *pCmdOut, uint32 offset, uint32 size)
Definition: MMA955x_2.c:319
mma955x_Sensor_Specific_Settings_t MMA955x_2_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MMA955x_2.c:178
int32 isf_status_t
ISF return status type.
Definition: isf.h:76
isf_spi_master_types.h defines the spi protocol adapter structure and types.
The mma955x.h contains the mma955x Intelligent Sensor register definitions, access macros...
unsigned long int uint32
Definition: isf_types.h:78
const spi_master_CommSpecificInfo_t MMA955x_2_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MMA955x_2.c:229