| ISF 2.1 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Enumerations
mma865x.h File Reference

The mma865x.h contains the MMA865x 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 | mma865x_Sensor_Specific_Reg_t
struct | mma865x_Sensor_Specific_Settings_t

## Macros
#define | MMA865x_WHOAMI_VALUE_8652 (0x4A)
#define | MMA865x_WHOAMI_VALUE_8653 (0x5A)
#define | MMA865x_SET_FIELD(name, val) (((val)<<MMA865x_##name##_SHIFT)&(MMA865x_##name##_MASK))
#define | MMA865x_GET_FIELD(name, val) ((val&MMA865x_##name##_MASK)>>MMA865x_##name##_SHIFT)
#define | MMA865x_ZYXOW_MASK 0x80
#define | MMA865x_ZYXOW_SHIFT 7
#define | MMA865x_ZOW_MASK 0x40
#define | MMA865x_YOW_MASK 0x20
#define | MMA865x_XOW_MASK 0x10
#define | MMA865x_ZYXDR_MASK 0x08
#define | MMA865x_ZYXDR_SHIFT 3
#define | MMA865x_ZDR_MASK 0x04
#define | MMA865x_YDR_MASK 0x02
#define | MMA865x_XDR_MASK 0x01
#define | MMA865x_F_OVF_MASK 0x80
#define | MMA865x_F_WMRK_FLAG_MASK 0x40
#define | MMA865x_F_CNT5_MASK 0x20
#define | MMA865x_F_CNT4_MASK 0x10
#define | MMA865x_F_CNT3_MASK 0x08
#define | MMA865x_F_CNT2_MASK 0x04
#define | MMA865x_F_CNT1_MASK 0x02
#define | MMA865x_F_CNT0_MASK 0x01
#define | MMA865x_F_CNT_MASK 0x3F
#define | MMA865x_F_MODE1_MASK 0x80
#define | MMA865x_F_MODE0_MASK 0x40
#define | MMA865x_F_WMRK5_MASK 0x20
#define | MMA865x_F_WMRK4_MASK 0x10
#define | MMA865x_F_WMRK3_MASK 0x08
#define | MMA865x_F_WMRK2_MASK 0x04
#define | MMA865x_F_WMRK1_MASK 0x02
#define | MMA865x_F_WMRK0_MASK 0x01
#define | MMA865x_F_MODE_MASK 0xC0
#define | MMA865x_F_WMRK_MASK 0x3F
#define | MMA865x_F_MODE_DISABLED 0x00
#define | MMA865x_F_MODE_CIRCULAR (MMA865x_F_MODE0_MASK)
#define | MMA865x_F_MODE_FILL (MMA865x_F_MODE1_MASK)
#define | MMA865x_F_MODE_TRIGGER (MMA865x_F_MODE1_MASK+MMA865x_F_MODE0_MASK)
#define | MMA865x_TRIG_TRANS_MASK 0x20
#define | MMA865x_TRIG_LNDPRT_MASK 0x10
#define | MMA865x_TRIG_PULSE_MASK 0x08
#define | MMA865x_TRIG_FF_MT_MASK 0x04
#define | MMA865x_FGERR_MASK 0x80
#define | MMA865x_FGT_4_MASK 0x40
#define | MMA865x_FGT_3_MASK 0x20
#define | MMA865x_FGT_2_MASK 0x10
#define | MMA865x_FGT_1_MASK 0x08
#define | MMA865x_FGT_0_MASK 0x04
#define | MMA865x_FGT_MASK 0x7C
#define | MMA865x_SYSMOD_MASK 0x03
#define | MMA865x_SYSMOD_STANDBY 0x00
#define | MMA865x_SYSMOD_WAKE 0x01
#define | MMA865x_SYSMOD_SLEEP 0x02
#define | MMA865x_SRC_ASLP_MASK 0x80
#define | MMA865x_SRC_FIFO_MASK 0x40
#define | MMA865x_SRC_TRANS_MASK 0x20
#define | MMA865x_SRC_LNDPRT_MASK 0x10
#define | MMA865x_SRC_PULSE_MASK 0x08
#define | MMA865x_SRC_FF_MT_MASK 0x04
#define | MMA865x_SRC_DRDY_MASK 0x01
#define | MMA865x_MMA865xQ 0x0D
#define | MMA865x_HPF_OUT_MASK 0x10
#define | MMA865x_HPF_OUT_SHIFT 4
#define | MMA865x_FS1_MASK 0x02
#define | MMA865x_FS0_MASK 0x01
#define | MMA865x_FS_MASK 0x03
#define | MMA865x_FS_SHIFT 0
#define | MMA865x_FULL_SCALE_2G 0x00
#define | MMA865x_FULL_SCALE_4G (MMA865x_FS0_MASK)
#define | MMA865x_FULL_SCALE_8G (MMA865x_FS1_MASK)
#define | MMA865x_PULSE_HPF_BYP_MASK 0x20
#define | MMA865x_PULSE_HPF_BYP_SHIFT 5
#define | MMA865x_PULSE_LPF_EN_MASK 0x10
#define | MMA865x_PULSE_LPF_EN_SHIFT 4
#define | MMA865x_SEL1_MASK 0x02
#define | MMA865x_SEL0_MASK 0x01
#define | MMA865x_SEL_MASK 0x03
#define | MMA865x_SEL_SHIFT 0
#define | MMA865x_NEWLP_MASK 0x80
#define | MMA865x_LO_MASK 0x40
#define | MMA865x_LO_SHIFT 6
#define | MMA865x_LAPO1_MASK 0x04
#define | MMA865x_LAPO0_MASK 0x02
#define | MMA865x_LAPO_MASK 0x06
#define | MMA865x_LAPO_SHIFT 1
#define | MMA865x_BAFRO_MASK 0x01
#define | MMA865x_BAFRO_SHIFT 0
#define | MMA865x_DBCNTM_MASK 0x80
#define | MMA865x_DBCNTM_SHIFT 7
#define | MMA865x_PL_EN_MASK 0x40
#define | MMA865x_PL_EN_SHIFT 6
#define | MMA865x_BKFR1_MASK 0x80
#define | MMA865x_BKFR0_MASK 0x40
#define | MMA865x_ZLOCK2_MASK 0x04
#define | MMA865x_ZLOCK1_MASK 0x02
#define | MMA865x_ZLOCK0_MASK 0x01
#define | MMA865x_BKFR_MASK 0xC0
#define | MMA865x_BKFR_SHIFT 6
#define | MMA865x_ZLOCK_MASK 0x07
#define | MMA865x_ZLOCK_SHIFT 0
#define | MMA865x_P_L_THS4_MASK 0x80
#define | MMA865x_P_L_THS3_MASK 0x40
#define | MMA865x_P_L_THS2_MASK 0x20
#define | MMA865x_P_L_THS1_MASK 0x10
#define | MMA865x_P_L_THS0_MASK 0x08
#define | MMA865x_HYS2_MASK 0x04
#define | MMA865x_HYS1_MASK 0x02
#define | MMA865x_HYS0_MASK 0x01
#define | MMA865x_P_L_THS_MASK 0xF8
#define | MMA865x_P_L_THS_SHIFT 3
#define | MMA865x_HYS_MASK 0x07
#define | MMA865x_HYS_SHIFT 0
#define | MMA865x_ELE_MASK 0x80
#define | MMA865x_ELE_SHIFT 7
#define | MMA865x_OAE_MASK 0x40
#define | MMA865x_OAE_SHIFT 6
#define | MMA865x_ZEFE_MASK 0x20
#define | MMA865x_ZEFE_SHIFT 5
#define | MMA865x_YEFE_MASK 0x10
#define | MMA865x_YEFE_SHIFT 4
#define | MMA865x_XEFE_MASK 0x08
#define | MMA865x_XEFE_SHIFT 3
#define | MMA865x_EA_MASK 0x80
#define | MMA865x_ZHE_MASK 0x20
#define | MMA865x_ZHP_MASK 0x10
#define | MMA865x_YHE_MASK 0x08
#define | MMA865x_YHP_MASK 0x04
#define | MMA865x_XHE_MASK 0x02
#define | MMA865x_XHP_MASK 0x01
#define | MMA865x_DBCNTM_MASK 0x80
#define | MMA865x_DBCNTM_SHIFT 7
#define | MMA865x_THS6_MASK 0x40
#define | MMA865x_THS5_MASK 0x20
#define | MMA865x_THS4_MASK 0x10
#define | MMA865x_THS3_MASK 0x08
#define | MMA865x_THS2_MASK 0x04
#define | MMA865x_TXS1_MASK 0x02
#define | MMA865x_THS0_MASK 0x01
#define | MMA865x_THS_MASK 0x7F
#define | MMA865x_THS_SHIFT 0
#define | MMA865x_TELE_MASK 0x10
#define | MMA865x_TELE_SHIFT 4
#define | MMA865x_ZTEFE_MASK 0x08
#define | MMA865x_ZTEFE_SHIFT 3
#define | MMA865x_YTEFE_MASK 0x04
#define | MMA865x_YTEFE_SHIFT 2
#define | MMA865x_XTEFE_MASK 0x02
#define | MMA865x_XTEFE_SHIFT 1
#define | MMA865x_HPF_BYP_MASK 0x01
#define | MMA865x_HPF_BYP_SHIFT 0
#define | MMA865x_TEA_MASK 0x40
#define | MMA865x_ZTRANSE_MASK 0x20
#define | MMA865x_Z_TRANS_POL_MASK 0x10
#define | MMA865x_YTRANSE_MASK 0x08
#define | MMA865x_Y_TRANS_POL_MASK 0x04
#define | MMA865x_XTRANSE_MASK 0x02
#define | MMA865x_X_TRANS_POL_MASK 0x01
#define | MMA865x_DPA_MASK 0x80
#define | MMA865x_DPA_SHIFT 7
#define | MMA865x_PELE_MASK 0x40
#define | MMA865x_PELE_SHIFT 6
#define | MMA865x_ZDPEFE_MASK 0x20
#define | MMA865x_ZDPEFE_SHIFT 5
#define | MMA865x_ZSPEFE_MASK 0x10
#define | MMA865x_ZSPEFE_SHIFT 4
#define | MMA865x_YDPEFE_MASK 0x08
#define | MMA865x_YDPEFE_SHIFT 3
#define | MMA865x_YSPEFE_MASK 0x04
#define | MMA865x_YSPEFE_SHIFT 2
#define | MMA865x_XDPEFE_MASK 0x02
#define | MMA865x_XDPEFE_SHIFT 1
#define | MMA865x_XSPEFE_MASK 0x01
#define | MMA865x_XSPEFE_SHIFT 0
#define | MMA865x_PEA_MASK 0x80
#define | MMA865x_AXZ_MASK 0x40
#define | MMA865x_AXY_MASK 0x20
#define | MMA865x_AXX_MASK 0x10
#define | MMA865x_DPE_MASK 0x08
#define | MMA865x_POLZ_MASK 0x04
#define | MMA865x_POLY_MASK 0x02
#define | MMA865x_POLX_MASK 0x01
#define | MMA865x_PTHS_MASK 0x7F
#define | MMA865x_PTHS_SHIFT 0
#define | MMA865x_ASLP_RATE1_MASK 0x80
#define | MMA865x_ASLP_RATE0_MASK 0x40
#define | MMA865x_DR2_MASK 0x20
#define | MMA865x_DR1_MASK 0x10
#define | MMA865x_DR0_MASK 0x08
#define | MMA865x_LNOISE_MASK 0x04
#define | MMA865x_FREAD_MASK 0x02
#define | MMA865x_FREAD_SHIFT 1
#define | MMA865x_ACTIVE_MASK 0x01
#define | MMA865x_ASLP_RATE_MASK 0xC0
#define | MMA865x_ASLP_RATE_SHIFT 6
#define | MMA865x_DR_MASK 0x38
#define | MMA865x_DR_SHIFT 3
#define | MMA865x_ASLP_RATE_20MS 0x00
#define | MMA865x_ASLP_RATE_80MS (MMA865x_ASLP_RATE0_MASK)
#define | MMA865x_ASLP_RATE_160MS (MMA865x_ASLP_RATE1_MASK)
#define | MMA865x_ASLP_RATE_640MS (MMA865x_ASLP_RATE1_MASK+MMA865x_ASLP_RATE0_MASK)
#define | MMA865x_ASLP_RATE_50HZ (MMA865x_ASLP_RATE_20MS)
#define | MMA865x_ASLP_RATE_12_5HZ (MMA865x_ASLP_RATE_80MS)
#define | MMA865x_ASLP_RATE_6_25HZ (MMA865x_ASLP_RATE_160MS)
#define | MMA865x_ASLP_RATE_1_56HZ (MMA865x_ASLP_RATE_640MS)
#define | MMA865x_DATA_RATE_1250US 0x00
#define | MMA865x_DATA_RATE_2500US (MMA865x_DR0_MASK)
#define | MMA865x_DATA_RATE_5MS (MMA865x_DR1_MASK)
#define | MMA865x_DATA_RATE_10MS (MMA865x_DR1_MASK+MMA865x_DR0_MASK)
#define | MMA865x_DATA_RATE_20MS (MMA865x_DR2_MASK)
#define | MMA865x_DATA_RATE_80MS (MMA865x_DR2_MASK+MMA865x_DR0_MASK)
#define | MMA865x_DATA_RATE_160MS (MMA865x_DR2_MASK+MMA865x_DR1_MASK)
#define | MMA865x_DATA_RATE_640MS (MMA865x_DR2_MASK+MMA865x_DR1_MASK+MMA865x_DR0_MASK)
#define | MMA865x_DATA_RATE_800HZ (MMA865x_DATA_RATE_1250US)
#define | MMA865x_DATA_RATE_400HZ (MMA865x_DATA_RATE_2500US)
#define | MMA865x_DATA_RATE_200HZ (MMA865x_DATA_RATE_5MS)
#define | MMA865x_DATA_RATE_100HZ (MMA865x_DATA_RATE_10MS)
#define | MMA865x_DATA_RATE_50HZ (MMA865x_DATA_RATE_20MS)
#define | MMA865x_DATA_RATE_12_5HZ (MMA865x_DATA_RATE_80MS)
#define | MMA865x_DATA_RATE_6_25HZ (MMA865x_DATA_RATE_160MS)
#define | MMA865x_DATA_RATE_1_56HZ (MMA865x_DATA_RATE_640MS)
#define | MMA865x_ACTIVE (MMA865x_ACTIVE_MASK)
#define | MMA865x_STANDBY 0x00
#define | MMA865x_ST_MASK 0x80
#define | MMA865x_ST_SHIFT 7
#define | MMA865x_RST_MASK 0x40
#define | MMA865x_RST_SHIFT 6
#define | MMA865x_SMODS1_MASK 0x10
#define | MMA865x_SMODS0_MASK 0x08
#define | MMA865x_SLPE_MASK 0x04
#define | MMA865x_SLPE_SHIFT 2
#define | MMA865x_MODS1_MASK 0x02
#define | MMA865x_MODS0_MASK 0x01
#define | MMA865x_SMODS_MASK 0x18
#define | MMA865x_SMODS_SHIFT 3
#define | MMA865x_MODS_MASK 0x03
#define | MMA865x_MODS_SHIFT 0
#define | MMA865x_SMOD_NORMAL 0x00
#define | MMA865x_SMOD_LOW_NOISE (MMA865x_SMODS0_MASK)
#define | MMA865x_SMOD_HIGH_RES (MMA865x_SMODS1_MASK)
#define | MMA865x_SMOD_LOW_POWER (MMA865x_SMODS1_MASK+MMA865x_SMODS0_MASK)
#define | MMA865x_MOD_NORMAL 0x00
#define | MMA865x_MOD_LOW_NOISE (MMA865x_MODS0_MASK)
#define | MMA865x_MOD_HIGH_RES (MMA865x_MODS1_MASK)
#define | MMA865x_MOD_LOW_POWER (MMA865x_MODS1_MASK+MMA865x_MODS0_MASK)
#define | MMA865x_FIFO_GATE_MASK 0x80
#define | MMA865x_FIFO_GATE_SHIFT 7
#define | MMA865x_WAKE_TRANS_MASK 0x40
#define | MMA865x_WAKE_TRANS_SHIFT 6
#define | MMA865x_WAKE_LNDPRT_MASK 0x20
#define | MMA865x_WAKE_LNDPRT_SHIFT 5
#define | MMA865x_WAKE_PULSE_MASK 0x10
#define | MMA865x_WAKE_PULSE_SHIFT 4
#define | MMA865x_WAKE_FF_MT_MASK 0x08
#define | MMA865x_WAKE_FF_MT_SHIFT 3
#define | MMA865x_IPOL_MASK 0x02
#define | MMA865x_IPOL_SHIFT 1
#define | MMA865x_PP_OD_MASK 0x01
#define | MMA865x_PP_OD_SHIFT 0
#define | MMA865x_INT_EN_ASLP_MASK 0x80
#define | MMA865x_INT_EN_ASLP_SHIFT 7
#define | MMA865x_INT_EN_FIFO_MASK 0x40
#define | MMA865x_INT_EN_FIFO_SHIFT 6
#define | MMA865x_INT_EN_TRANS_MASK 0x20
#define | MMA865x_INT_EN_TRANS_SHIFT 5
#define | MMA865x_INT_EN_LNDPRT_MASK 0x10
#define | MMA865x_INT_EN_LNDPRT_SHIFT 4
#define | MMA865x_INT_EN_PULSE_MASK 0x08
#define | MMA865x_INT_EN_PULSE_SHIFT 3
#define | MMA865x_INT_EN_FF_MT_MASK 0x04
#define | MMA865x_INT_EN_FF_MT_SHIFT 2
#define | MMA865x_INT_EN_DRDY_MASK 0x01
#define | MMA865x_INT_EN_DRDY_SHIFT 0
#define | MMA865x_INT_CFG_ASLP_MASK 0x80
#define | MMA865x_INT_CFG_ASLP_SHIFT 7
#define | MMA865x_INT_CFG_FIFO_MASK 0x40
#define | MMA865x_INT_CFG_FIFO_SHIFT 6
#define | MMA865x_INT_CFG_TRANS_MASK 0x20
#define | MMA865x_INT_CFG_TRANS_SHIFT 5
#define | MMA865x_INT_CFG_LNDPRT_MASK 0x10
#define | MMA865x_INT_CFG_LNDPRT_SHIFT 4
#define | MMA865x_INT_CFG_PULSE_MASK 0x08
#define | MMA865x_INT_CFG_PULSE_SHIFT 3
#define | MMA865x_INT_CFG_FF_MT_MASK 0x04
#define | MMA865x_INT_CFG_FF_MT_SHIFT 2
#define | MMA865x_INT_CFG_DRDY_MASK 0x01
#define | MMA865x_INT_CFG_DRDY_SHIFT 0
#define | MMA865x_PL_OUTPUT_EN 0x01
#define | MMA865x_FFMT_OUTPUT_EN 0x02
#define | MMA865x_TRANS_OUTPUT_EN 0x04
#define | MMA865x_PULSE_OUTPUT_EN 0x08

