| 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 | Enumerations
fxls8952.h File Reference

The fxls8952.h contains the FXLS8952 Accelerometer register definitions, access macros, and device access functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | fxls8952_Sensor_Specific_Reg_t
struct | fxls8952_Sensor_Specific_Settings_t

## Macros
#define | FXLS8952_WHOAMI_VALUE (0x72)
#define | FXLS8952_SET_FIELD(name, val) (((val)<<FXLS8952_##name##_SHIFT)&(FXLS8952_##name##_MASK))
#define | FXLS8952_GET_FIELD(name, val) ((val&FXLS8952_##name##_MASK)>>FXLS8952_##name##_SHIFT)
#define | FXLS8952_SRC_DRDY_MASK (0x80)
#define | FXLS8952_SRC_DRDY_SHIFT 7
#define | FXLS8952_SRC_OVF_MASK (0x40)
#define | FXLS8952_SRC_OVF_SHIFT 6
#define | FXLS8952_SRC_BUF_MASK (0x20)
#define | FXLS8952_SRC_BUF_SHIFT 5
#define | FXLS8952_SRC_SDCD_OR_MASK (0x10)
#define | FXLS8952_SRC_SDCD_OR_SHIFT 4
#define | FXLS8952_SRC_SDCD_AND_MASK (0x08)
#define | FXLS8952_SRC_SDCD_AND_SHIFT 3
#define | FXLS8952_SRC_ORIENT_MASK (0x04)
#define | FXLS8952_SRC_ORIENT_SHIFT 2
#define | FXLS8952_SRC_ASLP_MASK (0x02)
#define | FXLS8952_SRC_ASLP_SHIFT 1
#define | FXLS8952_SRC_BOOT_MASK (0x01)
#define | FXLS8952_SRC_BOOT_SHIFT 0
#define | FXLS8952_BUF_WMRK_MASK (0x80)
#define | FXLS8952_BUF_WMRK_SHIFT 7
#define | FXLS8952_BUF_OVF_MASK (0x40)
#define | FXLS8952_BUF_OVF_SHIFT 6
#define | FXLS8952_BUF_CNT_MASK (0x3F)
#define | FXLS8952_BUF_CNT_SHIFT 0
#define | FXLS8952_BUF_GATE_ERR_MASK (0x80)
#define | FXLS8952_BUF_GATE_ERR_SHIFT 7
#define | FXLS8952_BUF_GATE_CNT_MASK (0x7C)
#define | FXLS8952_BUF_GATE_CNT_SHIFT 2
#define | FXLS8952_SYS_MODE_MASK (0x03)
#define | FXLS8952_SYS_MODE_SHIFT 0
#define | FXLS8952_RST_MASK (0x80)
#define | FXLS8952_RST_SHIFT 7
#define | FXLS8952_ST_AXIS_SEL_MASK (0x60)
#define | FXLS8952_ST_AXIS_SEL_SHIFT 5
#define | FXLS8952_ST_POL_MASK (0x10)
#define | FXLS8952_ST_POL_SHIFT 4
#define | FXLS8952_FSR_MASK (0x06)
#define | FXLS8952_FSR_SHIFT 1
#define | FXLS8952_ACTIVE_MASK (0x01)
#define | FXLS8952_ACTIVE_SHIFT 0
#define | FXLS8952_WAKE_PM_MASK (0xC0)
#define | FXLS8952_WAKE_PM_SHIFT 6
#define | FXLS8952_SLEEP_PM_MASK (0x30)
#define | FXLS8952_SLEEP_PM_SHIFT 4
#define | FXLS8952_LE_BE_MASK (0x08)
#define | FXLS8952_LE_BE_SHIFT 3
#define | FXLS8952_AINC_TEMP_MASK (0x02)
#define | FXLS8952_AINC_TEMP_SHIFT 1
#define | FXLS8952_F_READ_MASK (0x01)
#define | FXLS8952_F_READ_SHIFT 0
#define | FXLS8952_WAKE_ODR_MASK (0xF0)
#define | FXLS8952_WAKE_ODR_SHIFT 4
#define | FXLS8952_SLEEP_ODR_MASK (0x0F)
#define | FXLS8952_SLEEP_ODR_SHIFT 0
#define | FXLS8952_EXT_TRIG_M_MASK (0x80)
#define | FXLS8952_EXT_TRIG_M_SHIFT 7
#define | FXLS8952_WAKE_SDCD_WT_MASK (0x40)
#define | FXLS8952_WAKE_SDCD_WT_SHIFT 6
#define | FXLS8952_WAKE_SDCD_OT_MASK (0x20)
#define | FXLS8952_WAKE_SDCD_OT_SHIFT 5
#define | FXLS8952_WAKE_ORIENT_MASK (0x10)
#define | FXLS8952_WAKE_ORIENT_SHIFT 4
#define | FXLS8952_DRDY_PUL_MASK (0x08)
#define | FXLS8952_DRDY_PUL_SHIFT 3
#define | FXLS8952_INT2_FUNC_MASK (0x04)
#define | FXLS8952_INT2_FUNC_SHIFT 2
#define | FXLS8952_INT_PP_OD_MASK (0x02)
#define | FXLS8952_INT_PP_OD_SHIFT 1
#define | FXLS8952_INT_POL_MASK (0x01)
#define | FXLS8952_INT_POL_SHIFT 0
#define | FXLS8952_DRDY_EN_MASK (0x80)
#define | FXLS8952_DRDY_EN_SHIFT 7
#define | FXLS8952_BUF_EN_MASK (0x40)
#define | FXLS8952_BUF_EN_SHIFT 6
#define | FXLS8952_SDCD_OT_EN_MASK (0x20)
#define | FXLS8952_SDCD_OT_EN_SHIFT 5
#define | FXLS8952_SDCD_WT_EN_MASK (0x10)
#define | FXLS8952_SDCD_WT_EN_SHIFT 4
#define | FXLS8952_ORIENT_EN_MASK (0x08)
#define | FXLS8952_ORIENT_EN_SHIFT 3
#define | FXLS8952_ASLP_EN_MASK (0x04)
#define | FXLS8952_ASLP_EN_SHIFT 2
#define | FXLS8952_BOOT_DIS_MASK (0x02)
#define | FXLS8952_BOOT_DIS_SHIFT 1
#define | FXLS8952_WAKE_OUT_EN_MASK (0x01)
#define | FXLS8952_WAKE_OUT_EN_SHIFT 0
#define | FXLS8952_DRDY_INT2_MASK (0x80)
#define | FXLS8952_DRDY_INT2_SHIFT 7
#define | FXLS8952_BUF_INT2_MASK (0x40)
#define | FXLS8952_BUF_INT2_SHIFT 6
#define | FXLS8952_SDCD_OT_INT2_MASK (0x20)
#define | FXLS8952_SDCD_OT_INT2_SHIFT 5
#define | FXLS8952_SDCD_WT_INT2_MASK (0x10)
#define | FXLS8952_SDCD_WT_INT2_SHIFT 4
#define | FXLS8952_ORIENT_INT2_MASK (0x08)
#define | FXLS8952_ORIENT_INT2_SHIFT 3
#define | FXLS8952_ASLP_INT2_MASK (0x04)
#define | FXLS8952_ASLP_INT2_SHIFT 2
#define | FXLS8952_BOOT_INT2_MASK (0x02)
#define | FXLS8952_BOOT_INT2_SHIFT 1
#define | FXLS8952_WAKE_OUT_INT2_MASK (0x01)
#define | FXLS8952_WAKE_OUT_INT2_SHIFT 0
#define | FXLS8952_BUF_TYPE_MASK (0x80)
#define | FXLS8952_BUF_TYPE_SHIFT 7
#define | FXLS8952_BUF_MODE_MASK (0x60)
#define | FXLS8952_BUF_MODE_SHIFT 5
#define | FXLS8952_BUF_GATE_MASK (0x10)
#define | FXLS8952_BUF_GATE_SHIFT 4
#define | FXLS8952_TRIG_SDCD_WT_MASK (0x08)
#define | FXLS8952_TRIG_SDCD_WT_SHIFT 3
#define | FXLS8952_TRIG_SDCD_OT_MASK (0x04)
#define | FXLS8952_TRIG_SDCD_OT_SHIFT 2
#define | FXLS8952_TRIG_ORIENT_MASK (0x01)
#define | FXLS8952_TRIG_ORIENT_SHIFT 0
#define | FXLS8952_BUF_FLUSH_MASK (0x80)
#define | FXLS8952_BUF_FLUSH_SHIFT 7
#define | FXLS8952_WAKE_SRC_BUF_MASK (0x40)
#define | FXLS8952_WAKE_SRC_BUF_SHIFT 5
#define | FXLS8952_BUF_CFG_WMRK_MASK (0x3F)
#define | FXLS8952_BUF_CFG_WMRK_SHIFT 0
#define | FXLS8952_NEW_ORIENT_MASK (0x80)
#define | FXLS8952_NEW_ORIENT_SHIFT 7
#define | FXLS8952_LO_MASK (0x40)
#define | FXLS8952_LO_SHIFT 6
#define | FXLS8952_LAPO_MASK (0x06)
#define | FXLS8952_LAPO_SHIFT 1
#define | FXLS8952_BAFRO_MASK (0x01)
#define | FXLS8952_BAFRO_SHIFT 0
#define | FXLS8952_ORIENT_DBCNTM_MASK (0x80)
#define | FXLS8952_ORIENT_DBCNTM_SHIFT 7
#define | FXLS8952_ORIENT_ENABLE_MASK (0x40)
#define | FXLS8952_ORIENT_ENABLE_SHIFT 6
#define | FXLS8952_ORIENT_DBCOUNT_MASK (0xFF)
#define | FXLS8952_ORIENT_DBCOUNT_SHIFT 0
#define | FXLS8952_ORIENT_BKFR_MASK (0xC0)
#define | FXLS8952_ORIENT_BKFR_SHIFT 6
#define | FXLS8952_ORIENT_ZLOCK_MASK (0x07)
#define | FXLS8952_ORIENT_ZLOCK_SHIFT 0
#define | FXLS8952_ORIENT_THS_MASK (0xF8)
#define | FXLS8952_ORIENT_THS_SHIFT 3
#define | FXLS8952_HYS_MASK (0x07)
#define | FXLS8952_HYS_SHIFT 0
#define | FXLS8952_OT_ELE_MASK (0x80)
#define | FXLS8952_OT_ELE_SHIFT 7
#define | FXLS8952_WT_ELE_MASK (0x40)
#define | FXLS8952_WT_ELE_SHIFT 6
#define | FXLS8952_X_OT_EN_MASK (0x20)
#define | FXLS8952_X_OT_EN_SHIFT 5
#define | FXLS8952_Y_OT_EN_MASK (0x10)
#define | FXLS8952_Y_OT_EN_SHIFT 4
#define | FXLS8952_Z_OT_EN_MASK (0x08)
#define | FXLS8952_Z_OT_EN_SHIFT 3
#define | FXLS8952_X_WT_EN_MASK (0x04)
#define | FXLS8952_X_WT_EN_SHIFT 2
#define | FXLS8952_Y_WT_EN_MASK (0x02)
#define | FXLS8952_Y_WT_EN_SHIFT 1
#define | FXLS8952_Z_WT_EN_MASK (0x01)
#define | FXLS8952_Z_WT_EN_SHIFT 0
#define | FXLS8952_SDCD_EN_MASK (0x80)
#define | FXLS8952_SDCD_EN_SHIFT 7
#define | FXLS8952_REF_UPDM_MASK (0x60)
#define | FXLS8952_REF_UPDM_SHIFT 5
#define | FXLS8952_OT_DBCTM_MASK (0x10)
#define | FXLS8952_OT_DBCTM_SHIFT 4
#define | FXLS8952_WT_DBCTM_MASK (0x08)
#define | FXLS8952_WT_DBCTM_SHIFT 3
#define | FXLS8952_WT_LOG_SEL_MASK (0x04)
#define | FXLS8952_WT_LOG_SEL_SHIFT 2
#define | FXLS8952_REF_UPD_MASK (0x01)
#define | FXLS8952_REF_UPD_SHIFT 0
#define | FXLS8952_SDCD_X_WT_EF_MASK (0x80)
#define | FXLS8952_SDCD_X_WT_EF_SHIFT 7
#define | FXLS8952_SDCD_Y_WT_EF_MASK (0x40)
#define | FXLS8952_SDCD_Y_WT_EF_SHIFT 6
#define | FXLS8952_SDCD_Z_WT_EF_MASK (0x20)
#define | FXLS8952_SDCD_Z_WT_EF_SHIFT 5

