ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 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 
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.
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  */
55 {
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 
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 */
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 ...
const i2c_device_t FXAS21002_1_DeviceInfo
This allows access to the sensor communications specific configuration.
Definition: FXAS21002_1.c:69
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. ...
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.
This structure defines the dummy DSA data buffer format.
isf_SensorTypes_t fxas21002_SupportedSensorTypes[]
Supported sensor and data types for FXAS21002.
Information necessary to communicate with an I2C slave device.
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.
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.
isf_dsa_DeviceInfoBlock_t devInfo
#define FXAS21002_SET_FIELD(name, val)
Definition: fxas21002.h:70
This defines the DSA adapter structure required for static initialization of the concrete instance of...
const isf_dsa_Adapter_t FXAS21002_1_Adapter
This creates the sensor adapter instance for the target sensor.
Definition: FXAS21002_1.c:54
isf_SensorTypes_t * pSupportedSensorTypes
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...
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 .
LDD_I2C_TAddrType addrType
isf_SensorDataTypes_t fxas21002_SupportedDataTypes[]
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.
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