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

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Macros | Typedefs | Functions | Variables
fsl_mma865x_i2c_3D_accel.c File Reference
`#include <isf.h>`
`#include <isf_types.h>`
`#include <isf_sm_api.h>`
`#include <isf_dsa_adapter.h>`
`#include <isf_bm.h>`
`#include <isf_sensor_types.h>`
`#include <isf_fifo.h>`
`#include <isf_accelerometer_types.h>`
`#include <isf_comm.h>`
`#include <isf_util.h>`
`#include <isf_sensors.h>`
`#include "fsl_os_abstraction.h"`
`#include "mma865x.h"`
`#include "fsl_mma865x_i2c_3D_accel.h"`
Include dependency graph for fsl_mma865x_i2c_3D_accel.c:

Go to the source code of this file.

## Macros
#define | BYTES_FOR_FULL_READ 7
| This function retrieves the raw data from the MMA865x sensor. More...

## Typedefs
typedef int32 | mma865x_status_t

## Functions
void | mma865x_Reset (int32_t *status, void *pSensorHandle)
| This function resets the MMA865x sensor resulting in a default configuration for all registers. More...
void | mma865x_CheckId (int32_t *status, void *pSensorHandle)
| This function validates the MMA865x sensor is connected via the I2C bus. More...
void | mma865x_SetMode (int32_t *status, void *pSensorHandle, int32_t Mode)
| This function sets the MMA865x part to the requested mode. More...
void | mma865x_ValidateConfig (int32_t *status, void *pSensorHandle, void *pSettings)
| This function validates the configuration for the MMA865x sensor. More...
isf_dsa_status_t | mma865x_GetConfig (isf_dsa_SensorSettings_t *pRequiredSettings, DeviceDescriptor_t *pDeviceDes)
| This function obtains the configuration register values for a given user configuration of the MMA865x. If the configuration has changed then it returns true and saves the new configuration. More...
isf_dsa_status_t | mma865x_SetConfig (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pConfigSettings)
| This function sets the MMA865x sensor configuration. More...
isf_dsa_status_t | mma865x_GetData (isf_SensorHandle_t *pSensorHandle, void *pBuffer)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_Initialize (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_ValidateSettings (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_Configure (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_StartData (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_EndData (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_Calibrate (isf_SensorHandle_t *pSensorHandle, void *pCalData)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_Shutdown (isf_SensorHandle_t *pSensorHandle)
void | fsl_mma865x_i2c_3D_accel_PeriodicCallback (void *pSensorHandle)
isf_dsa_status_t | fsl_mma865x_i2c_3D_accel_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
struct {
float floatFactor
float floatOffset
int32 fixedFactor
int32 fixedOffset
} | mma865xAccelConvTable []
isf_SensorTypes_t | mma865x_SupportedSensorTypes [] = { TYPE_ACCELEROMETER_3D, TYPE_NATIVE_SENSOR_TYPE }
| Supported sensor and data types for MMA865x. More...
isf_SensorDataTypes_t | mma865x_SupportedDataTypes [] = { TYPE_RAW_ACCELERATION_3D, TYPE_NATIVE_SENSOR_DATA_TYPE }

## Detailed Description

Version
  01.00

Definition in file fsl_mma865x_i2c_3D_accel.c.

## Variable Documentation

int32 fixedFactor

Definition at line 59 of file fsl_mma865x_i2c_3D_accel.c.

int32 fixedOffset

Definition at line 60 of file fsl_mma865x_i2c_3D_accel.c.

float floatFactor

Definition at line 57 of file fsl_mma865x_i2c_3D_accel.c.

float floatOffset

Definition at line 58 of file fsl_mma865x_i2c_3D_accel.c.

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