## Enumerations
enum | { FXLS8952_INT_STATUS = 0x00, FXLS8952_TEMP_OUT = 0x01, FXLS8952_OUT_X_LSB = 0x02, FXLS8952_OUT_X_MSB = 0x03, FXLS8952_OUT_Y_LSB = 0x04, FXLS8952_OUT_Y_MSB = 0x05, FXLS8952_OUT_Z_LSB = 0x06, FXLS8952_OUT_Z_MSB = 0x07, FXLS8952_BUF_STATUS = 0x08, FXLS8952_BUF_X_LSB = 0x09, FXLS8952_BUF_X_MSB = 0x0A, FXLS8952_BUF_Y_LSB = 0x0B, FXLS8952_BUF_Y_MSB = 0x0C, FXLS8952_BUF_Z_LSB = 0x0D, FXLS8952_BUF_Z_MSB = 0x0E, FXLS8952_WHO_AM_I = 0x0F, FXLS8952_SYS_MODE = 0x10, FXLS8952_SENS_CONFIG1 = 0x11, FXLS8952_SENS_CONFIG2 = 0x12, FXLS8952_SENS_CONFIG3 = 0x13, FXLS8952_WAKE_IDLE_LSB = 0x14, FXLS8952_WAKE_IDLE_MSB = 0x15, FXLS8952_SLEEP_IDLE_LSB = 0x16, FXLS8952_SLEEP_IDLE_MSB = 0x17, FXLS8952_SENS_CONFIG4 = 0x18, FXLS8952_ASLP_COUNT_LSB = 0x19, FXLS8952_ASLP_COUNT_MSB = 0x1A, FXLS8952_INT_EN = 0x1B, FXLS8952_INT_PIN_SEL = 0x1C, FXLS8952_OFF_X = 0x1D, FXLS8952_OFF_Y = 0x1E, FXLS8952_OFF_Z = 0x1F, FXLS8952_BUF_CONFIG1 = 0x20, FXLS8952_BUF_CONFIG2 = 0x21, FXLS8952_ORIENT_STATUS = 0x22, FXLS8952_ORIENT_CFG = 0x23, FXLS8952_ORIENT_DBCOUNT = 0x24, FXLS8952_ORIENT_BF_ZCOMP = 0x25, FXLS8952_ORIENT_THS_REG = 0x26, FXLS8952_SDCD_INT_SRC = 0x27, FXLS8952_SDCD_CONFIG1 = 0x28, FXLS8952_SDCD_CONFIG2 = 0x29, FXLS8952_SDCD_OT_DBCNT = 0x2A, FXLS8952_SDCD_WT_DBCNT = 0x2B, FXLS8952_SDCD_LTHS_LSB = 0x2C, FXLS8952_SDCD_LTHS_MSB = 0x2D, FXLS8952_SDCD_UTHS_LSB = 0x2E, FXLS8952_SDCD_UTHS_MSB = 0x2F }
| The FXLS8952 types. More...
enum | { FXLS8952_SUCCESS, FXLS8952_DATA_OVERWRITE, FXLS8952_ERROR }