## Enumerations
enum | { MMA865x_STATUS_00 = 0, MMA865x_OUT_X_MSB, MMA865x_OUT_X_LSB, MMA865x_OUT_Y_MSB, MMA865x_OUT_Y_lSB, MMA865x_OUT_Z_MSB, MMA865x_OUT_Z_LSB, MMA865x_RSVD_0, MMA865x_RSVD_1, MMA865x_F_SETUP, MMA865x_TRIG_CFG, MMA865x_SYSMOD, MMA865x_INT_SOURCE, MMA865x_WHO_AM_I, MMA865x_XYZ_DATA_CFG, MMA865x_HP_FILTER_CUTOFF, MMA865x_PL_STATUS, MMA865x_PL_CFG, MMA865x_PL_COUNT, MMA865x_PL_BF_ZCOMP, MMA865x_PL_P_L_THS, MMA865x_FF_MT_CFG, MMA865x_FF_MT_SRC, MMA865x_FF_MT_THS, MMA865x_FF_MT_COUNT, MMA865x_RSVD_2, MMA865x_RSVD_3, MMA865x_RSVD_4, MMA865x_RSVD_5, MMA865x_TRANSIENT_CFG, MMA865x_TRANSIENT_SRC, MMA865x_TRANSIENT_THS, MMA865x_TRANSIENT_COUNT, MMA865x_PULSE_CFG, MMA865x_PULSE_SRC, MMA865x_PULSE_THSX, MMA865x_PULSE_THSY, MMA865x_PULSE_THSZ, MMA865x_PULSE_TMLT, MMA865x_PULSE_LTCY, MMA865x_PULSE_WIND, MMA865x_ASLP_COUNT, MMA865x_CTRL_REG1, MMA865x_CTRL_REG2, MMA865x_CTRL_REG3, MMA865x_CTRL_REG4, MMA865x_CTRL_REG5, MMA865x_OFF_X, MMA865x_OFF_Y, MMA865x_OFF_Z }
| The MMA865x types. More...
enum | { MMA865x_SUCCESS, MMA865x_DATA_OVERWRITE, MMA865x_ERROR }

