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

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
fsl_Sensor_Custom_1_Functions.h File Reference

This is user's event module. Put your event handler code here. More...

`#include "fsl_device_registers.h"`
`#include "clockMan1.h"`
`#include "pin_init.h"`
`#include "osa1.h"`
`#include "mqx_ksdk.h"`
`#include "uart1.h"`
`#include "fsl_mpu1.h"`
`#include "fsl_hwtimer1.h"`
`#include "MainTask.h"`
`#include "I2C1.h"`
`#include "ISF_I2C1.h"`
`#include "UART2.h"`
`#include "ISF_UART1.h"`
`#include "SPI1.h"`
`#include "ISF_SPI1.h"`
`#include "ISFCore1.h"`
`#include "ISFBusManager1.h"`
`#include "BMTIMER1.h"`
`#include "EventHandler_Task1.h"`
`#include "CommChannelConfig1.h"`
`#include "Protocol1.h"`
`#include "App1.h"`
`#include "BasicApp1.h"`
`#include "RLI1.h"`
`#include "RLIChipSelect.h"`
`#include "Custom_1.h"`
`#include "FXAS21002_1.h"`
`#include "FXAS21002_2.h"`
`#include "ChipSelect.h"`
`#include "FXLC95000_1.h"`
`#include "FXLC95000_2.h"`
`#include "SPIChipSelect.h"`
`#include "SPISelect.h"`
`#include "ResetSensor.h"`
`#include "FXLS8471_1.h"`
`#include "FXLS8952_1.h"`
`#include "FXLS8471_2.h"`
`#include "FXOS8700_1.h"`
`#include "FXOS8700_2.h"`
`#include "Analog_1.h"`
`#include "ADC1.h"`
`#include "MAG3110_1.h"`
`#include "MMA8491Q_1.h"`
`#include "SensorEnable.h"`
`#include "OutX.h"`
`#include "OutY.h"`
`#include "OutZ.h"`
`#include "MMA865x_1.h"`
`#include "MMA955x_1.h"`
`#include "MMA955x_2.h"`
`#include "MPL3115_1.h"`
`#include "ORIENT_1.h"`
`#include "SensorReset.h"`
`#include "isf_devmsg.h"`
`#include "isf_sensors.h"`
`#include "isf_dsa_adapter.h"`
`#include "isf_sensor_types.h"`
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | Custom_1_DataBuffer_t
| This structure defines the dummy DSA data buffer format. More...
struct | Custom_1_SensorData_EngFixed_t
struct | Custom_1_SensorData_Float_t
| Standard fixed type for three axis accelerometers. More...
struct | Custom_1_Sensor_Specific_Reg_t
struct | Custom_1_Sensor_Specific_Settings_t
struct | Custom_1_Rate_Specific_Settings_t
| This structure defines important settings. More...

## Macros
#define | __fsl_Sensor_Custom_1_Functions_H_
#define | Custom_1_DATA_TYPE Custom_1_DataBuffer_t
#define | __fsl_Sensor_Custom_1_Functions_H__
#define | Custom_1_SET_FIELD(name, val) (((val)<<Custom_1_##name##_SHIFT)&(Custom_1_##name##_MASK))
#define | Custom_1_GET_FIELD(name, val) ((val&Custom_1_##name##_MASK)>>Custom_1_##name##_SHIFT)
#define | Custom_1_FREAD_MASK 0x02
#define | Custom_1_FREAD_SHIFT 1
#define | Custom_1_ASLP_RATE_MASK 0xC0
#define | Custom_1_ASLP_RATE_SHIFT 6
#define | Custom_1_DR_MASK 0x38
#define | Custom_1_DR_SHIFT 3
#define | Custom_1_ST_MASK 0x80
#define | Custom_1_ST_SHIFT 7
#define | Custom_1_RST_MASK 0x40
#define | Custom_1_RST_SHIFT 6
#define | Custom_1_SLPE_MASK 0x04
#define | Custom_1_SLPE_SHIFT 2
#define | Custom_1_SMODS_MASK 0x18
#define | Custom_1_SMODS_SHIFT 3
#define | Custom_1_MODS_MASK 0x03
#define | Custom_1_MODS_SHIFT 0
#define | Custom_1_ZYXDR_MASK 0x08
#define | Custom_1_ZYXDR_SHIFT 3
#define | Custom_1_ACTIVE_MASK 0x01

## Typedefs
typedef int32 | Custom_1_Status_t
| SENSOR internal return codes. More...
typedef uint32_t | isf_Custom_1_fixed_data_t
typedef float | isf_Custom_1_float_data_t

## Enumerations
enum | { Custom_1_STATUS_00 = 0x00, Custom_1_WHO_AM_I = 0x0D, Custom_1_CTRL_REG1 = 0x2A, Custom_1_CTRL_REG2 = 0x2B }
enum | { Custom_1_SUCCESS, Custom_1_DATA_OVERWRITE, Custom_1_ERROR }

## Functions
void | Custom_1__Void_ ()
isf_dsa_status_t | Custom_1_float_Custom_converter (Custom_1_Sensor_Specific_Settings_t *pSensorSpecificConfig, Custom_1_DataBuffer_t *nativeSample, void *vpConvertedSample)
isf_dsa_status_t | Custom_1_fixed_Custom_converter (Custom_1_Sensor_Specific_Settings_t *pSensorSpecificConfig, Custom_1_DataBuffer_t *nativeSample, void *vpConvertedSample)
isf_dsa_status_t | fsl_Sensor_Custom_1_Convert (volatile isf_SensorHandle_t *pSensorHandle, isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType, void *pNativeSample, void *pConvertedSample, int32_t *numBytes)
isf_dsa_status_t | fsl_Sensor_Custom_1_Initialize (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_Sensor_Custom_1_ValidateSettings (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_dsa_status_t | fsl_Sensor_Custom_1_Configure (isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_dsa_status_t | fsl_Sensor_Custom_1_StartData (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_Sensor_Custom_1_EndData (isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t | fsl_Sensor_Custom_1_Shutdown (isf_SensorHandle_t *pSensorHandle)
void | Custom_1_fsl_Sensor_Custom_Convert (volatile void *pSensorHandle, uint32_t convertToType, uint8_t resultType, void *pNativeSample, void *pConvertedSample, int32_t *numBytes, uint8_t *retVal)
void | Custom_1_fsl_Sensor_Custom_PeriodicCallback (void *pSensorHandle)
void | Custom_1_fsl_Sensor_Custom_Shutdown (void *pSensorHandle, uint8_t *retVal)
void | Custom_1_fsl_Sensor_Custom_EndData (void *pSensorHandle, uint8_t *retVal)
void | Custom_1_fsl_Sensor_Custom_StartData (void *pSensorHandle, uint8_t *retVal)
void | Custom_1_fsl_Sensor_Custom_Configure (void *pSensorHandle, void *pSensorSettings, uint8_t *retVal)
void | Custom_1_fsl_Sensor_Custom_ValidateSettings (void *pSensorHandle, void *pSensorSettings, uint8_t *retVal)
void | Custom_1_fsl_Sensor_Custom_Initialize (void *pSensorHandle, uint8_t *retVal)

## Variables
const uint8_t | Custom_1_Who_Am_I_Values []
| Define the WHO_AM_I register values for both possible sensor variations. More...

## Detailed Description

This is user's event module. Put your event handler code here.

Version
  01.00

Definition in file fsl_Sensor_Custom_1_Functions.h.

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