## Detailed Description

The fxls8952.h contains the FXLS8952 Accelerometer register definitions, access macros, and device access functions.

Copyright
  Copyright (c) 2015, Freescale Semiconductor, Inc.

Definition in file fxls8952.h.

## Macro Definition Documentation

#define FXLS8952_ACTIVE_MASK (0x01)

Definition at line 133 of file fxls8952.h.

Referenced by fsl_fxls8952_i2c_3D_accel_Configure().

#define FXLS8952_ACTIVE_SHIFT 0

Definition at line 134 of file fxls8952.h.

#define FXLS8952_AINC_TEMP_MASK (0x02)

Definition at line 145 of file fxls8952.h.

#define FXLS8952_AINC_TEMP_SHIFT 1

Definition at line 146 of file fxls8952.h.

#define FXLS8952_ASLP_EN_MASK (0x04)

Definition at line 191 of file fxls8952.h.

#define FXLS8952_ASLP_EN_SHIFT 2

Definition at line 192 of file fxls8952.h.

#define FXLS8952_ASLP_INT2_MASK (0x04)

Definition at line 211 of file fxls8952.h.

#define FXLS8952_ASLP_INT2_SHIFT 2

Definition at line 212 of file fxls8952.h.

#define FXLS8952_BAFRO_MASK (0x01)