## Detailed Description

The mma865x.h contains the MMA865x Accelerometer register definitions, access macros, and device access functions.

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

Definition in file mma865x.h.

## Macro Definition Documentation

#define MMA865x_ACTIVE (MMA865x_ACTIVE_MASK)

Definition at line 406 of file mma865x.h.

#define MMA865x_ACTIVE_MASK 0x01

Definition at line 372 of file mma865x.h.

#define MMA865x_ASLP_RATE0_MASK 0x40

Definition at line 365 of file mma865x.h.

#define MMA865x_ASLP_RATE1_MASK 0x80

Definition at line 364 of file mma865x.h.

#define MMA865x_ASLP_RATE_12_5HZ (MMA865x_ASLP_RATE_80MS)

Definition at line 384 of file mma865x.h.

#define MMA865x_ASLP_RATE_160MS (MMA865x_ASLP_RATE1_MASK)

Definition at line 380 of file mma865x.h.

#define MMA865x_ASLP_RATE_1_56HZ (MMA865x_ASLP_RATE_640MS)

Definition at line 386 of file mma865x.h.

#define MMA865x_ASLP_RATE_20MS 0x00

Definition at line 378 of file mma865x.h.

#define MMA865x_ASLP_RATE_50HZ (MMA865x_ASLP_RATE_20MS)

