| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

Macros | Variables
FXAS21002_1 module documentation

## Macros
#define | FXAS21002_1_DATA_TYPE fxas21002_DataBuffer_t

## Variables
fxas21002_Sensor_Specific_Settings_t | FXAS21002_1_Sensor_Specific_Config
| This allows access to the sensor specific configuration for the target sensor. More...
const isf_dsa_Adapter_t | FXAS21002_1_Adapter
| This creates the sensor adapter instance for the target sensor. More...
const i2c_device_t | FXAS21002_1_DeviceInfo
| This allows access to the sensor communications specific configuration. More...
fxas21002_Sensor_Specific_Settings_t | FXAS21002_1_Sensor_Specific_Config
| This allows access to the sensor specific configuration for the target sensor. More...
const isf_dsa_Adapter_t | FXAS21002_1_Adapter
| This allows access to the sensor adapter instance for the target sensor. More...
const i2c_device_t | FXAS21002_1_DeviceInfo
| This allows access to the sensor communications specific configuration. More...

## Detailed Description

## Macro Definition Documentation

#define FXAS21002_1_DATA_TYPE fxas21002_DataBuffer_t

Definition at line 66 of file FXAS21002_1.h.

## Variable Documentation

const isf_dsa_Adapter_t FXAS21002_1_Adapter

This allows access to the sensor adapter instance for the target sensor.

This allows access to the sensor adapter instance for the target sensor.

Definition at line 77 of file FXAS21002_1.c.

const isf_dsa_Adapter_t FXAS21002_1_Adapter

Initial value:
=
{
.devInfo.pSupportedSensorTypes = fxas21002_SupportedSensorTypes,
.devInfo.pSupportedSensorDataTypes = fxas21002_SupportedDataTypes,
.devInfo.nNativeDataSetSize = sizeof(fxas21002_DataBuffer_t),
.control.Initialize = &fsl_fxas21002_i2cspi_3D_gyro_Initialize,
.control.ValidateSettings = &fsl_fxas21002_i2cspi_3D_gyro_ValidateSettings,
.control.Configure = &fsl_fxas21002_i2cspi_3D_gyro_Configure,
.control.StartData = &fsl_fxas21002_i2cspi_3D_gyro_StartData,
.control.EndData = &fsl_fxas21002_i2cspi_3D_gyro_EndData,
.control.Calibrate = &fsl_fxas21002_i2cspi_3D_gyro_Calibrate,
.control.Shutdown = &fsl_fxas21002_i2cspi_3D_gyro_Shutdown,
.control.Convert = &fsl_fxas21002_i2cspi_3D_gyro_Convert
}
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:564
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:498
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:727
fxas21002_DataBuffer_t
This structure defines the dummy DSA data buffer format.
Definition: fsl_fxas21002_i2cspi_3D_gyro.h:25
fxas21002_SupportedSensorTypes
isf_SensorTypes_t fxas21002_SupportedSensorTypes[]
Supported sensor and data types for FXAS21002.
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:54
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:306
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:436
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:267
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:581
fxas21002_SupportedDataTypes
isf_SensorDataTypes_t fxas21002_SupportedDataTypes[]
Definition: fsl_fxas21002_i2cspi_3D_gyro.c:55
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:181

This creates the sensor adapter instance for the target sensor.

This allows access to the sensor adapter instance for the target sensor.

Definition at line 77 of file FXAS21002_1.c.

const i2c_device_t FXAS21002_1_DeviceInfo

This allows access to the sensor communications specific configuration.

Definition at line 92 of file FXAS21002_1.c.

const i2c_device_t FXAS21002_1_DeviceInfo

Initial value:
=
{
.baudRate_kbps = 400,
.address = 32
}

This allows access to the sensor communications specific configuration.

Definition at line 92 of file FXAS21002_1.c.

fxas21002_Sensor_Specific_Settings_t FXAS21002_1_Sensor_Specific_Config

Initial value:
=
{
.gyroFullScaleRange = 3,
.fsdouble = 0,
.regCount = 4,
.regPairs =
{
{ FXAS21002_CTRL_REG0, (FXAS21002_SET_FIELD(BW,0)) | (FXAS21002_SET_FIELD(SPIW,0)) | (FXAS21002_SET_FIELD(HPF_EN,0)) | (FXAS21002_SET_FIELD(FS,3)) },
{ FXAS21002_CTRL_REG1, (FXAS21002_SET_FIELD(DR,0)) },
{ FXAS21002_CTRL_REG2, 0 },
{ FXAS21002_CTRL_REG3, (FXAS21002_SET_FIELD(WRAPTOONE,0)) | (FXAS21002_SET_FIELD(EXTCTRLEN,0)) | (FXAS21002_SET_FIELD(FSDOUBLE,0)) },
}
}
FXAS21002_CTRL_REG3
Definition: fxas21002.h:56
FXAS21002_SET_FIELD
#define FXAS21002_SET_FIELD(name, val)
Definition: fxas21002.h:66
FXAS21002_CTRL_REG1
Definition: fxas21002.h:54
FXAS21002_CTRL_REG0
Definition: fxas21002.h:48
FXAS21002_CTRL_REG2
Definition: fxas21002.h:55

This allows access to the sensor specific configuration for the target sensor.

Definition at line 58 of file FXAS21002_1.c.

fxas21002_Sensor_Specific_Settings_t FXAS21002_1_Sensor_Specific_Config

This allows access to the sensor specific configuration for the target sensor.

Definition at line 58 of file FXAS21002_1.c.

- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.