Definition at line 253 of file fxls8952.h.

#define FXLS8952_BAFRO_SHIFT 0

Definition at line 254 of file fxls8952.h.

#define FXLS8952_BOOT_DIS_MASK (0x02)

Definition at line 193 of file fxls8952.h.

#define FXLS8952_BOOT_DIS_SHIFT 1

Definition at line 194 of file fxls8952.h.

#define FXLS8952_BOOT_INT2_MASK (0x02)

Definition at line 213 of file fxls8952.h.

#define FXLS8952_BOOT_INT2_SHIFT 1

Definition at line 214 of file fxls8952.h.

#define FXLS8952_BUF_CFG_WMRK_MASK (0x3F)

Definition at line 241 of file fxls8952.h.

#define FXLS8952_BUF_CFG_WMRK_SHIFT 0

Definition at line 242 of file fxls8952.h.

#define FXLS8952_BUF_CNT_MASK (0x3F)

Definition at line 109 of file fxls8952.h.

#define FXLS8952_BUF_CNT_SHIFT 0

Definition at line 110 of file fxls8952.h.

#define FXLS8952_BUF_EN_MASK (0x40)

Definition at line 183 of file fxls8952.h.

#define FXLS8952_BUF_EN_SHIFT 6

Definition at line 184 of file fxls8952.h.

#define FXLS8952_BUF_FLUSH_MASK (0x80)

Definition at line 237 of file fxls8952.h.

Referenced by fsl_fxls8952_i2c_3D_accel_PeriodicCallback().

#define FXLS8952_BUF_FLUSH_SHIFT 7

Definition at line 238 of file fxls8952.h.

#define FXLS8952_BUF_GATE_CNT_MASK (0x7C)

Definition at line 117 of file fxls8952.h.

#define FXLS8952_BUF_GATE_CNT_SHIFT 2

Definition at line 118 of file fxls8952.h.

#define FXLS8952_BUF_GATE_ERR_MASK (0x80)

Definition at line 115 of file fxls8952.h.

#define FXLS8952_BUF_GATE_ERR_SHIFT 7

Definition at line 116 of file fxls8952.h.

#define FXLS8952_BUF_GATE_MASK (0x10)

Definition at line 225 of file fxls8952.h.

#define FXLS8952_BUF_GATE_SHIFT 4

Definition at line 226 of file fxls8952.h.

#define FXLS8952_BUF_INT2_MASK (0x40)

Definition at line 203 of file fxls8952.h.

#define FXLS8952_BUF_INT2_SHIFT 6

Definition at line 204 of file fxls8952.h.

#define FXLS8952_BUF_MODE_MASK (0x60)

Definition at line 223 of file fxls8952.h.

#define FXLS8952_BUF_MODE_SHIFT 5

Definition at line 224 of file fxls8952.h.