Definition at line 383 of file mma865x.h.

#define MMA865x_ASLP_RATE_640MS (MMA865x_ASLP_RATE1_MASK+MMA865x_ASLP_RATE0_MASK)

Definition at line 381 of file mma865x.h.

#define MMA865x_ASLP_RATE_6_25HZ (MMA865x_ASLP_RATE_160MS)

Definition at line 385 of file mma865x.h.

#define MMA865x_ASLP_RATE_80MS (MMA865x_ASLP_RATE0_MASK)

Definition at line 379 of file mma865x.h.

#define MMA865x_ASLP_RATE_MASK 0xC0

Definition at line 373 of file mma865x.h.

#define MMA865x_ASLP_RATE_SHIFT 6

Definition at line 374 of file mma865x.h.

#define MMA865x_AXX_MASK 0x10

Definition at line 349 of file mma865x.h.

#define MMA865x_AXY_MASK 0x20

Definition at line 348 of file mma865x.h.

#define MMA865x_AXZ_MASK 0x40

Definition at line 347 of file mma865x.h.

#define MMA865x_BAFRO_MASK 0x01

Definition at line 217 of file mma865x.h.

#define MMA865x_BAFRO_SHIFT 0

Definition at line 218 of file mma865x.h.

#define MMA865x_BKFR0_MASK 0x40

Definition at line 231 of file mma865x.h.

#define MMA865x_BKFR1_MASK 0x80

Definition at line 230 of file mma865x.h.

#define MMA865x_BKFR_MASK 0xC0

Definition at line 235 of file mma865x.h.

#define MMA865x_BKFR_SHIFT 6

Definition at line 236 of file mma865x.h.

#define MMA865x_DATA_RATE_100HZ (MMA865x_DATA_RATE_10MS)

Definition at line 400 of file mma865x.h.

#define MMA865x_DATA_RATE_10MS (MMA865x_DR1_MASK+MMA865x_DR0_MASK)

Definition at line 391 of file mma865x.h.

#define MMA865x_DATA_RATE_1250US 0x00

Definition at line 388 of file mma865x.h.

#define MMA865x_DATA_RATE_12_5HZ (MMA865x_DATA_RATE_80MS)

Definition at line 402 of file mma865x.h.

#define MMA865x_DATA_RATE_160MS (MMA865x_DR2_MASK+MMA865x_DR1_MASK)

Definition at line 394 of file mma865x.h.

#define MMA865x_DATA_RATE_1_56HZ (MMA865x_DATA_RATE_640MS)

Definition at line 404 of file mma865x.h.

#define MMA865x_DATA_RATE_200HZ (MMA865x_DATA_RATE_5MS)

Definition at line 399 of file mma865x.h.

#define MMA865x_DATA_RATE_20MS (MMA865x_DR2_MASK)

Definition at line 392 of file mma865x.h.

#define MMA865x_DATA_RATE_2500US (MMA865x_DR0_MASK)

Definition at line 389 of file mma865x.h.

#define MMA865x_DATA_RATE_400HZ (MMA865x_DATA_RATE_2500US)

Definition at line 398 of file mma865x.h.

#define MMA865x_DATA_RATE_50HZ (MMA865x_DATA_RATE_20MS)

Definition at line 401 of file mma865x.h.

#define MMA865x_DATA_RATE_5MS (MMA865x_DR1_MASK)

Definition at line 390 of file mma865x.h.

#define MMA865x_DATA_RATE_640MS (MMA865x_DR2_MASK+MMA865x_DR1_MASK+MMA865x_DR0_MASK)

Definition at line 395 of file mma865x.h.

#define MMA865x_DATA_RATE_6_25HZ (MMA865x_DATA_RATE_160MS)

Definition at line 403 of file mma865x.h.

#define MMA865x_DATA_RATE_800HZ (MMA865x_DATA_RATE_1250US)

Definition at line 397 of file mma865x.h.

#define MMA865x_DATA_RATE_80MS (MMA865x_DR2_MASK+MMA865x_DR0_MASK)

Definition at line 393 of file mma865x.h.

#define MMA865x_DBCNTM_MASK 0x80

Definition at line 283 of file mma865x.h.

#define MMA865x_DBCNTM_MASK 0x80

Definition at line 283 of file mma865x.h.

#define MMA865x_DBCNTM_SHIFT 7

Definition at line 284 of file mma865x.h.

#define MMA865x_DBCNTM_SHIFT 7

Definition at line 284 of file mma865x.h.

#define MMA865x_DPA_MASK 0x80

Definition at line 326 of file mma865x.h.

#define MMA865x_DPA_SHIFT 7

Definition at line 327 of file mma865x.h.

#define MMA865x_DPE_MASK 0x08

Definition at line 350 of file mma865x.h.

#define MMA865x_DR0_MASK 0x08

Definition at line 368 of file mma865x.h.

#define MMA865x_DR1_MASK 0x10

Definition at line 367 of file mma865x.h.

#define MMA865x_DR2_MASK 0x20

Definition at line 366 of file mma865x.h.

#define MMA865x_DR_MASK 0x38

Definition at line 375 of file mma865x.h.

