| ISF 2.1 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
FXAS21002_1.c
Go to the documentation of this file.
1 /* ###################################################################
2 ** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
3 ** Filename : FXAS21002_1.c
4 ** CDE edition : Standard
5 ** Project : ISF_K64F_CW_PROJ
6 ** Processor : MK64FN1M0VLL12
7 ** Component : ISF_Sensor_FXAS21002_Gyrometer
8 ** Version : Component 01.000, Driver 01.00, CPU db: 3.00.000
9 ** Compiler : GNU C Compiler
10 ** Date/Time : 2015-03-03, 11:01, # CodeGen: 0
11 ** Abstract :
12 **
13 ** Settings :
14 ** Contents :
15 ** No public methods
16 **
17 ** (c) Copyright <company/user-name>, 2014
18 http://www.<company>.com
19 mail: info@<company>.com
20 ** ###################################################################*/
21 /*!
22 ** @file FXAS21002_1.c
23 ** @version 01.00
24 ** @brief
25 **
26 */
27 /*!
28 ** @addtogroup FXAS21002_1_module FXAS21002_1 module documentation
29 ** @{
30 */
31
32 /* MODULE FXAS21002_1. */
33
34 #include "FXAS21002_1.h"
35
36 fxas21002_Sensor_Specific_Settings_t FXAS21002_1_Sensor_Specific_Config =
37 {
38 .gyroFullScaleRange = 0, // Capture the accelerometer full-scale range for use in conversion routines.
39 .regCount = 4, // Number of register pairs to follow
40 .regPairs =
41 {
42 // System and Control registers.
43 { FXAS21002_CTRL_REG0, (FXAS21002_SET_FIELD(BW,0)) | (FXAS21002_SET_FIELD(SPIW,0)) | (FXAS21002_SET_FIELD(HPF_EN,0)) | (FXAS21002_SET_FIELD(FS,0)) },
44 { FXAS21002_CTRL_REG1, (FXAS21002_SET_FIELD(DR,0)) },
45 { FXAS21002_CTRL_REG2, 0 }, // Interrupt sources disabled, Active Low, Push-Pull Open Drain (defaults).
46 { FXAS21002_CTRL_REG3, (FXAS21002_SET_FIELD(WRAPTOONE,0)) | (FXAS21002_SET_FIELD(EXTCTRLEN,0)) | (FXAS21002_SET_FIELD(FSDOUBLE,0)) },
47 }
48 };
49
50 /*!
51 * @brief This creates the sensor adapter instance for the target sensor.
52 *
53 */
54 const isf_dsa_Adapter_t FXAS21002_1_Adapter =
55 {
56 .devInfo.pSupportedSensorTypes = fxas21002_SupportedSensorTypes,
57 .devInfo.pSupportedSensorDataTypes = fxas21002_SupportedDataTypes,
58 .devInfo.nNativeDataSetSize = sizeof(fxas21002_DataBuffer_t),
59 .control.Initialize = &fsl_fxas21002_i2cspi_3D_gyro_Initialize,
60 .control.ValidateSettings = &fsl_fxas21002_i2cspi_3D_gyro_ValidateSettings,
61 .control.Configure = &fsl_fxas21002_i2cspi_3D_gyro_Configure,
62 .control.StartData = &fsl_fxas21002_i2cspi_3D_gyro_StartData,
63 .control.EndData = &fsl_fxas21002_i2cspi_3D_gyro_EndData,
64 .control.Calibrate = &fsl_fxas21002_i2cspi_3D_gyro_Calibrate,
65 .control.Shutdown = &fsl_fxas21002_i2cspi_3D_gyro_Shutdown,
66 .control.Convert = &fsl_fxas21002_i2cspi_3D_gyro_Convert
67 };
68
69 const i2c_device_t FXAS21002_1_DeviceInfo =
70 {
71 .addrType = 0, // 7-bit addresses for now.
72 .baudRate_kbps = 400, // default baud rate (kbps).
73 .address = 32 // instance specific device address.
74 };
75
76 /* END FXAS21002_1. */
77
78 /*!
79 ** @}
80 */
81 /*
82 ** ###################################################################
83 **
84 ** This file was created by Processor Expert 10.3 [05.09]
85 ** for the Freescale Kinetis series of microcontrollers.
86 **
87 ** ###################################################################
88 */
fxas21002_Sensor_Specific_Settings_t::gyroFullScaleRange
uint8 gyroFullScaleRange
Definition: fxas21002.h:216
fsl_fxas21002_i2cspi_3D_gyro_Calibrate
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
This is the concrete implementation of the FXAS21002 sensor adapter for calibration ...
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:538
FXAS21002_1_DeviceInfo
const i2c_device_t FXAS21002_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXAS21002_1.c:69
fsl_fxas21002_i2cspi_3D_gyro_EndData
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_EndData(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXAS21002 sensor adapter for End Data. ...
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:474
fsl_fxas21002_i2cspi_3D_gyro_Convert
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_Convert(volatile isf_SensorHandle_t *pSensorHandle, isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType, void *pNativeSample, void *pConvertedSample, int32 *numBytes)
This function coverts the raw sample data to the desired output type.
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:693
FXAS21002_1.h
fxas21002_DataBuffer_t
This structure defines the dummy DSA data buffer format.
Definition: fsl_fxas21002_i2cspi_3D_gyro.h:31
fxas21002_SupportedSensorTypes
isf_SensorTypes_t fxas21002_SupportedSensorTypes[]
Supported sensor and data types for FXAS21002.
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:59
I2CDeviceInfo
Information necessary to communicate with an I2C slave device.
Definition: fsl_i2c_master_driver.h:30
fsl_fxas21002_i2cspi_3D_gyro_Configure
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
This is the concrete implementation of the FXAS21002 sensor adapter for configuration.
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:285
fsl_fxas21002_i2cspi_3D_gyro_StartData
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_StartData(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXAS21002 sensor adapter for start Data.
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:414
isf_dsa_Adapter_st::devInfo
isf_dsa_DeviceInfoBlock_t devInfo
Definition: isf_dsa_adapter.h:146
FXAS21002_CTRL_REG3
Definition: fxas21002.h:60
FXAS21002_SET_FIELD
#define FXAS21002_SET_FIELD(name, val)
Definition: fxas21002.h:70
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
FXAS21002_1_Adapter
const isf_dsa_Adapter_t FXAS21002_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXAS21002_1.c:54
FXAS21002_CTRL_REG1
Definition: fxas21002.h:58
isf_dsa_DeviceInfoBlock_st::pSupportedSensorTypes
isf_SensorTypes_t * pSupportedSensorTypes
Definition: isf_dsa_adapter.h:72
fxas21002_Sensor_Specific_Settings_t
Definition: fxas21002.h:213
fsl_fxas21002_i2cspi_3D_gyro_ValidateSettings
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
This is the concrete implementation of the FXAS21002 sensor adapter for validating current settings...
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:246
fsl_fxas21002_i2cspi_3D_gyro_Shutdown
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_Shutdown(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXAS21002 sensor adapter for shutdown .
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:555
I2CDeviceInfo::addrType
LDD_I2C_TAddrType addrType
Definition: fsl_i2c_master_driver.h:34
FXAS21002_CTRL_REG0
Definition: fxas21002.h:52
fxas21002_SupportedDataTypes
isf_SensorDataTypes_t fxas21002_SupportedDataTypes[]
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:60
fsl_fxas21002_i2cspi_3D_gyro_Initialize
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_Initialize(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXAS21002 sensor adapter initialization.
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:157
FXAS21002_1_Sensor_Specific_Config
fxas21002_Sensor_Specific_Settings_t FXAS21002_1_Sensor_Specific_Config
This allows access to the sensor specific configuration for the target sensor.
Definition: FXAS21002_1.c:36
FXAS21002_CTRL_REG2
Definition: fxas21002.h:59
- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.