#define FXLS8952_BUF_OVF_MASK (0x40)

Definition at line 107 of file fxls8952.h.

#define FXLS8952_BUF_OVF_SHIFT 6

Definition at line 108 of file fxls8952.h.

#define FXLS8952_BUF_TYPE_MASK (0x80)

Definition at line 221 of file fxls8952.h.

#define FXLS8952_BUF_TYPE_SHIFT 7

Definition at line 222 of file fxls8952.h.

#define FXLS8952_BUF_WMRK_MASK (0x80)

Definition at line 105 of file fxls8952.h.

#define FXLS8952_BUF_WMRK_SHIFT 7

Definition at line 106 of file fxls8952.h.

#define FXLS8952_DRDY_EN_MASK (0x80)

Definition at line 181 of file fxls8952.h.

#define FXLS8952_DRDY_EN_SHIFT 7

Definition at line 182 of file fxls8952.h.

#define FXLS8952_DRDY_INT2_MASK (0x80)

Definition at line 201 of file fxls8952.h.

#define FXLS8952_DRDY_INT2_SHIFT 7

Definition at line 202 of file fxls8952.h.

#define FXLS8952_DRDY_PUL_MASK (0x08)

Definition at line 169 of file fxls8952.h.

#define FXLS8952_DRDY_PUL_SHIFT 3

Definition at line 170 of file fxls8952.h.

#define FXLS8952_EXT_TRIG_M_MASK (0x80)

Definition at line 161 of file fxls8952.h.

#define FXLS8952_EXT_TRIG_M_SHIFT 7

Definition at line 162 of file fxls8952.h.

#define FXLS8952_F_READ_MASK (0x01)

Definition at line 147 of file fxls8952.h.

#define FXLS8952_F_READ_SHIFT 0

Definition at line 148 of file fxls8952.h.

#define FXLS8952_FSR_MASK (0x06)

Definition at line 131 of file fxls8952.h.

#define FXLS8952_FSR_SHIFT 1

Definition at line 132 of file fxls8952.h.