#define MMA865x_DR_SHIFT 3

Definition at line 376 of file mma865x.h.

#define MMA865x_EA_MASK 0x80

Definition at line 272 of file mma865x.h.

#define MMA865x_ELE_MASK 0x80

Definition at line 259 of file mma865x.h.

#define MMA865x_ELE_SHIFT 7

Definition at line 260 of file mma865x.h.

#define MMA865x_F_CNT0_MASK 0x01

Definition at line 114 of file mma865x.h.

#define MMA865x_F_CNT1_MASK 0x02

Definition at line 113 of file mma865x.h.

#define MMA865x_F_CNT2_MASK 0x04

Definition at line 112 of file mma865x.h.

#define MMA865x_F_CNT3_MASK 0x08

Definition at line 111 of file mma865x.h.

#define MMA865x_F_CNT4_MASK 0x10

Definition at line 110 of file mma865x.h.

#define MMA865x_F_CNT5_MASK 0x20

Definition at line 109 of file mma865x.h.

#define MMA865x_F_CNT_MASK 0x3F

Definition at line 115 of file mma865x.h.

#define MMA865x_F_MODE0_MASK 0x40

Definition at line 122 of file mma865x.h.

#define MMA865x_F_MODE1_MASK 0x80

Definition at line 121 of file mma865x.h.

#define MMA865x_F_MODE_CIRCULAR (MMA865x_F_MODE0_MASK)

Definition at line 133 of file mma865x.h.

#define MMA865x_F_MODE_DISABLED 0x00

Definition at line 132 of file mma865x.h.

#define MMA865x_F_MODE_FILL (MMA865x_F_MODE1_MASK)

Definition at line 134 of file mma865x.h.

#define MMA865x_F_MODE_MASK 0xC0

Definition at line 129 of file mma865x.h.

#define MMA865x_F_MODE_TRIGGER (MMA865x_F_MODE1_MASK+MMA865x_F_MODE0_MASK)

Definition at line 135 of file mma865x.h.

#define MMA865x_F_OVF_MASK 0x80

Definition at line 107 of file mma865x.h.

#define MMA865x_F_WMRK0_MASK 0x01

Definition at line 128 of file mma865x.h.

#define MMA865x_F_WMRK1_MASK 0x02

Definition at line 127 of file mma865x.h.

#define MMA865x_F_WMRK2_MASK 0x04

Definition at line 126 of file mma865x.h.

#define MMA865x_F_WMRK3_MASK 0x08

Definition at line 125 of file mma865x.h.

#define MMA865x_F_WMRK4_MASK 0x10

Definition at line 124 of file mma865x.h.

#define MMA865x_F_WMRK5_MASK 0x20

Definition at line 123 of file mma865x.h.

#define MMA865x_F_WMRK_FLAG_MASK 0x40

Definition at line 108 of file mma865x.h.

#define MMA865x_F_WMRK_MASK 0x3F

Definition at line 130 of file mma865x.h.

#define MMA865x_FFMT_OUTPUT_EN 0x02

Definition at line 492 of file mma865x.h.

#define MMA865x_FGERR_MASK 0x80

Definition at line 150 of file mma865x.h.

#define MMA865x_FGT_0_MASK 0x04

Definition at line 155 of file mma865x.h.

#define MMA865x_FGT_1_MASK 0x08

Definition at line 154 of file mma865x.h.

#define MMA865x_FGT_2_MASK 0x10

Definition at line 153 of file mma865x.h.

#define MMA865x_FGT_3_MASK 0x20

Definition at line 152 of file mma865x.h.

#define MMA865x_FGT_4_MASK 0x40

Definition at line 151 of file mma865x.h.

#define MMA865x_FGT_MASK 0x7C

Definition at line 156 of file mma865x.h.

#define MMA865x_FIFO_GATE_MASK 0x80

Definition at line 440 of file mma865x.h.

#define MMA865x_FIFO_GATE_SHIFT 7

Definition at line 441 of file mma865x.h.

#define MMA865x_FREAD_MASK 0x02

Definition at line 370 of file mma865x.h.

#define MMA865x_FREAD_SHIFT 1

Definition at line 371 of file mma865x.h.

#define MMA865x_FS0_MASK 0x01

Definition at line 186 of file mma865x.h.

#define MMA865x_FS1_MASK 0x02

Definition at line 185 of file mma865x.h.

#define MMA865x_FS_MASK 0x03

Definition at line 187 of file mma865x.h.

#define MMA865x_FS_SHIFT 0

Definition at line 188 of file mma865x.h.

#define MMA865x_FULL_SCALE_2G 0x00

Definition at line 190 of file mma865x.h.

#define MMA865x_FULL_SCALE_4G (MMA865x_FS0_MASK)

Definition at line 191 of file mma865x.h.

#define MMA865x_FULL_SCALE_8G (MMA865x_FS1_MASK)

Definition at line 192 of file mma865x.h.

