ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
MMA955x_1.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_1.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_1
16 ** Device Address : 0x4C
17 ** Comm Channel : I2C1
18 ** Allowed Sample Rates : 488.28Hz
19 ** Allowed Full-scale Range : ±8 g
20 ** Contents :
21 ** No public methods
22 **
23 ** (c) Copyright Freescale Semiconductor Inc, 2015
24 http://www.freescale.com
25 ** ###################################################################*/
26 /*!
27 ** @file MMA955x_1.h
28 ** @version 01.00
29 ** @brief
30 **
31 */
32 /*!
33 ** @addtogroup MMA955x_1_module MMA955x_1 module documentation
34 ** @{
35 */
36 
37 #ifndef __MMA955x_1_H
38 #define __MMA955x_1_H
39 
40 /* MODULE MMA955x_1. */
41 
42 /* Include inherited components */
43 #include "I2C1.h"
44 #include "mma955x.h"
46 #include "fsl_i2c_master_driver.h"
47 
48 #include "Cpu.h"
49 
50 #define MMA955x_1_DATA_TYPE mma955x_PedometerNativeData_t
51 #define MMA955x_1_SAMPLE_OFFSET (26)
52 #define MMA955x_1_SAMPLE_SIZE (6)
53 #define MMA955x_1_CONFIG_REGISTER_READ_OFFSET (0)
54 #define MMA955x_1_CONFIG_REGISTER_SIZE (sizeof(mma955x_readConfigResponseBuffer_t))
55 
56 /* MMA955x Sensor Output conversion factors */
57 #define MMA955x_1_ACC_FLOAT_CONVERSION_FACTOR_2g (0.000061035156)
58 #define MMA955x_1_ACC_FLOAT_CONVERSION_FACTOR_4g (0.000122070312)
59 #define MMA955x_1_ACC_FLOAT_CONVERSION_FACTOR_8g (0.000244140624)
60 
61 /*!
62  * @brief This allows access to the sensor specific configuration for the target sensor.
63  *
64  */
66 /*!
67  * @brief This allows access to the sensor adapter instance for the target sensor.
68  *
69  */
71 
72 /*!
73  * @brief This allows access to the sensor communications specific configuration.
74  *
75  */
76 extern const i2c_device_t MMA955x_1_DeviceInfo;
77 
78 
79 
80 /* END MMA955x_1. */
81 
82 #endif
83 /* ifndef __MMA955x_1_H */
84 /*!
85 ** @}
86 */
87 /*
88 ** ###################################################################
89 **
90 ** This file was created by Processor Expert 10.5 [05.21]
91 ** for the Freescale Kinetis series of microcontrollers.
92 **
93 ** ###################################################################
94 */
mma955x_Sensor_Specific_Settings_t MMA955x_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: MMA955x_1.c:172
This defines the DSA adapter structure required for static initialization of the concrete instance of...
const isf_dsa_Adapter_t MMA955x_1_Adapter
This allows access to the sensor adapter instance for the target sensor.
Definition: MMA955x_1.c:198
const i2c_device_t MMA955x_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: MMA955x_1.c:213
The mma955x.h contains the mma955x Intelligent Sensor register definitions, access macros...