ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
fsl_fxas21002_i2cspi_3D_gyro.h File Reference

The fsl_fxas21002_i2cspi_3D_gyro.h file contains the definitions and functions supporting the FXAS21002 Sensor Adapter. More...

#include "isf.h"
#include "isf_sm_types.h"
#include "isf_dsa_adapter.h"
Include dependency graph for fsl_fxas21002_i2cspi_3D_gyro.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fxas21002_DataBuffer_t
 This structure defines the dummy DSA data buffer format. More...
 
struct  fxas21002_ODR_Table_tag
 the structure defines the ODR table between Hybrid and normal mode of FXAS21002 operation. More...
 
struct  fxas21000_ODR_Table_tag
 the structure defines the ODR table between Hybrid and normal mode of FXAS21000 operation. More...
 
struct  fxas21002_ConfigTable_tag
 the structure defines the configuration table. More...
 

Macros

#define FXAS21002_WHO_AM_I_VALUE_PRE_RELEASE   0xD6
 Define the WHO_AM_I register values for both possible sensor variations. More...
 
#define FXAS21002_WHO_AM_I_VALUE_RELEASE   0xD7
 
#define FXAS21000_WHO_AM_I_VALUE   0xD1
 

Typedefs

typedef int32 fxas21002_Status_t
 FXAS21002 internal return codes. More...
 
typedef enum fxas21002_Power_tag fxas21002_Power_t
 Enumeration for the FXAS21002 power modes. More...
 
typedef enum fxas21002_InternalState_tag fxas21002_InternalState_t
 Enumeration for the FXAS21002 driver internal states. More...
 
typedef enum fxas21002_Range_tag fxas21002_Range_t
 
typedef struct fxas21002_ODR_Table_tag fxas21002_ODR_Table_t
 the structure defines the ODR table between Hybrid and normal mode of FXAS21002 operation. More...
 
typedef struct fxas21000_ODR_Table_tag fxas21000_ODR_Table_t
 the structure defines the ODR table between Hybrid and normal mode of FXAS21000 operation. More...
 
typedef struct fxas21002_ConfigTable_tag fxas21002_ConfigTable_t
 the structure defines the configuration table. More...
 

Enumerations

enum  fxas21002_Error_tag {
  FXAS21002_ERROR_WHOAMI = 1, FXAS21002_ERROR_WAITFORACTIVE, FXAS21002_ERROR_BURSTWRITE, FXAS21002_ERROR_CONFIG,
  FXAS21002_ERROR_SETPOWER, FXAS21002_ERROR_WRITE, FXAS21002_ERROR_READ
}
 Enumeration for the FXAS21002 internal error codes. More...
 
enum  fxas21002_Power_tag { FXAS21002_POWER_STANDBY = 0, FXAS21002_POWER_ACTIVE = 1 }
 Enumeration for the FXAS21002 power modes. More...
 
enum  fxas21002_InternalState_tag { FXAS21002_STATE_UNINTIALIZED, FXAS21002_STATE_INITIALIZED, FXAS21002_STATE_CONFIGURED, FXAS21002_STATE_STARTED }
 Enumeration for the FXAS21002 driver internal states. More...
 
enum  fxas21002_Range_tag { FXAS21002_RANGE_2000DPS = 0, FXAS21002_RANGE_1000DPS = 1, FXAS21002_RANGE_500DPS = 2, FXAS21002_RANGE_MAX = FXAS21002_RANGE_2000DPS }
 

Functions

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. More...
 
isf_dsa_status_t fsl_fxas21002_i2cspi_3D_gyro_ValidateSettings (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSubSettings)
 This is the concrete implementation of the FXAS21002 sensor adapter for validating current settings. More...
 
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. More...
 
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. More...
 
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. More...
 
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 . More...
 
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 . More...
 
void fsl_fxas21002_i2cspi_3D_gyro_PeriodicCallback (void *pSensorHandle)
 The callback function for the Bus Manager(BM). More...
 
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. More...
 

Variables

isf_SensorTypes_t fxas21002_SupportedSensorTypes []
 Supported sensor and data types for MMA8652. More...
 
isf_SensorDataTypes_t fxas21002_SupportedDataTypes []
 

Detailed Description

The fsl_fxas21002_i2cspi_3D_gyro.h file contains the definitions and functions supporting the FXAS21002 Sensor Adapter.

Version
01.00

Definition in file fsl_fxas21002_i2cspi_3D_gyro.h.