#define FXLS8952_GET_FIELD | ( |  | name,
|  |  | val
| ) |  | ((val&FXLS8952_##name##_MASK)>>FXLS8952_##name##_SHIFT)

Definition at line 80 of file fxls8952.h.

Referenced by fsl_fxls8952_i2c_3D_accel_PeriodicCallback().

#define FXLS8952_HYS_MASK (0x07)

Definition at line 283 of file fxls8952.h.

#define FXLS8952_HYS_SHIFT 0

Definition at line 284 of file fxls8952.h.

#define FXLS8952_INT2_FUNC_MASK (0x04)

Definition at line 171 of file fxls8952.h.

#define FXLS8952_INT2_FUNC_SHIFT 2

Definition at line 172 of file fxls8952.h.

#define FXLS8952_INT_POL_MASK (0x01)

Definition at line 175 of file fxls8952.h.

#define FXLS8952_INT_POL_SHIFT 0

Definition at line 176 of file fxls8952.h.

#define FXLS8952_INT_PP_OD_MASK (0x02)

Definition at line 173 of file fxls8952.h.

#define FXLS8952_INT_PP_OD_SHIFT 1

Definition at line 174 of file fxls8952.h.

#define FXLS8952_LAPO_MASK (0x06)

Definition at line 251 of file fxls8952.h.

#define FXLS8952_LAPO_SHIFT 1

Definition at line 252 of file fxls8952.h.

#define FXLS8952_LE_BE_MASK (0x08)

Definition at line 143 of file fxls8952.h.

Referenced by fsl_fxls8952_i2c_3D_accel_Configure().

#define FXLS8952_LE_BE_SHIFT 3

Definition at line 144 of file fxls8952.h.

#define FXLS8952_LO_MASK (0x40)

Definition at line 249 of file fxls8952.h.

#define FXLS8952_LO_SHIFT 6

Definition at line 250 of file fxls8952.h.

#define FXLS8952_NEW_ORIENT_MASK (0x80)

Definition at line 247 of file fxls8952.h.

#define FXLS8952_NEW_ORIENT_SHIFT 7

Definition at line 248 of file fxls8952.h.

#define FXLS8952_ORIENT_BKFR_MASK (0xC0)

Definition at line 273 of file fxls8952.h.

#define FXLS8952_ORIENT_BKFR_SHIFT 6

Definition at line 274 of file fxls8952.h.

#define FXLS8952_ORIENT_DBCNTM_MASK (0x80)

Definition at line 259 of file fxls8952.h.

#define FXLS8952_ORIENT_DBCNTM_SHIFT 7

Definition at line 260 of file fxls8952.h.

#define FXLS8952_ORIENT_DBCOUNT_MASK (0xFF)

Definition at line 267 of file fxls8952.h.

#define FXLS8952_ORIENT_DBCOUNT_SHIFT 0

Definition at line 268 of file fxls8952.h.

#define FXLS8952_ORIENT_EN_MASK (0x08)

Definition at line 189 of file fxls8952.h.

#define FXLS8952_ORIENT_EN_SHIFT 3

Definition at line 190 of file fxls8952.h.

#define FXLS8952_ORIENT_ENABLE_MASK (0x40)

Definition at line 261 of file fxls8952.h.

#define FXLS8952_ORIENT_ENABLE_SHIFT 6

Definition at line 262 of file fxls8952.h.

#define FXLS8952_ORIENT_INT2_MASK (0x08)

Definition at line 209 of file fxls8952.h.

#define FXLS8952_ORIENT_INT2_SHIFT 3

Definition at line 210 of file fxls8952.h.

#define FXLS8952_ORIENT_THS_MASK (0xF8)

Definition at line 281 of file fxls8952.h.

#define FXLS8952_ORIENT_THS_SHIFT 3

Definition at line 282 of file fxls8952.h.

#define FXLS8952_ORIENT_ZLOCK_MASK (0x07)

Definition at line 275 of file fxls8952.h.

#define FXLS8952_ORIENT_ZLOCK_SHIFT 0

Definition at line 276 of file fxls8952.h.

#define FXLS8952_OT_DBCTM_MASK (0x10)

Definition at line 314 of file fxls8952.h.

#define FXLS8952_OT_DBCTM_SHIFT 4

Definition at line 315 of file fxls8952.h.

#define FXLS8952_OT_ELE_MASK (0x80)

Definition at line 289 of file fxls8952.h.

#define FXLS8952_OT_ELE_SHIFT 7

Definition at line 290 of file fxls8952.h.

#define FXLS8952_REF_UPD_MASK (0x01)

Definition at line 320 of file fxls8952.h.

#define FXLS8952_REF_UPD_SHIFT 0

Definition at line 321 of file fxls8952.h.

#define FXLS8952_REF_UPDM_MASK (0x60)

Definition at line 312 of file fxls8952.h.

#define FXLS8952_REF_UPDM_SHIFT 5

Definition at line 313 of file fxls8952.h.

#define FXLS8952_RST_MASK (0x80)

Definition at line 125 of file fxls8952.h.

#define FXLS8952_RST_SHIFT 7

Definition at line 126 of file fxls8952.h.

#define FXLS8952_SDCD_EN_MASK (0x80)

Definition at line 310 of file fxls8952.h.

#define FXLS8952_SDCD_EN_SHIFT 7

Definition at line 311 of file fxls8952.h.

#define FXLS8952_SDCD_OT_EN_MASK (0x20)

Definition at line 185 of file fxls8952.h.

#define FXLS8952_SDCD_OT_EN_SHIFT 5

Definition at line 186 of file fxls8952.h.

#define FXLS8952_SDCD_OT_INT2_MASK (0x20)

Definition at line 205 of file fxls8952.h.

#define FXLS8952_SDCD_OT_INT2_SHIFT 5

Definition at line 206 of file fxls8952.h.

#define FXLS8952_SDCD_WT_EN_MASK (0x10)

Definition at line 187 of file fxls8952.h.

#define FXLS8952_SDCD_WT_EN_SHIFT 4

Definition at line 188 of file fxls8952.h.

#define FXLS8952_SDCD_WT_INT2_MASK (0x10)

Definition at line 207 of file fxls8952.h.

#define FXLS8952_SDCD_WT_INT2_SHIFT 4

Definition at line 208 of file fxls8952.h.

#define FXLS8952_SDCD_X_WT_EF_MASK (0x80)

Definition at line 326 of file fxls8952.h.

#define FXLS8952_SDCD_X_WT_EF_SHIFT 7

Definition at line 327 of file fxls8952.h.

#define FXLS8952_SDCD_Y_WT_EF_MASK (0x40)

Definition at line 328 of file fxls8952.h.

#define FXLS8952_SDCD_Y_WT_EF_SHIFT 6

Definition at line 329 of file fxls8952.h.

#define FXLS8952_SDCD_Z_WT_EF_MASK (0x20)

Definition at line 330 of file fxls8952.h.

#define FXLS8952_SDCD_Z_WT_EF_SHIFT 5

Definition at line 331 of file fxls8952.h.

#define FXLS8952_SET_FIELD | ( |  | name,
|  |  | val
| ) |  | (((val)<<FXLS8952_##name##_SHIFT)&(FXLS8952_##name##_MASK))

Definition at line 79 of file fxls8952.h.

Referenced by fsl_fxls8952_i2c_3D_accel_Configure().

#define FXLS8952_SLEEP_ODR_MASK (0x0F)

Definition at line 155 of file fxls8952.h.

#define FXLS8952_SLEEP_ODR_SHIFT 0

Definition at line 156 of file fxls8952.h.

#define FXLS8952_SLEEP_PM_MASK (0x30)

Definition at line 141 of file fxls8952.h.

#define FXLS8952_SLEEP_PM_SHIFT 4

Definition at line 142 of file fxls8952.h.

#define FXLS8952_SRC_ASLP_MASK (0x02)

Definition at line 97 of file fxls8952.h.

#define FXLS8952_SRC_ASLP_SHIFT 1

Definition at line 98 of file fxls8952.h.

#define FXLS8952_SRC_BOOT_MASK (0x01)

Definition at line 99 of file fxls8952.h.

#define FXLS8952_SRC_BOOT_SHIFT 0

Definition at line 100 of file fxls8952.h.

#define FXLS8952_SRC_BUF_MASK (0x20)

Definition at line 89 of file fxls8952.h.

#define FXLS8952_SRC_BUF_SHIFT 5

Definition at line 90 of file fxls8952.h.

#define FXLS8952_SRC_DRDY_MASK (0x80)

Definition at line 85 of file fxls8952.h.

#define FXLS8952_SRC_DRDY_SHIFT 7

Definition at line 86 of file fxls8952.h.

#define FXLS8952_SRC_ORIENT_MASK (0x04)

Definition at line 95 of file fxls8952.h.

#define FXLS8952_SRC_ORIENT_SHIFT 2

Definition at line 96 of file fxls8952.h.

#define FXLS8952_SRC_OVF_MASK (0x40)

Definition at line 87 of file fxls8952.h.

#define FXLS8952_SRC_OVF_SHIFT 6

Definition at line 88 of file fxls8952.h.

#define FXLS8952_SRC_SDCD_AND_MASK (0x08)

Definition at line 93 of file fxls8952.h.

#define FXLS8952_SRC_SDCD_AND_SHIFT 3

Definition at line 94 of file fxls8952.h.

#define FXLS8952_SRC_SDCD_OR_MASK (0x10)

Definition at line 91 of file fxls8952.h.

#define FXLS8952_SRC_SDCD_OR_SHIFT 4

Definition at line 92 of file fxls8952.h.

#define FXLS8952_ST_AXIS_SEL_MASK (0x60)

Definition at line 127 of file fxls8952.h.

#define FXLS8952_ST_AXIS_SEL_SHIFT 5

Definition at line 128 of file fxls8952.h.

#define FXLS8952_ST_POL_MASK (0x10)

Definition at line 129 of file fxls8952.h.

#define FXLS8952_ST_POL_SHIFT 4

Definition at line 130 of file fxls8952.h.

#define FXLS8952_SYS_MODE_MASK (0x03)

Definition at line 119 of file fxls8952.h.

#define FXLS8952_SYS_MODE_SHIFT 0

Definition at line 120 of file fxls8952.h.

#define FXLS8952_TRIG_ORIENT_MASK (0x01)

Definition at line 231 of file fxls8952.h.

#define FXLS8952_TRIG_ORIENT_SHIFT 0

Definition at line 232 of file fxls8952.h.

#define FXLS8952_TRIG_SDCD_OT_MASK (0x04)

Definition at line 229 of file fxls8952.h.

#define FXLS8952_TRIG_SDCD_OT_SHIFT 2

Definition at line 230 of file fxls8952.h.

#define FXLS8952_TRIG_SDCD_WT_MASK (0x08)

Definition at line 227 of file fxls8952.h.

#define FXLS8952_TRIG_SDCD_WT_SHIFT 3

Definition at line 228 of file fxls8952.h.

#define FXLS8952_WAKE_ODR_MASK (0xF0)

Definition at line 153 of file fxls8952.h.

#define FXLS8952_WAKE_ODR_SHIFT 4

Definition at line 154 of file fxls8952.h.

#define FXLS8952_WAKE_ORIENT_MASK (0x10)

Definition at line 167 of file fxls8952.h.

#define FXLS8952_WAKE_ORIENT_SHIFT 4

Definition at line 168 of file fxls8952.h.

#define FXLS8952_WAKE_OUT_EN_MASK (0x01)

Definition at line 195 of file fxls8952.h.

#define FXLS8952_WAKE_OUT_EN_SHIFT 0

Definition at line 196 of file fxls8952.h.

#define FXLS8952_WAKE_OUT_INT2_MASK (0x01)

Definition at line 215 of file fxls8952.h.

#define FXLS8952_WAKE_OUT_INT2_SHIFT 0

Definition at line 216 of file fxls8952.h.

#define FXLS8952_WAKE_PM_MASK (0xC0)

Definition at line 139 of file fxls8952.h.

#define FXLS8952_WAKE_PM_SHIFT 6

Definition at line 140 of file fxls8952.h.

#define FXLS8952_WAKE_SDCD_OT_MASK (0x20)

Definition at line 165 of file fxls8952.h.

#define FXLS8952_WAKE_SDCD_OT_SHIFT 5

Definition at line 166 of file fxls8952.h.

#define FXLS8952_WAKE_SDCD_WT_MASK (0x40)

Definition at line 163 of file fxls8952.h.

#define FXLS8952_WAKE_SDCD_WT_SHIFT 6

Definition at line 164 of file fxls8952.h.

#define FXLS8952_WAKE_SRC_BUF_MASK (0x40)

Definition at line 239 of file fxls8952.h.

#define FXLS8952_WAKE_SRC_BUF_SHIFT 5

Definition at line 240 of file fxls8952.h.

#define FXLS8952_WHOAMI_VALUE (0x72)

Definition at line 71 of file fxls8952.h.

Referenced by fsl_fxls8952_i2c_3D_accel_Initialize().

#define FXLS8952_WT_DBCTM_MASK (0x08)

Definition at line 316 of file fxls8952.h.

#define FXLS8952_WT_DBCTM_SHIFT 3

Definition at line 317 of file fxls8952.h.

#define FXLS8952_WT_ELE_MASK (0x40)

Definition at line 291 of file fxls8952.h.

#define FXLS8952_WT_ELE_SHIFT 6

Definition at line 292 of file fxls8952.h.

#define FXLS8952_WT_LOG_SEL_MASK (0x04)

Definition at line 318 of file fxls8952.h.

#define FXLS8952_WT_LOG_SEL_SHIFT 2

Definition at line 319 of file fxls8952.h.

#define FXLS8952_X_OT_EN_MASK (0x20)

Definition at line 293 of file fxls8952.h.

#define FXLS8952_X_OT_EN_SHIFT 5

Definition at line 294 of file fxls8952.h.

#define FXLS8952_X_WT_EN_MASK (0x04)

Definition at line 299 of file fxls8952.h.

#define FXLS8952_X_WT_EN_SHIFT 2

Definition at line 300 of file fxls8952.h.

#define FXLS8952_Y_OT_EN_MASK (0x10)

Definition at line 295 of file fxls8952.h.

#define FXLS8952_Y_OT_EN_SHIFT 4

Definition at line 296 of file fxls8952.h.

#define FXLS8952_Y_WT_EN_MASK (0x02)

Definition at line 301 of file fxls8952.h.

#define FXLS8952_Y_WT_EN_SHIFT 1

Definition at line 302 of file fxls8952.h.

#define FXLS8952_Z_OT_EN_MASK (0x08)

Definition at line 297 of file fxls8952.h.

#define FXLS8952_Z_OT_EN_SHIFT 3

Definition at line 298 of file fxls8952.h.

#define FXLS8952_Z_WT_EN_MASK (0x01)

Definition at line 303 of file fxls8952.h.

#define FXLS8952_Z_WT_EN_SHIFT 0

Definition at line 304 of file fxls8952.h.

## Enumeration Type Documentation

anonymous enum

The FXLS8952 types.

The FXLS8952 Sensor Internal Register Map.

Enumerator
FXLS8952_INT_STATUS |
FXLS8952_TEMP_OUT |
FXLS8952_OUT_X_LSB |
FXLS8952_OUT_X_MSB |
FXLS8952_OUT_Y_LSB |
FXLS8952_OUT_Y_MSB |
FXLS8952_OUT_Z_LSB |
FXLS8952_OUT_Z_MSB |
FXLS8952_BUF_STATUS |
FXLS8952_BUF_X_LSB |
FXLS8952_BUF_X_MSB |
FXLS8952_BUF_Y_LSB |
FXLS8952_BUF_Y_MSB |
FXLS8952_BUF_Z_LSB |
FXLS8952_BUF_Z_MSB |
FXLS8952_WHO_AM_I |
FXLS8952_SYS_MODE |
FXLS8952_SENS_CONFIG1 |
FXLS8952_SENS_CONFIG2 |
FXLS8952_SENS_CONFIG3 |
FXLS8952_WAKE_IDLE_LSB |
FXLS8952_WAKE_IDLE_MSB |
FXLS8952_SLEEP_IDLE_LSB |
FXLS8952_SLEEP_IDLE_MSB |
FXLS8952_SENS_CONFIG4 |
FXLS8952_ASLP_COUNT_LSB |
FXLS8952_ASLP_COUNT_MSB |
FXLS8952_INT_EN |
FXLS8952_INT_PIN_SEL |
FXLS8952_OFF_X |
FXLS8952_OFF_Y |
FXLS8952_OFF_Z |
FXLS8952_BUF_CONFIG1 |
FXLS8952_BUF_CONFIG2 |
FXLS8952_ORIENT_STATUS |
FXLS8952_ORIENT_CFG |
FXLS8952_ORIENT_DBCOUNT |
FXLS8952_ORIENT_BF_ZCOMP |
FXLS8952_ORIENT_THS_REG |
FXLS8952_SDCD_INT_SRC |
FXLS8952_SDCD_CONFIG1 |
FXLS8952_SDCD_CONFIG2 |
FXLS8952_SDCD_OT_DBCNT |
FXLS8952_SDCD_WT_DBCNT |
FXLS8952_SDCD_LTHS_LSB |
FXLS8952_SDCD_LTHS_MSB |
FXLS8952_SDCD_UTHS_LSB |
FXLS8952_SDCD_UTHS_MSB |

Definition at line 20 of file fxls8952.h.

anonymous enum

Enumerator
FXLS8952_SUCCESS |
FXLS8952_DATA_OVERWRITE |
FXLS8952_ERROR |

Definition at line 339 of file fxls8952.h.

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