#define MMA865x_GET_FIELD | ( |  | name,
|  |  | val
| ) |  | ((val&MMA865x_##name##_MASK)>>MMA865x_##name##_SHIFT)

Definition at line 82 of file mma865x.h.

Referenced by mma865x_GetData().

#define MMA865x_HPF_BYP_MASK 0x01

Definition at line 307 of file mma865x.h.

#define MMA865x_HPF_BYP_SHIFT 0

Definition at line 308 of file mma865x.h.

#define MMA865x_HPF_OUT_MASK 0x10

Definition at line 183 of file mma865x.h.

#define MMA865x_HPF_OUT_SHIFT 4

Definition at line 184 of file mma865x.h.

#define MMA865x_HYS0_MASK 0x01

Definition at line 250 of file mma865x.h.

#define MMA865x_HYS1_MASK 0x02

Definition at line 249 of file mma865x.h.

#define MMA865x_HYS2_MASK 0x04

Definition at line 248 of file mma865x.h.

#define MMA865x_HYS_MASK 0x07

Definition at line 253 of file mma865x.h.

#define MMA865x_HYS_SHIFT 0

Definition at line 254 of file mma865x.h.

#define MMA865x_INT_CFG_ASLP_MASK 0x80

Definition at line 475 of file mma865x.h.

#define MMA865x_INT_CFG_ASLP_SHIFT 7

Definition at line 476 of file mma865x.h.

#define MMA865x_INT_CFG_DRDY_MASK 0x01

Definition at line 487 of file mma865x.h.

#define MMA865x_INT_CFG_DRDY_SHIFT 0

Definition at line 488 of file mma865x.h.

#define MMA865x_INT_CFG_FF_MT_MASK 0x04

Definition at line 485 of file mma865x.h.

#define MMA865x_INT_CFG_FF_MT_SHIFT 2

Definition at line 486 of file mma865x.h.

#define MMA865x_INT_CFG_FIFO_MASK 0x40

Definition at line 477 of file mma865x.h.

#define MMA865x_INT_CFG_FIFO_SHIFT 6

Definition at line 478 of file mma865x.h.

#define MMA865x_INT_CFG_LNDPRT_MASK 0x10

Definition at line 481 of file mma865x.h.

#define MMA865x_INT_CFG_LNDPRT_SHIFT 4

Definition at line 482 of file mma865x.h.

#define MMA865x_INT_CFG_PULSE_MASK 0x08

Definition at line 483 of file mma865x.h.

#define MMA865x_INT_CFG_PULSE_SHIFT 3

Definition at line 484 of file mma865x.h.

#define MMA865x_INT_CFG_TRANS_MASK 0x20

Definition at line 479 of file mma865x.h.

#define MMA865x_INT_CFG_TRANS_SHIFT 5

Definition at line 480 of file mma865x.h.

#define MMA865x_INT_EN_ASLP_MASK 0x80

Definition at line 457 of file mma865x.h.

#define MMA865x_INT_EN_ASLP_SHIFT 7

Definition at line 458 of file mma865x.h.

#define MMA865x_INT_EN_DRDY_MASK 0x01

Definition at line 469 of file mma865x.h.

#define MMA865x_INT_EN_DRDY_SHIFT 0

Definition at line 470 of file mma865x.h.

#define MMA865x_INT_EN_FF_MT_MASK 0x04

Definition at line 467 of file mma865x.h.

#define MMA865x_INT_EN_FF_MT_SHIFT 2

Definition at line 468 of file mma865x.h.

#define MMA865x_INT_EN_FIFO_MASK 0x40

Definition at line 459 of file mma865x.h.

#define MMA865x_INT_EN_FIFO_SHIFT 6

Definition at line 460 of file mma865x.h.

#define MMA865x_INT_EN_LNDPRT_MASK 0x10

Definition at line 463 of file mma865x.h.

#define MMA865x_INT_EN_LNDPRT_SHIFT 4

Definition at line 464 of file mma865x.h.

#define MMA865x_INT_EN_PULSE_MASK 0x08

Definition at line 465 of file mma865x.h.

#define MMA865x_INT_EN_PULSE_SHIFT 3

Definition at line 466 of file mma865x.h.

#define MMA865x_INT_EN_TRANS_MASK 0x20

Definition at line 461 of file mma865x.h.

#define MMA865x_INT_EN_TRANS_SHIFT 5

Definition at line 462 of file mma865x.h.

#define MMA865x_IPOL_MASK 0x02

Definition at line 450 of file mma865x.h.

#define MMA865x_IPOL_SHIFT 1

Definition at line 451 of file mma865x.h.

#define MMA865x_LAPO0_MASK 0x02

Definition at line 214 of file mma865x.h.

#define MMA865x_LAPO1_MASK 0x04

Definition at line 213 of file mma865x.h.

#define MMA865x_LAPO_MASK 0x06

Definition at line 215 of file mma865x.h.

#define MMA865x_LAPO_SHIFT 1

Definition at line 216 of file mma865x.h.

#define MMA865x_LNOISE_MASK 0x04

Definition at line 369 of file mma865x.h.

#define MMA865x_LO_MASK 0x40

Definition at line 211 of file mma865x.h.

#define MMA865x_LO_SHIFT 6

Definition at line 212 of file mma865x.h.

#define MMA865x_MMA865xQ 0x0D

Definition at line 177 of file mma865x.h.

#define MMA865x_MOD_HIGH_RES (MMA865x_MODS1_MASK)

Definition at line 434 of file mma865x.h.

#define MMA865x_MOD_LOW_NOISE (MMA865x_MODS0_MASK)

Definition at line 433 of file mma865x.h.

#define MMA865x_MOD_LOW_POWER (MMA865x_MODS1_MASK+MMA865x_MODS0_MASK)

Definition at line 435 of file mma865x.h.

#define MMA865x_MOD_NORMAL 0x00

Definition at line 432 of file mma865x.h.

#define MMA865x_MODS0_MASK 0x01

Definition at line 421 of file mma865x.h.

#define MMA865x_MODS1_MASK 0x02

Definition at line 420 of file mma865x.h.

#define MMA865x_MODS_MASK 0x03

Definition at line 424 of file mma865x.h.

#define MMA865x_MODS_SHIFT 0

Definition at line 425 of file mma865x.h.

#define MMA865x_NEWLP_MASK 0x80

Definition at line 210 of file mma865x.h.

#define MMA865x_OAE_MASK 0x40

Definition at line 261 of file mma865x.h.

#define MMA865x_OAE_SHIFT 6

Definition at line 262 of file mma865x.h.

#define MMA865x_P_L_THS0_MASK 0x08

Definition at line 247 of file mma865x.h.

#define MMA865x_P_L_THS1_MASK 0x10

Definition at line 246 of file mma865x.h.

#define MMA865x_P_L_THS2_MASK 0x20

Definition at line 245 of file mma865x.h.

#define MMA865x_P_L_THS3_MASK 0x40

Definition at line 244 of file mma865x.h.

#define MMA865x_P_L_THS4_MASK 0x80

Definition at line 243 of file mma865x.h.

#define MMA865x_P_L_THS_MASK 0xF8

Definition at line 251 of file mma865x.h.

#define MMA865x_P_L_THS_SHIFT 3

Definition at line 252 of file mma865x.h.

#define MMA865x_PEA_MASK 0x80

Definition at line 346 of file mma865x.h.

#define MMA865x_PELE_MASK 0x40

Definition at line 328 of file mma865x.h.

#define MMA865x_PELE_SHIFT 6

Definition at line 329 of file mma865x.h.

#define MMA865x_PL_EN_MASK 0x40

Definition at line 224 of file mma865x.h.

#define MMA865x_PL_EN_SHIFT 6

Definition at line 225 of file mma865x.h.

#define MMA865x_PL_OUTPUT_EN 0x01

Definition at line 491 of file mma865x.h.

#define MMA865x_POLX_MASK 0x01

Definition at line 353 of file mma865x.h.

#define MMA865x_POLY_MASK 0x02

Definition at line 352 of file mma865x.h.

#define MMA865x_POLZ_MASK 0x04

Definition at line 351 of file mma865x.h.

#define MMA865x_PP_OD_MASK 0x01

Definition at line 452 of file mma865x.h.

#define MMA865x_PP_OD_SHIFT 0

Definition at line 453 of file mma865x.h.

#define MMA865x_PTHS_MASK 0x7F

Definition at line 358 of file mma865x.h.

#define MMA865x_PTHS_SHIFT 0

Definition at line 359 of file mma865x.h.

#define MMA865x_PULSE_HPF_BYP_MASK 0x20

Definition at line 198 of file mma865x.h.

#define MMA865x_PULSE_HPF_BYP_SHIFT 5

Definition at line 199 of file mma865x.h.

#define MMA865x_PULSE_LPF_EN_MASK 0x10

Definition at line 200 of file mma865x.h.

#define MMA865x_PULSE_LPF_EN_SHIFT 4

Definition at line 201 of file mma865x.h.

#define MMA865x_PULSE_OUTPUT_EN 0x08

Definition at line 494 of file mma865x.h.

#define MMA865x_RST_MASK 0x40

Definition at line 414 of file mma865x.h.

Referenced by mma865x_Reset().

#define MMA865x_RST_SHIFT 6

Definition at line 415 of file mma865x.h.

#define MMA865x_SEL0_MASK 0x01

Definition at line 203 of file mma865x.h.

#define MMA865x_SEL1_MASK 0x02

Definition at line 202 of file mma865x.h.

#define MMA865x_SEL_MASK 0x03

Definition at line 204 of file mma865x.h.

#define MMA865x_SEL_SHIFT 0

Definition at line 205 of file mma865x.h.

#define MMA865x_SET_FIELD | ( |  | name,
|  |  | val
| ) |  | (((val)<<MMA865x_##name##_SHIFT)&(MMA865x_##name##_MASK))

Definition at line 81 of file mma865x.h.

Referenced by mma865x_SetConfig().

#define MMA865x_SLPE_MASK 0x04

Definition at line 418 of file mma865x.h.

#define MMA865x_SLPE_SHIFT 2

Definition at line 419 of file mma865x.h.

#define MMA865x_SMOD_HIGH_RES (MMA865x_SMODS1_MASK)

Definition at line 429 of file mma865x.h.

#define MMA865x_SMOD_LOW_NOISE (MMA865x_SMODS0_MASK)

Definition at line 428 of file mma865x.h.

#define MMA865x_SMOD_LOW_POWER (MMA865x_SMODS1_MASK+MMA865x_SMODS0_MASK)

Definition at line 430 of file mma865x.h.

#define MMA865x_SMOD_NORMAL 0x00

Definition at line 427 of file mma865x.h.

#define MMA865x_SMODS0_MASK 0x08

Definition at line 417 of file mma865x.h.

#define MMA865x_SMODS1_MASK 0x10

Definition at line 416 of file mma865x.h.

#define MMA865x_SMODS_MASK 0x18

Definition at line 422 of file mma865x.h.

#define MMA865x_SMODS_SHIFT 3

Definition at line 423 of file mma865x.h.

#define MMA865x_SRC_ASLP_MASK 0x80

Definition at line 166 of file mma865x.h.

#define MMA865x_SRC_DRDY_MASK 0x01

Definition at line 172 of file mma865x.h.

#define MMA865x_SRC_FF_MT_MASK 0x04

Definition at line 171 of file mma865x.h.

#define MMA865x_SRC_FIFO_MASK 0x40

Definition at line 167 of file mma865x.h.

#define MMA865x_SRC_LNDPRT_MASK 0x10

Definition at line 169 of file mma865x.h.

#define MMA865x_SRC_PULSE_MASK 0x08

Definition at line 170 of file mma865x.h.

#define MMA865x_SRC_TRANS_MASK 0x20

Definition at line 168 of file mma865x.h.

#define MMA865x_ST_MASK 0x80

Definition at line 412 of file mma865x.h.

#define MMA865x_ST_SHIFT 7

Definition at line 413 of file mma865x.h.

#define MMA865x_STANDBY 0x00

Definition at line 407 of file mma865x.h.

#define MMA865x_SYSMOD_MASK 0x03

Definition at line 157 of file mma865x.h.

#define MMA865x_SYSMOD_SLEEP 0x02

Definition at line 161 of file mma865x.h.

#define MMA865x_SYSMOD_STANDBY 0x00

Definition at line 159 of file mma865x.h.

#define MMA865x_SYSMOD_WAKE 0x01

Definition at line 160 of file mma865x.h.

#define MMA865x_TEA_MASK 0x40

Definition at line 314 of file mma865x.h.

#define MMA865x_TELE_MASK 0x10

Definition at line 299 of file mma865x.h.

#define MMA865x_TELE_SHIFT 4

Definition at line 300 of file mma865x.h.

#define MMA865x_THS0_MASK 0x01

Definition at line 291 of file mma865x.h.

#define MMA865x_THS2_MASK 0x04

Definition at line 289 of file mma865x.h.

#define MMA865x_THS3_MASK 0x08

Definition at line 288 of file mma865x.h.

#define MMA865x_THS4_MASK 0x10

Definition at line 287 of file mma865x.h.

#define MMA865x_THS5_MASK 0x20

Definition at line 286 of file mma865x.h.

#define MMA865x_THS6_MASK 0x40

Definition at line 285 of file mma865x.h.

#define MMA865x_THS_MASK 0x7F

Definition at line 292 of file mma865x.h.

#define MMA865x_THS_SHIFT 0

Definition at line 293 of file mma865x.h.

#define MMA865x_TRANS_OUTPUT_EN 0x04

Definition at line 493 of file mma865x.h.

#define MMA865x_TRIG_FF_MT_MASK 0x04

Definition at line 144 of file mma865x.h.

#define MMA865x_TRIG_LNDPRT_MASK 0x10

Definition at line 142 of file mma865x.h.

#define MMA865x_TRIG_PULSE_MASK 0x08

Definition at line 143 of file mma865x.h.

#define MMA865x_TRIG_TRANS_MASK 0x20

Definition at line 141 of file mma865x.h.

#define MMA865x_TXS1_MASK 0x02

Definition at line 290 of file mma865x.h.

#define MMA865x_WAKE_FF_MT_MASK 0x08

Definition at line 448 of file mma865x.h.

#define MMA865x_WAKE_FF_MT_SHIFT 3

Definition at line 449 of file mma865x.h.

#define MMA865x_WAKE_LNDPRT_MASK 0x20

Definition at line 444 of file mma865x.h.

#define MMA865x_WAKE_LNDPRT_SHIFT 5

Definition at line 445 of file mma865x.h.

#define MMA865x_WAKE_PULSE_MASK 0x10

Definition at line 446 of file mma865x.h.

#define MMA865x_WAKE_PULSE_SHIFT 4

Definition at line 447 of file mma865x.h.

#define MMA865x_WAKE_TRANS_MASK 0x40

Definition at line 442 of file mma865x.h.

#define MMA865x_WAKE_TRANS_SHIFT 6

Definition at line 443 of file mma865x.h.

#define MMA865x_WHOAMI_VALUE_8652 (0x4A)

Definition at line 73 of file mma865x.h.

Referenced by mma865x_CheckId().

#define MMA865x_WHOAMI_VALUE_8653 (0x5A)

Definition at line 74 of file mma865x.h.

Referenced by mma865x_CheckId().

#define MMA865x_X_TRANS_POL_MASK 0x01

Definition at line 320 of file mma865x.h.

#define MMA865x_XDPEFE_MASK 0x02

Definition at line 338 of file mma865x.h.

#define MMA865x_XDPEFE_SHIFT 1

Definition at line 339 of file mma865x.h.

#define MMA865x_XDR_MASK 0x01

Definition at line 96 of file mma865x.h.

#define MMA865x_XEFE_MASK 0x08

Definition at line 267 of file mma865x.h.

#define MMA865x_XEFE_SHIFT 3

Definition at line 268 of file mma865x.h.

#define MMA865x_XHE_MASK 0x02

Definition at line 277 of file mma865x.h.

#define MMA865x_XHP_MASK 0x01

Definition at line 278 of file mma865x.h.

#define MMA865x_XOW_MASK 0x10

Definition at line 91 of file mma865x.h.

#define MMA865x_XSPEFE_MASK 0x01

Definition at line 340 of file mma865x.h.

#define MMA865x_XSPEFE_SHIFT 0

Definition at line 341 of file mma865x.h.

#define MMA865x_XTEFE_MASK 0x02

Definition at line 305 of file mma865x.h.

#define MMA865x_XTEFE_SHIFT 1

Definition at line 306 of file mma865x.h.

#define MMA865x_XTRANSE_MASK 0x02

Definition at line 319 of file mma865x.h.

#define MMA865x_Y_TRANS_POL_MASK 0x04

Definition at line 318 of file mma865x.h.

#define MMA865x_YDPEFE_MASK 0x08

Definition at line 334 of file mma865x.h.

#define MMA865x_YDPEFE_SHIFT 3

Definition at line 335 of file mma865x.h.

#define MMA865x_YDR_MASK 0x02

Definition at line 95 of file mma865x.h.

#define MMA865x_YEFE_MASK 0x10

Definition at line 265 of file mma865x.h.

#define MMA865x_YEFE_SHIFT 4

Definition at line 266 of file mma865x.h.

#define MMA865x_YHE_MASK 0x08

Definition at line 275 of file mma865x.h.

#define MMA865x_YHP_MASK 0x04

Definition at line 276 of file mma865x.h.

#define MMA865x_YOW_MASK 0x20

Definition at line 90 of file mma865x.h.

#define MMA865x_YSPEFE_MASK 0x04

Definition at line 336 of file mma865x.h.

#define MMA865x_YSPEFE_SHIFT 2

Definition at line 337 of file mma865x.h.

#define MMA865x_YTEFE_MASK 0x04

Definition at line 303 of file mma865x.h.

#define MMA865x_YTEFE_SHIFT 2

Definition at line 304 of file mma865x.h.

#define MMA865x_YTRANSE_MASK 0x08

Definition at line 317 of file mma865x.h.

#define MMA865x_Z_TRANS_POL_MASK 0x10

Definition at line 316 of file mma865x.h.

#define MMA865x_ZDPEFE_MASK 0x20

Definition at line 330 of file mma865x.h.

#define MMA865x_ZDPEFE_SHIFT 5

Definition at line 331 of file mma865x.h.

#define MMA865x_ZDR_MASK 0x04

Definition at line 94 of file mma865x.h.

#define MMA865x_ZEFE_MASK 0x20

Definition at line 263 of file mma865x.h.

#define MMA865x_ZEFE_SHIFT 5

Definition at line 264 of file mma865x.h.

#define MMA865x_ZHE_MASK 0x20

Definition at line 273 of file mma865x.h.

#define MMA865x_ZHP_MASK 0x10

Definition at line 274 of file mma865x.h.

#define MMA865x_ZLOCK0_MASK 0x01

Definition at line 234 of file mma865x.h.

#define MMA865x_ZLOCK1_MASK 0x02

Definition at line 233 of file mma865x.h.

#define MMA865x_ZLOCK2_MASK 0x04

Definition at line 232 of file mma865x.h.

#define MMA865x_ZLOCK_MASK 0x07

Definition at line 237 of file mma865x.h.

#define MMA865x_ZLOCK_SHIFT 0

Definition at line 238 of file mma865x.h.

#define MMA865x_ZOW_MASK 0x40

Definition at line 89 of file mma865x.h.

#define MMA865x_ZSPEFE_MASK 0x10

Definition at line 332 of file mma865x.h.

#define MMA865x_ZSPEFE_SHIFT 4

Definition at line 333 of file mma865x.h.

#define MMA865x_ZTEFE_MASK 0x08

Definition at line 301 of file mma865x.h.

#define MMA865x_ZTEFE_SHIFT 3

Definition at line 302 of file mma865x.h.

#define MMA865x_ZTRANSE_MASK 0x20

Definition at line 315 of file mma865x.h.

#define MMA865x_ZYXDR_MASK 0x08

Definition at line 92 of file mma865x.h.

#define MMA865x_ZYXDR_SHIFT 3

Definition at line 93 of file mma865x.h.

#define MMA865x_ZYXOW_MASK 0x80

Definition at line 87 of file mma865x.h.

#define MMA865x_ZYXOW_SHIFT 7

Definition at line 88 of file mma865x.h.

## Enumeration Type Documentation

anonymous enum

The MMA865x types.

The MMA865x Sensor Internal Register Map.

Enumerator
MMA865x_STATUS_00 |
MMA865x_OUT_X_MSB |
MMA865x_OUT_X_LSB |
MMA865x_OUT_Y_MSB |
MMA865x_OUT_Y_lSB |
MMA865x_OUT_Z_MSB |
MMA865x_OUT_Z_LSB |
MMA865x_RSVD_0 |
MMA865x_RSVD_1 |
MMA865x_F_SETUP |
MMA865x_TRIG_CFG |
MMA865x_SYSMOD |
MMA865x_INT_SOURCE |
MMA865x_WHO_AM_I |
MMA865x_XYZ_DATA_CFG |
MMA865x_HP_FILTER_CUTOFF |
MMA865x_PL_STATUS |
MMA865x_PL_CFG |
MMA865x_PL_COUNT |
MMA865x_PL_BF_ZCOMP |
MMA865x_PL_P_L_THS |
MMA865x_FF_MT_CFG |
MMA865x_FF_MT_SRC |
MMA865x_FF_MT_THS |
MMA865x_FF_MT_COUNT |
MMA865x_RSVD_2 |
MMA865x_RSVD_3 |
MMA865x_RSVD_4 |
MMA865x_RSVD_5 |
MMA865x_TRANSIENT_CFG |
MMA865x_TRANSIENT_SRC |
MMA865x_TRANSIENT_THS |
MMA865x_TRANSIENT_COUNT |
MMA865x_PULSE_CFG |
MMA865x_PULSE_SRC |
MMA865x_PULSE_THSX |
MMA865x_PULSE_THSY |
MMA865x_PULSE_THSZ |
MMA865x_PULSE_TMLT |
MMA865x_PULSE_LTCY |
MMA865x_PULSE_WIND |
MMA865x_ASLP_COUNT |
MMA865x_CTRL_REG1 |
MMA865x_CTRL_REG2 |
MMA865x_CTRL_REG3 |
MMA865x_CTRL_REG4 |
MMA865x_CTRL_REG5 |
MMA865x_OFF_X |
MMA865x_OFF_Y |
MMA865x_OFF_Z |

Definition at line 20 of file mma865x.h.

anonymous enum

Enumerator
MMA865x_SUCCESS |
MMA865x_DATA_OVERWRITE |
MMA865x_ERROR |

Definition at line 503 of file mma865x.h.

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