ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
FXAS21002_2 module documentation

Macros

#define FSL_SENSOR_SPI_CMD_LENG   0x1
 
#define FXAS21002_2_DATA_TYPE   fxas21002_DataBuffer_t
 

Functions

isf_status_t fsl_leon_spi_slave_init (void)
 
isf_status_t fsl_leon_spi_slave_write_preprocess (void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
 
isf_status_t fsl_leon_spi_slave_write_postprocess (void *pCmdOut)
 
isf_status_t fsl_leon_spi_slave_read_preprocess (void *pCmdOut, uint32 offset, uint32 size)
 
isf_status_t fsl_leon_spi_slave_read_postprocess (void *pCmdOut, void *pDataOut)
 

Variables

fxas21002_Sensor_Specific_Settings_t FXAS21002_2_Sensor_Specific_Config
 This allows access to the sensor specific configuration for the target sensor. More...
 
const isf_dsa_Adapter_t FXAS21002_2_Adapter
 This creates the sensor adapter instance for the target sensor. More...
 
spi_master_slaveInfo_t fsl_spi_sensor_type_FXAS21002_2
 
const spi_master_CommSpecificInfo_t FXAS21002_2_DeviceInfo
 This allows access to the sensor communications specific configuration. More...
 
fxas21002_Sensor_Specific_Settings_t FXAS21002_2_Sensor_Specific_Config
 This allows access to the sensor specific configuration for the target sensor. More...
 
const isf_dsa_Adapter_t FXAS21002_2_Adapter
 This allows access to the sensor adapter instance for the target sensor. More...
 
const spi_master_CommSpecificInfo_t FXAS21002_2_DeviceInfo
 This allows access to the sensor communications specific configuration. More...
 

Detailed Description

Macro Definition Documentation

#define FSL_SENSOR_SPI_CMD_LENG   0x1
#define FXAS21002_2_DATA_TYPE   fxas21002_DataBuffer_t

Definition at line 69 of file FXAS21002_2.h.

Function Documentation

isf_status_t fsl_leon_spi_slave_init ( void  )

Definition at line 141 of file FXAS21002_2.c.

References ISF_SUCCESS, and ResetSensor_OutConfig0.

isf_status_t fsl_leon_spi_slave_read_postprocess ( void *  pCmdOut,
void *  pDataOut 
)
isf_status_t fsl_leon_spi_slave_read_preprocess ( void *  pCmdOut,
uint32  offset,
uint32  size 
)
isf_status_t fsl_leon_spi_slave_write_postprocess ( void *  pCmdOut)

Definition at line 173 of file FXAS21002_2.c.

References ISF_SUCCESS, and J1_1.

isf_status_t fsl_leon_spi_slave_write_preprocess ( void *  pCmdOut,
uint32  offset,
uint32  size,
void *  pWritebuffer 
)

Variable Documentation

spi_master_slaveInfo_t fsl_spi_sensor_type_FXAS21002_2
Initial value:
= {
}
isf_status_t fsl_leon_spi_slave_write_postprocess(void *pCmdOut)
Definition: FXAS21002_2.c:173
isf_status_t(* fnwritepreProcessing_t)(void *cmdOut, uint32 offset, uint32 size, void *writebuffer)
isf_status_t fsl_leon_spi_slave_read_postprocess(void *pCmdOut, void *pDataOut)
Definition: FXAS21002_2.c:202
isf_status_t(* fnwritepostProcossing_t)(void *cmd)
isf_status_t(* fnreadpreProcessing_t)(void *cmdout, uint32 offset, uint32 size)
isf_status_t fsl_leon_spi_slave_read_preprocess(void *pCmdOut, uint32 offset, uint32 size)
Definition: FXAS21002_2.c:181
isf_status_t(* fnreadpostProcossing_t)(void *cmd, void *dataOut)
isf_status_t fsl_leon_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
Definition: FXAS21002_2.c:149
isf_status_t fsl_leon_spi_slave_init(void)
Definition: FXAS21002_2.c:141
isf_status_t(* fnslaveinit_t)(void)

Definition at line 103 of file FXAS21002_2.c.

const isf_dsa_Adapter_t FXAS21002_2_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 86 of file FXAS21002_2.c.

const isf_dsa_Adapter_t FXAS21002_2_Adapter
Initial value:
=
{
.devInfo.pSupportedSensorTypes = fxas21002_SupportedSensorTypes,
.devInfo.pSupportedSensorDataTypes = fxas21002_SupportedDataTypes,
.devInfo.nNativeDataSetSize = sizeof(fxas21002_DataBuffer_t),
.control.ValidateSettings = &fsl_fxas21002_i2cspi_3D_gyro_ValidateSettings,
}
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 ...
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.
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_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 .
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.

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 86 of file FXAS21002_2.c.

const spi_master_CommSpecificInfo_t FXAS21002_2_DeviceInfo

This allows access to the sensor communications specific configuration.

Definition at line 112 of file FXAS21002_2.c.

const spi_master_CommSpecificInfo_t FXAS21002_2_DeviceInfo
Initial value:
=
{
.busConfig =
{
.timeout = 1000U,
.device =
{
.bitsPerSec = 500000U,
.dataBusConfig.bitsPerFrame = 8U,
.dataBusConfig.clkPolarity = kDspiClockPolarity_ActiveHigh,
.dataBusConfig.clkPhase = kDspiClockPhase_FirstEdge,
.dataBusConfig.direction = kDspiMsbFirst,
},
.userConfig =
{
.whichCtar = kDspiCtar0,
.isSckContinuous = false,
.isChipSelectContinuous = false,
.whichPcs = kDspiPcs0,
.pcsPolarity = kDspiPcs_ActiveHigh,
},
},
}
spi_master_slaveInfo_t fsl_spi_sensor_type_FXAS21002_2
Definition: FXAS21002_2.c:103

This allows access to the sensor communications specific configuration.

Definition at line 112 of file FXAS21002_2.c.

fxas21002_Sensor_Specific_Settings_t FXAS21002_2_Sensor_Specific_Config
Initial value:
=
{
.gyroFullScaleRange = 3,
.fsdouble = 0,
.regCount = 4,
.regPairs =
{
{ FXAS21002_CTRL_REG3, (FXAS21002_SET_FIELD(WRAPTOONE,0)) | (FXAS21002_SET_FIELD(EXTCTRLEN,0)) | (FXAS21002_SET_FIELD(FSDOUBLE,0)) },
}
}
#define FXAS21002_SET_FIELD(name, val)
Definition: fxas21002.h:66

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

Definition at line 67 of file FXAS21002_2.c.

fxas21002_Sensor_Specific_Settings_t FXAS21002_2_Sensor_Specific_Config

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

Definition at line 67 of file FXAS21002_2.c.