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

Macros

#define FSL_SENSOR_SPI_CMD_LENG   0x2
 
#define FXOS8700_2_DATA_TYPE   fxos8700_DataBuffer_t
 

Functions

isf_status_t fsl_gauss_spi_slave_init (void)
 
isf_status_t fsl_gauss_spi_slave_write_preprocess (void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
 
isf_status_t fsl_gauss_spi_slave_write_postprocess (void *pCmdOut)
 
isf_status_t fsl_gauss_spi_slave_read_preprocess (void *pCmdOut, uint32 offset, uint32 size)
 
isf_status_t fsl_gauss_spi_slave_read_postprocess (void *pCmdOut, void *pDataOut)
 

Variables

fxos8700_Sensor_Specific_Settings_t FXOS8700_2_Sensor_Specific_Config
 This allows access to the sensor specific configuration for the target sensor. More...
 
const isf_dsa_Adapter_t FXOS8700_2_Adapter
 This creates the sensor adapter instance for the target sensor. More...
 
spi_master_slaveInfo_t fsl_spi_sensor_type_FXOS8700_2
 
const spi_master_CommSpecificInfo_t FXOS8700_2_DeviceInfo
 This allows access to the sensor communications specific configuration. More...
 
fxos8700_Sensor_Specific_Settings_t FXOS8700_2_Sensor_Specific_Config
 This allows access to the sensor specific configuration for the target sensor. More...
 
const isf_dsa_Adapter_t FXOS8700_2_Adapter
 This allows access to the sensor adapter instance for the target sensor. More...
 
const spi_master_CommSpecificInfo_t FXOS8700_2_DeviceInfo
 This allows access to the sensor communications specific configuration. More...
 

Detailed Description

Macro Definition Documentation

#define FSL_SENSOR_SPI_CMD_LENG   0x2
#define FXOS8700_2_DATA_TYPE   fxos8700_DataBuffer_t

Definition at line 105 of file FXOS8700_2.h.

Function Documentation

isf_status_t fsl_gauss_spi_slave_init ( void  )

Definition at line 206 of file FXOS8700_2.c.

References ISF_SUCCESS, and ResetSensor_OutConfig0.

isf_status_t fsl_gauss_spi_slave_read_postprocess ( void *  pCmdOut,
void *  pDataOut 
)
isf_status_t fsl_gauss_spi_slave_read_preprocess ( void *  pCmdOut,
uint32  offset,
uint32  size 
)
isf_status_t fsl_gauss_spi_slave_write_postprocess ( void *  pCmdOut)

Definition at line 239 of file FXOS8700_2.c.

References ISF_SUCCESS, and J1_1.

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

Variable Documentation

spi_master_slaveInfo_t fsl_spi_sensor_type_FXOS8700_2
Initial value:
= {
}
isf_status_t fsl_gauss_spi_slave_read_preprocess(void *pCmdOut, uint32 offset, uint32 size)
Definition: FXOS8700_2.c:247
isf_status_t fsl_gauss_spi_slave_write_preprocess(void *pCmdOut, uint32 offset, uint32 size, void *pWritebuffer)
Definition: FXOS8700_2.c:214
isf_status_t(* fnwritepreProcessing_t)(void *cmdOut, uint32 offset, uint32 size, void *writebuffer)
isf_status_t(* fnwritepostProcossing_t)(void *cmd)
isf_status_t fsl_gauss_spi_slave_read_postprocess(void *pCmdOut, void *pDataOut)
Definition: FXOS8700_2.c:269
isf_status_t fsl_gauss_spi_slave_write_postprocess(void *pCmdOut)
Definition: FXOS8700_2.c:239
isf_status_t(* fnreadpreProcessing_t)(void *cmdout, uint32 offset, uint32 size)
isf_status_t(* fnreadpostProcossing_t)(void *cmd, void *dataOut)
isf_status_t fsl_gauss_spi_slave_init(void)
Definition: FXOS8700_2.c:206
isf_status_t(* fnslaveinit_t)(void)

Definition at line 168 of file FXOS8700_2.c.

const isf_dsa_Adapter_t FXOS8700_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 151 of file FXOS8700_2.c.

const isf_dsa_Adapter_t FXOS8700_2_Adapter
Initial value:
=
{
.devInfo.pSupportedSensorTypes = fxos8700_SupportedSensorTypes,
.devInfo.pSupportedSensorDataTypes = fxos8700_SupportedDataTypes,
.devInfo.nNativeDataSetSize = sizeof(fxos8700_DataBuffer_t),
.control.ValidateSettings = &fsl_fxos8700_i2cspi_6D_AccMag_ValidateSettings,
}
This structure defines the dummy DSA data buffer format.
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_Initialize(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXOS8700 sensor adapter initialization.
isf_SensorTypes_t fxos8700_SupportedSensorTypes[]
Supported sensor and data types for FXOS8700.
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
This is the concrete implementation of the FXOS8700 sensor adapter for configuration.
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_StartData(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXOS8700 sensor adapter for start Data.
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
This is the concrete implementation of the FXOS8700 sensor adapter for calibration ...
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_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.
isf_SensorDataTypes_t fxos8700_SupportedDataTypes[]
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_Shutdown(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXOS8700 sensor adapter for shutdown . ...
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_EndData(isf_SensorHandle_t *pSensorHandle)
This is the concrete implementation of the FXOS8700 sensor adapter for End Data.
isf_dsa_status_t fsl_fxos8700_i2cspi_6D_AccMag_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
This is the concrete implementation of the FXOS8700 sensor adapter for validating current settings...

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 151 of file FXOS8700_2.c.

const spi_master_CommSpecificInfo_t FXOS8700_2_DeviceInfo

This allows access to the sensor communications specific configuration.

This allows access to the sensor communications specific configuration.

Definition at line 177 of file FXOS8700_2.c.

const spi_master_CommSpecificInfo_t FXOS8700_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_FXOS8700_2
Definition: FXOS8700_2.c:168

This allows access to the sensor communications specific configuration.

This allows access to the sensor communications specific configuration.

Definition at line 177 of file FXOS8700_2.c.

fxos8700_Sensor_Specific_Settings_t FXOS8700_2_Sensor_Specific_Config

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

Definition at line 99 of file FXOS8700_2.c.

fxos8700_Sensor_Specific_Settings_t FXOS8700_2_Sensor_Specific_Config

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

Definition at line 99 of file FXOS8700_2.c.