Sensorian  1.0
C API Reference Guide Library
FXOS8700CQ.h File Reference

Accelerometer / Magnetometer driver header. More...

#include <stdint.h>
#include "MemoryMap.h"

Go to the source code of this file.

Data Structures

struct  rawdata
 Structure encapsulating triple axis raw data. More...
 

Macros

#define FXOS8700CQ_ADDRESS   0x1E
 
#define ZYXOW_MASK   0x80
 
#define ZOW_MASK   0x40
 
#define YOW_MASK   0x20
 
#define XOW_MASK   0x10
 
#define ZYXDR_MASK   0x08
 
#define ZDR_MASK   0x04
 
#define YDR_MASK   0x02
 
#define XDR_MASK   0x01
 
#define F_OVF_MASK   0x80
 
#define F_WMRK_FLAG_MASK   0x40
 
#define F_CNT5_MASK   0x20
 
#define F_CNT4_MASK   0x10
 
#define F_CNT3_MASK   0x08
 
#define F_CNT2_MASK   0x04
 
#define F_CNT1_MASK   0x02
 
#define F_CNT0_MASK   0x01
 
#define F_CNT_MASK   0x3F
 
#define OUT_X_MSB_REG   0x01
 
#define OUT_X_LSB_REG   0x02
 
#define OUT_Y_MSB_REG   0x03
 
#define OUT_Y_LSB_REG   0x04
 
#define OUT_Z_MSB_REG   0x05
 
#define OUT_Z_LSB_REG   0x06
 
#define F_MODE1_MASK   0x80
 
#define F_MODE0_MASK   0x40
 
#define F_WMRK5_MASK   0x20
 
#define F_WMRK4_MASK   0x10
 
#define F_WMRK3_MASK   0x08
 
#define F_WMRK2_MASK   0x04
 
#define F_WMRK1_MASK   0x02
 
#define F_WMRK0_MASK   0x01
 
#define F_MODE_MASK   0xC0
 
#define F_WMRK_MASK   0x3F
 
#define F_MODE_DISABLED   0x00
 
#define F_MODE_CIRCULAR   (F_MODE0_MASK)
 
#define F_MODE_FILL   (F_MODE1_MASK)
 
#define F_MODE_TRIGGER   (F_MODE1_MASK+F_MODE0_MASK)
 
#define TRIG_TRANS_MASK   0x20
 
#define TRIG_LNDPRT_MASK   0x10
 
#define TRIG_PULSE_MASK   0x08
 
#define TRIG_FF_MT_MASK   0x04
 
#define FGERR_MASK   0x80
 
#define FGT_4_MASK   0x40
 
#define FGT_3_MASK   0x20
 
#define FGT_2_MASK   0x10
 
#define FGT_1_MASK   0x08
 
#define FGT_0_MASK   0x04
 
#define FGT_MASK   0x7C
 
#define SYSMOD1_MASK   0x02
 
#define SYSMOD0_MASK   0x01
 
#define SYSMOD_MASK   0x03
 
#define SYSMOD_STANDBY   0x00
 
#define SYSMOD_WAKE   (SYSMOD0_MASK)
 
#define SYSMOD_SLEEP   (SYSMOD1_MASK)
 
#define SRC_ASLP_MASK   0x80
 
#define SRC_FIFO_MASK   0x40
 
#define SRC_TRANS_MASK   0x20
 
#define SRC_LNDPRT_MASK   0x10
 
#define SRC_PULSE_MASK   0x08
 
#define SRC_FF_MT_MASK   0x04
 
#define SRC_DRDY_MASK   0x01
 
#define FXOS8700CQ   0xC7
 
#define MXOS8700CQ   0xC4
 
#define HPF_OUT_MASK   0x10
 
#define FS1_MASK   0x02
 
#define FS0_MASK   0x01
 
#define FS_MASK   0x03
 
#define FULL_SCALE_2G   0x00
 
#define FULL_SCALE_4G   (FS0_MASK)
 
#define FULL_SCALE_8G   (FS1_MASK)
 
#define PULSE_HPF_BYP_MASK   0x20
 
#define PULSE_LPF_EN_MASK   0x10
 
#define SEL1_MASK   0x02
 
#define SEL0_MASK   0x01
 
#define SEL_MASK   0x03
 
#define NEWLP_MASK   0x80
 
#define LO_MASK   0x40
 
#define LAPO1_MASK   0x04
 
#define LAPO0_MASK   0x02
 
#define BAFRO_MASK   0x01
 
#define LAPO_MASK   0x06
 
#define DBCNTM_MASK   0x80
 
#define PL_EN_MASK   0x40
 
#define BKFR1_MASK   0x80
 
#define BKFR0_MASK   0x40
 
#define ZLOCK2_MASK   0x04
 
#define ZLOCK1_MASK   0x02
 
#define ZLOCK0_MASK   0x01
 
#define BKFR_MASK   0xC0
 
#define ZLOCK_MASK   0x07
 
#define PL_P_L_THS_REG   0x14
 
#define P_L_THS4_MASK   0x80
 
#define P_L_THS3_MASK   0x40
 
#define P_L_THS2_MASK   0x20
 
#define P_L_THS1_MASK   0x10
 
#define P_L_THS0_MASK   0x08
 
#define HYS2_MASK   0x04
 
#define HYS1_MASK   0x02
 
#define HYS0_MASK   0x01
 
#define P_L_THS_MASK   0xF8
 
#define HYS_MASK   0x07
 
#define FF_MT_CFG_REG   0x15
 
#define ELE_MASK   0x80
 
#define OAE_MASK   0x40
 
#define ZEFE_MASK   0x20
 
#define YEFE_MASK   0x10
 
#define XEFE_MASK   0x08
 
#define FF_MT_SRC_REG   0x16
 
#define EA_MASK   0x80
 
#define ZHE_MASK   0x20
 
#define ZHP_MASK   0x10
 
#define YHE_MASK   0x08
 
#define YHP_MASK   0x04
 
#define XHE_MASK   0x02
 
#define XHP_MASK   0x01
 
#define FT_MT_THS_REG   0x17
 
#define TRANSIENT_THS_REG   0x1F
 
#define DBCNTM_MASK   0x80
 
#define THS6_MASK   0x40
 
#define THS5_MASK   0x20
 
#define THS4_MASK   0x10
 
#define THS3_MASK   0x08
 
#define THS2_MASK   0x04
 
#define TXS1_MASK   0x02
 
#define THS0_MASK   0x01
 
#define THS_MASK   0x7F
 
#define FF_MT_COUNT_REG   0x18
 
#define TELE_MASK   0x10
 
#define ZTEFE_MASK   0x08
 
#define YTEFE_MASK   0x04
 
#define XTEFE_MASK   0x02
 
#define HPF_BYP_MASK   0x01
 
#define TEA_MASK   0x40
 
#define ZTRANSE_MASK   0x20
 
#define Z_TRANS_POL_MASK   0x10
 
#define YTRANSE_MASK   0x08
 
#define Y_TRANS_POL_MASK   0x04
 
#define XTRANSE_MASK   0x02
 
#define X_TRANS_POL_MASK   0x01
 
#define DPA_MASK   0x80
 
#define PELE_MASK   0x40
 
#define ZDPEFE_MASK   0x20
 
#define ZSPEFE_MASK   0x10
 
#define YDPEFE_MASK   0x08
 
#define YSPEFE_MASK   0x04
 
#define XDPEFE_MASK   0x02
 
#define XSPEFE_MASK   0x01
 
#define PEA_MASK   0x80
 
#define AXZ_MASK   0x40
 
#define AXY_MASK   0x20
 
#define AXX_MASK   0x10
 
#define DPE_MASK   0x08
 
#define POLZ_MASK   0x04
 
#define POLY_MASK   0x02
 
#define POLX_MASK   0x01
 
#define PTHS_MASK   0x7F
 
#define ASLP_RATE1_MASK   0x80
 
#define ASLP_RATE0_MASK   0x40
 
#define DR2_MASK   0x20
 
#define DR1_MASK   0x10
 
#define DR0_MASK   0x08
 
#define LNOISE_MASK   0x04
 
#define FREAD_MASK   0x02
 
#define ACTIVE_MASK   0x01
 
#define ASLP_RATE_MASK   0xC0
 
#define DR_MASK   0x38
 
#define ASLP_RATE_20MS   0x00
 
#define ASLP_RATE_80MS   (ASLP_RATE0_MASK)
 
#define ASLP_RATE_160MS   (ASLP_RATE1_MASK)
 
#define ASLP_RATE_640MS   (ASLP_RATE1_MASK+ASLP_RATE0_MASK)
 
#define ASLP_RATE_50HZ   (ASLP_RATE_20MS)
 
#define ASLP_RATE_12_5HZ   (ASLP_RATE_80MS)
 
#define ASLP_RATE_6_25HZ   (ASLP_RATE_160MS)
 
#define ASLP_RATE_1_56HZ   (ASLP_RATE_640MS)
 
#define HYB_ASLP_RATE_25HZ   (ASLP_RATE_20MS)
 
#define HYB_ASLP_RATE_6_25HZ   (ASLP_RATE_80MS)
 
#define HYB_ASLP_RATE_1_56HZ   (ASLP_RATE_160MS)
 
#define HYB_ASLP_RATE_0_8HZ   (ASLP_RATE_640MS)
 
#define DATA_RATE_1250US   0x00
 
#define DATA_RATE_2500US   (DR0_MASK)
 
#define DATA_RATE_5MS   (DR1_MASK)
 
#define DATA_RATE_10MS   (DR1_MASK+DR0_MASK)
 
#define DATA_RATE_20MS   (DR2_MASK)
 
#define DATA_RATE_80MS   (DR2_MASK+DR0_MASK)
 
#define DATA_RATE_160MS   (DR2_MASK+DR1_MASK)
 
#define DATA_RATE_640MS   (DR2_MASK+DR1_MASK+DR0_MASK)
 
#define DATA_RATE_800HZ   (DATA_RATE_1250US)
 
#define DATA_RATE_400HZ   (DATA_RATE_2500US)
 
#define DATA_RATE_200HZ   (DATA_RATE_5MS)
 
#define DATA_RATE_100HZ   (DATA_RATE_10MS)
 
#define DATA_RATE_50HZ   (DATA_RATE_20MS)
 
#define DATA_RATE_12_5HZ   (DATA_RATE_80MS)
 
#define DATA_RATE_6_25HZ   (DATA_RATE_160MS)
 
#define DATA_RATE_1_56HZ   (DATA_RATE_640MS)
 
#define HYB_DATA_RATE_400HZ   (DATA_RATE_1250US)
 
#define HYB_DATA_RATE_200HZ   (DATA_RATE_2500US)
 
#define HYB_DATA_RATE_100HZ   (DATA_RATE_5MS)
 
#define HYB_DATA_RATE_50HZ   (DATA_RATE_10MS)
 
#define HYB_DATA_RATE_25HZ   (DATA_RATE_20MS)
 
#define HYB_DATA_RATE_6_25HZ   (DATA_RATE_80MS)
 
#define HYB_DATA_RATE_3_15HZ   (DATA_RATE_160MS)
 
#define HYB_DATA_RATE_0_8HZ   (DATA_RATE_640MS)
 
#define ACTIVE   (ACTIVE_MASK)
 
#define STANDBY   0x00
 
#define CTRL_REG2   0x2B
 
#define ST_MASK   0x80
 
#define RST_MASK   0x40
 
#define SMODS1_MASK   0x10
 
#define SMODS0_MASK   0x08
 
#define SLPE_MASK   0x04
 
#define MODS1_MASK   0x02
 
#define MODS0_MASK   0x01
 
#define SMODS_MASK   0x18
 
#define MODS_MASK   0x03
 
#define SMOD_NORMAL   0x00
 
#define SMOD_LOW_NOISE   (SMODS0_MASK)
 
#define SMOD_HIGH_RES   (SMODS1_MASK)
 
#define SMOD_LOW_POWER   (SMODS1_MASK+SMODS0_MASK)
 
#define MOD_NORMAL   0x00
 
#define MOD_LOW_NOISE   (MODS0_MASK)
 
#define MOD_HIGH_RES   (MODS1_MASK)
 
#define MOD_LOW_POWER   (MODS1_MASK+MODS0_MASK)
 
#define FIFO_GATE_MASK   0x80
 
#define WAKE_TRANS_MASK   0x40
 
#define WAKE_LNDPRT_MASK   0x20
 
#define WAKE_PULSE_MASK   0x10
 
#define WAKE_FF_MT_MASK   0x08
 
#define IPOL_MASK   0x02
 
#define PP_OD_MASK   0x01
 
#define INT_EN_ASLP_MASK   0x80
 
#define INT_EN_FIFO_MASK   0x40
 
#define INT_EN_TRANS_MASK   0x20
 
#define INT_EN_LNDPRT_MASK   0x10
 
#define INT_EN_PULSE_MASK   0x08
 
#define INT_EN_FF_MT_MASK   0x04
 
#define INT_EN_DRDY_MASK   0x01
 
#define INT_CFG_ASLP_MASK   0x80
 
#define INT_CFG_FIFO_MASK   0x40
 
#define INT_CFG_TRANS_MASK   0x20
 
#define INT_CFG_LNDPRT_MASK   0x10
 
#define INT_CFG_PULSE_MASK   0x08
 
#define INT_CFG_FF_MT_MASK   0x04
 
#define INT_CFG_DRDY_MASK   0x01
 
#define OFF_X_REG   0x2F
 
#define OFF_Y_REG   0x30
 
#define OFF_Z_REG   0x31
 
#define M_ACAL_MASK   0x80
 
#define M_RST_MASK   0x40
 
#define M_OST_MASK   0x20
 
#define M_OSR2_MASK   0x10
 
#define M_OSR1_MASK   0x08
 
#define M_OSR0_MASK   0x04
 
#define M_HMS1_MASK   0x02
 
#define M_HMS0_MASK   0x01
 
#define M_OSR_MASK   0x1C
 
#define M_HMS_MASK   0x03
 
#define M_OSR_1_56_HZ   0x00
 
#define M_OSR_6_25_HZ   M_OSR0_MASK
 
#define M_OSR_12_5_HZ   M_OSR1_MASK
 
#define M_OSR_50_HZ   M_OSR1_MASK+M_OSR0_MASK
 
#define M_OSR_100_HZ   M_OSR2_MASK
 
#define M_OSR_200_HZ   M_OSR2_MASK+M_OSR0_MASK
 
#define M_OSR_400_HZ   M_OSR2_MASK+M_OSR1_MASK
 
#define M_OSR_800_HZ   M_OSR2_MASK+M_OSR1_MASK+M_OSR0_MASK
 
#define ACCEL_ACTIVE   0x00
 
#define MAG_ACTIVE   M_HMS0_MASK
 
#define HYBRID_ACTIVE   (M_HMS1_MASK | M_HMS0_MASK)
 
#define M_HYB_AUTOINC_MASK   0x20
 
#define M_MAXMIN_DIS_MASK   0x10
 
#define M_MAXMIN_DIS_THS_MASK   0x08
 
#define M_MAXMIN_RST_MASK   0x04
 
#define M_RST_CNT1_MASK   0x02
 
#define M_RST_CNT0_MASK   0x01
 
#define RST_ODR_CYCLE   0x00
 
#define RST_16_ODR_CYCLE   M_RST_CNT0_MASK
 
#define RST_512_ODR_CYCLE   M_RST_CNT1_MASK
 
#define RST_DISABLED   M_RST_CNT1_MASK+M_RST_CNT0_MASK
 
#define M_RAW_MASK   0x80
 
#define M_ASLP_OS_2_MASK   0x40
 
#define M_ASLP_OS_1_MASK   0x20
 
#define M_ASLP_OS_0_MASK   0x10
 
#define M_THS_XYZ_MASK   0x08
 
#define M_ST_Z_MASK   0x04
 
#define M_ST_XY1_MASK   0x02
 
#define M_ST_XY0_MASK   0x01
 
#define M_ASLP_OSR_MASK   0x70
 
#define M_ST_XY_MASK   0x03
 
#define M_ASLP_OSR_1_56_HZ   0x00
 
#define M_ASLP_OSR_6_25_HZ   M_ASLP_OS_0_MASK
 
#define M_ASLP_OSR_12_5_HZ   M_ASLP_OS_1_MASK
 
#define M_ASLP_OSR_50_HZ   M_ASLP_OS_1_MASK+M_ASLP_OS_0_MASK
 
#define M_ASLP_OSR_100_HZ   M_ASLP_OS_2_MASK
 
#define M_ASLP_OSR_200_HZ   M_ASLP_OS_2_MASK+M_ASLP_OS_0_MASK
 
#define M_ASLP_OSR_400_HZ   M_ASLP_OS_2_MASK+M_ASLP_OS_1_MASK
 
#define M_ASLP_OSR_800_HZ   M_ASLP_OS_2_MASK+M_ASLP_OS_1_MASK+M_ASLP_OS_0_MASK
 
#define M_INT_SOURCE   0x5E
 
#define SRC_M_DRDY_MASK   0x04
 
#define SRC_M_VECM_MASK   0x02
 
#define SRC_M_THS_MASK   0x01
 
#define A_VECM_INIT_CFG_MASK   0x40
 
#define A_VECM_INIT_EN_MASK   0x20
 
#define A_VECM_WAKE_EN_MASK   0x10
 
#define A_VECM_EN_MASK   0x08
 
#define A_VECM_UPDM_MASK   0x04
 
#define A_VECM_INITM_MASK   0x02
 
#define A_VECM_ELE_MASK   0x01
 
#define A_VECM_DBCNTM_MASK   0x80
 
#define M_VECM_INIT_CFG_MASK   0x40
 
#define M_VECM_INIT_EN_MASK   0x20
 
#define M_VECM_WAKE_EN_MASK   0x10
 
#define M_VECM_EN_MASK   0x08
 
#define M_VECM_UPDM_MASK   0x04
 
#define M_VECM_INITM_MASK   0x02
 
#define M_VECM_ELE_MASK   0x01
 
#define M_VECM_DBCNTM_MASK   0x80
 
#define A_FFMT_THS_XYZ_EN_MASK   0x80
 
#define A_FFMT_THS_X_LSB_MASK   0xFC
 
#define A_FFMT_THS_Y_EN_MASK   0x80
 
#define A_FFMT_THS_Y_LSB_MASK   0xFC
 
#define A_FFMT_THS_Z_EN_MASK   0x80
 
#define A_FFMT_THS_Z_LSB_MASK   0xFC
 
#define FXOS8700CQ_WHOAMI_VAL   0xC7
 
#define FXOS8700CQ_READ_LEN   12
 
#define UINT14_MAX   16383
 

Typedefs

typedef enum mode_t mode_t
 
typedef enum range_t range_t
 
typedef enum ACC_orientation_t ACC_orientation_t
 
typedef struct rawdata rawdata_t
 Structure encapsulating triple axis raw data. More...
 

Enumerations

enum  mode_t {
  DISABLED =0x00, BUFFER =0x01, OVERFLOW =0x10, TRIGGERED =0x11,
  DISABLED =0x00, BUFFER =0x01, OVERFLOW =0x10, TRIGGERED =0x11,
  DISABLED =0x00, BUFFER =0x01, OVERFLOW =0x10, TRIGGERED =0x11
}
 
enum  range_t {
  SCALE2G =0x00, SCALE4G =0x01, SCALE8G =0x10, SCALE2G =0x00,
  SCALE4G =0x01, SCALE8G =0x10, SCALE2G =0x00, SCALE4G =0x01,
  SCALE8G =0x10
}
 
enum  ACC_orientation_t {
  PORT_UP_FRONT = 0, PORT_UP_BACK, PORT_DOWN_FRONT, PORT_DOWN_BACK,
  LAND_LEFT_FRONT, LAND_LEFT_BACK, LAND_RIGHT_FRONT, LAND_RIGHT_BACK,
  PORT_UP_FRONT = 0, PORT_UP_BACK, PORT_DOWN_FRONT, PORT_DOWN_BACK,
  LAND_LEFT_FRONT, LAND_LEFT_BACK, LAND_RIGHT_FRONT, LAND_RIGHT_BACK,
  PORT_UP_FRONT = 0, PORT_UP_BACK, PORT_DOWN_FRONT, PORT_DOWN_BACK,
  LAND_LEFT_FRONT, LAND_LEFT_BACK, LAND_RIGHT_FRONT, LAND_RIGHT_BACK
}
 

Functions

void FXOS8700CQ_Initialize (void)
 Initialize FXOS8700CQ, configure for an output rate of 200Hz with a +/- 2g scale. More...
 
char FXOS8700CQ_ReadStatusReg (void)
 Return the value of the status register. More...
 
void FXOS8700CQ_ActiveMode (void)
 Starts up the sensor in Active mode. More...
 
char FXOS8700CQ_StandbyMode (void)
 Starts up the sensor in Active mode. More...
 
void FXOS8700CQ_HybridMode (void)
 Configure the sensor in hybrid mode both the accelerometer and the magnetometer are active for data output. More...
 
char FXOS8700CQ_GetChipMode (void)
 Returns current mode of the chip. More...
 
char FXOS8700CQ_ID (void)
 Returns the chip ID. More...
 
void FXOS8700CQ_ConfigureAccelerometer (void)
 Configure the accelerometer for data output. More...
 
void FXOS8700CQ_PollAccelerometer (rawdata_t *accel_data)
 Accelerometer data is left justified. More...
 
void FXOS8700CQ_HighPassFilter (char status)
 Enables or disables higpass filter on accelerometer data. More...
 
void FXOS8700CQ_FullScaleRange (range_t range)
 Configures the full scale range of the Accelerometer. More...
 
void FXOS8700CQ_SetAccelerometerDynamicRange (range_t range)
 Returns current mode of the chip. More...
 
void FXOS8700CQ_ConfigureMagnetometer (void)
 Configure the magnetometer for data output. More...
 
void FXOS8700CQ_PollMagnetometer (rawdata_t *mag_data)
 Return the raw magnetometer data. More...
 
char FXOS8700CQ_MagnetometerStatus (void)
 Get magnetometer status. More...
 
void FXOS8700CQ_GetData (rawdata_t *accel_data, rawdata_t *magn_data)
 Get raw data from both accelerometer and magnetometer. More...
 
void FXOS8700CQ_FIFOMode (mode_t mode)
 Returns current mode of the chip. More...
 
void FXOS8700CQ_SetODR (char DataRateValue)
 Set output data rate. More...
 
char FXOS8700CQ_GetODR (void)
 Get output data rate. More...
 
char FXOS8700CQ_GetTemperature (void)
 Returns the silicon die chip temperature. More...
 
char FXOS8700CQ_GetOrientation (void)
 Returns current mode of the chip. More...
 
void FXOS8700CQ_ConfigureOrientation (void)
 Configure Orientation mode. More...
 
void FXOS8700CQ_ConfigureGenericTapMode (void)
 Configure Single Tap mode. More...
 
void FXOS8700CQ_ConfigureSingleTapMode (void)
 Configure Single Tap mode. More...
 
void FXOS8700CQ_ConfigureDoubleTapMode (void)
 DoubleTap_LowPowerMode_NoLPF_400HzODR. More...
 
void FXOS8700CQ_WriteByte (char reg, char value)
 Writes a value to a register. More...
 
void FXOS8700CQ_WriteByteArray (char reg, char *buffer, char value)
 Writes an array of bytes to the sensor. More...
 
char FXOS8700CQ_ReadByte (char reg)
 Starts up the sensor in Active mode. More...
 
void FXOS8700CQ_ReadByteArray (char reg, char *buffer, unsigned int length)
 Read a number of contigous bytes from the chip. More...
 

Detailed Description

Accelerometer / Magnetometer driver header.

Author
D.Qendri
Date
30 May 2015

Definition in file FXOS8700CQ.h.

Macro Definition Documentation

#define A_FFMT_THS_X_LSB_MASK   0xFC

Definition at line 491 of file FXOS8700CQ.h.

#define A_FFMT_THS_XYZ_EN_MASK   0x80

Definition at line 490 of file FXOS8700CQ.h.

#define A_FFMT_THS_Y_EN_MASK   0x80

Definition at line 497 of file FXOS8700CQ.h.

#define A_FFMT_THS_Y_LSB_MASK   0xFC

Definition at line 498 of file FXOS8700CQ.h.

#define A_FFMT_THS_Z_EN_MASK   0x80

Definition at line 504 of file FXOS8700CQ.h.

#define A_FFMT_THS_Z_LSB_MASK   0xFC

Definition at line 505 of file FXOS8700CQ.h.

#define A_VECM_DBCNTM_MASK   0x80

Definition at line 466 of file FXOS8700CQ.h.

#define A_VECM_ELE_MASK   0x01

Definition at line 460 of file FXOS8700CQ.h.

#define A_VECM_EN_MASK   0x08

Definition at line 457 of file FXOS8700CQ.h.

#define A_VECM_INIT_CFG_MASK   0x40

Definition at line 454 of file FXOS8700CQ.h.

#define A_VECM_INIT_EN_MASK   0x20

Definition at line 455 of file FXOS8700CQ.h.

#define A_VECM_INITM_MASK   0x02

Definition at line 459 of file FXOS8700CQ.h.

#define A_VECM_UPDM_MASK   0x04

Definition at line 458 of file FXOS8700CQ.h.

#define A_VECM_WAKE_EN_MASK   0x10

Definition at line 456 of file FXOS8700CQ.h.

#define ACCEL_ACTIVE   0x00

Definition at line 395 of file FXOS8700CQ.h.

#define ACTIVE   (ACTIVE_MASK)

Definition at line 309 of file FXOS8700CQ.h.

#define ACTIVE_MASK   0x01

Definition at line 263 of file FXOS8700CQ.h.

#define ASLP_RATE0_MASK   0x40

Definition at line 257 of file FXOS8700CQ.h.

#define ASLP_RATE1_MASK   0x80

Definition at line 256 of file FXOS8700CQ.h.

#define ASLP_RATE_12_5HZ   (ASLP_RATE_80MS)

Definition at line 273 of file FXOS8700CQ.h.

#define ASLP_RATE_160MS   (ASLP_RATE1_MASK)

Definition at line 269 of file FXOS8700CQ.h.

#define ASLP_RATE_1_56HZ   (ASLP_RATE_640MS)

Definition at line 275 of file FXOS8700CQ.h.

#define ASLP_RATE_20MS   0x00

Definition at line 267 of file FXOS8700CQ.h.

#define ASLP_RATE_50HZ   (ASLP_RATE_20MS)

Definition at line 272 of file FXOS8700CQ.h.

#define ASLP_RATE_640MS   (ASLP_RATE1_MASK+ASLP_RATE0_MASK)

Definition at line 270 of file FXOS8700CQ.h.

#define ASLP_RATE_6_25HZ   (ASLP_RATE_160MS)

Definition at line 274 of file FXOS8700CQ.h.

#define ASLP_RATE_80MS   (ASLP_RATE0_MASK)

Definition at line 268 of file FXOS8700CQ.h.

#define ASLP_RATE_MASK   0xC0

Definition at line 264 of file FXOS8700CQ.h.

#define AXX_MASK   0x10

Definition at line 247 of file FXOS8700CQ.h.

#define AXY_MASK   0x20

Definition at line 246 of file FXOS8700CQ.h.

#define AXZ_MASK   0x40

Definition at line 245 of file FXOS8700CQ.h.

#define BAFRO_MASK   0x01

Definition at line 141 of file FXOS8700CQ.h.

#define BKFR0_MASK   0x40

Definition at line 152 of file FXOS8700CQ.h.

#define BKFR1_MASK   0x80

Definition at line 151 of file FXOS8700CQ.h.

#define BKFR_MASK   0xC0

Definition at line 156 of file FXOS8700CQ.h.

#define CTRL_REG2   0x2B

Definition at line 313 of file FXOS8700CQ.h.

#define DATA_RATE_100HZ   (DATA_RATE_10MS)

Definition at line 294 of file FXOS8700CQ.h.

#define DATA_RATE_10MS   (DR1_MASK+DR0_MASK)

Definition at line 285 of file FXOS8700CQ.h.

#define DATA_RATE_1250US   0x00

Definition at line 282 of file FXOS8700CQ.h.

#define DATA_RATE_12_5HZ   (DATA_RATE_80MS)

Definition at line 296 of file FXOS8700CQ.h.

#define DATA_RATE_160MS   (DR2_MASK+DR1_MASK)

Definition at line 288 of file FXOS8700CQ.h.

#define DATA_RATE_1_56HZ   (DATA_RATE_640MS)

Definition at line 298 of file FXOS8700CQ.h.

#define DATA_RATE_200HZ   (DATA_RATE_5MS)

Definition at line 293 of file FXOS8700CQ.h.

#define DATA_RATE_20MS   (DR2_MASK)

Definition at line 286 of file FXOS8700CQ.h.

#define DATA_RATE_2500US   (DR0_MASK)

Definition at line 283 of file FXOS8700CQ.h.

#define DATA_RATE_400HZ   (DATA_RATE_2500US)

Definition at line 292 of file FXOS8700CQ.h.

#define DATA_RATE_50HZ   (DATA_RATE_20MS)

Definition at line 295 of file FXOS8700CQ.h.

#define DATA_RATE_5MS   (DR1_MASK)

Definition at line 284 of file FXOS8700CQ.h.

#define DATA_RATE_640MS   (DR2_MASK+DR1_MASK+DR0_MASK)

Definition at line 289 of file FXOS8700CQ.h.

#define DATA_RATE_6_25HZ   (DATA_RATE_160MS)

Definition at line 297 of file FXOS8700CQ.h.

#define DATA_RATE_800HZ   (DATA_RATE_1250US)

Definition at line 291 of file FXOS8700CQ.h.

#define DATA_RATE_80MS   (DR2_MASK+DR0_MASK)

Definition at line 287 of file FXOS8700CQ.h.

#define DBCNTM_MASK   0x80

Definition at line 197 of file FXOS8700CQ.h.

#define DBCNTM_MASK   0x80

Definition at line 197 of file FXOS8700CQ.h.

#define DPA_MASK   0x80

Definition at line 232 of file FXOS8700CQ.h.

#define DPE_MASK   0x08

Definition at line 248 of file FXOS8700CQ.h.

#define DR0_MASK   0x08

Definition at line 260 of file FXOS8700CQ.h.

#define DR1_MASK   0x10

Definition at line 259 of file FXOS8700CQ.h.

#define DR2_MASK   0x20

Definition at line 258 of file FXOS8700CQ.h.

#define DR_MASK   0x38

Definition at line 265 of file FXOS8700CQ.h.

#define EA_MASK   0x80

Definition at line 185 of file FXOS8700CQ.h.

#define ELE_MASK   0x80

Definition at line 176 of file FXOS8700CQ.h.

#define F_CNT0_MASK   0x01

Definition at line 55 of file FXOS8700CQ.h.

#define F_CNT1_MASK   0x02

Definition at line 54 of file FXOS8700CQ.h.

#define F_CNT2_MASK   0x04

Definition at line 53 of file FXOS8700CQ.h.

#define F_CNT3_MASK   0x08

Definition at line 52 of file FXOS8700CQ.h.

#define F_CNT4_MASK   0x10

Definition at line 51 of file FXOS8700CQ.h.

#define F_CNT5_MASK   0x20

Definition at line 50 of file FXOS8700CQ.h.

#define F_CNT_MASK   0x3F

Definition at line 56 of file FXOS8700CQ.h.

#define F_MODE0_MASK   0x40

Definition at line 68 of file FXOS8700CQ.h.

#define F_MODE1_MASK   0x80

Definition at line 67 of file FXOS8700CQ.h.

#define F_MODE_CIRCULAR   (F_MODE0_MASK)

Definition at line 79 of file FXOS8700CQ.h.

#define F_MODE_DISABLED   0x00

Definition at line 78 of file FXOS8700CQ.h.

#define F_MODE_FILL   (F_MODE1_MASK)

Definition at line 80 of file FXOS8700CQ.h.

#define F_MODE_MASK   0xC0

Definition at line 75 of file FXOS8700CQ.h.

#define F_MODE_TRIGGER   (F_MODE1_MASK+F_MODE0_MASK)

Definition at line 81 of file FXOS8700CQ.h.

#define F_OVF_MASK   0x80

Definition at line 48 of file FXOS8700CQ.h.

#define F_WMRK0_MASK   0x01

Definition at line 74 of file FXOS8700CQ.h.

#define F_WMRK1_MASK   0x02

Definition at line 73 of file FXOS8700CQ.h.

#define F_WMRK2_MASK   0x04

Definition at line 72 of file FXOS8700CQ.h.

#define F_WMRK3_MASK   0x08

Definition at line 71 of file FXOS8700CQ.h.

#define F_WMRK4_MASK   0x10

Definition at line 70 of file FXOS8700CQ.h.

#define F_WMRK5_MASK   0x20

Definition at line 69 of file FXOS8700CQ.h.

#define F_WMRK_FLAG_MASK   0x40

Definition at line 49 of file FXOS8700CQ.h.

#define F_WMRK_MASK   0x3F

Definition at line 76 of file FXOS8700CQ.h.

#define FF_MT_CFG_REG   0x15

Definition at line 174 of file FXOS8700CQ.h.

#define FF_MT_COUNT_REG   0x18

Definition at line 209 of file FXOS8700CQ.h.

#define FF_MT_SRC_REG   0x16

Definition at line 183 of file FXOS8700CQ.h.

#define FGERR_MASK   0x80

Definition at line 90 of file FXOS8700CQ.h.

#define FGT_0_MASK   0x04

Definition at line 95 of file FXOS8700CQ.h.

#define FGT_1_MASK   0x08

Definition at line 94 of file FXOS8700CQ.h.

#define FGT_2_MASK   0x10

Definition at line 93 of file FXOS8700CQ.h.

#define FGT_3_MASK   0x20

Definition at line 92 of file FXOS8700CQ.h.

#define FGT_4_MASK   0x40

Definition at line 91 of file FXOS8700CQ.h.

#define FGT_MASK   0x7C

Definition at line 96 of file FXOS8700CQ.h.

#define FIFO_GATE_MASK   0x80

Definition at line 337 of file FXOS8700CQ.h.

#define FREAD_MASK   0x02

Definition at line 262 of file FXOS8700CQ.h.

#define FS0_MASK   0x01

Definition at line 121 of file FXOS8700CQ.h.

#define FS1_MASK   0x02

Definition at line 120 of file FXOS8700CQ.h.

#define FS_MASK   0x03

Definition at line 122 of file FXOS8700CQ.h.

#define FT_MT_THS_REG   0x17

Definition at line 194 of file FXOS8700CQ.h.

#define FULL_SCALE_2G   0x00

Definition at line 124 of file FXOS8700CQ.h.

#define FULL_SCALE_4G   (FS0_MASK)

Definition at line 125 of file FXOS8700CQ.h.

#define FULL_SCALE_8G   (FS1_MASK)

Definition at line 126 of file FXOS8700CQ.h.

#define FXOS8700CQ   0xC7

Definition at line 115 of file FXOS8700CQ.h.

#define FXOS8700CQ_ADDRESS   0x1E

Definition at line 35 of file FXOS8700CQ.h.

#define FXOS8700CQ_READ_LEN   12

Definition at line 508 of file FXOS8700CQ.h.

#define FXOS8700CQ_WHOAMI_VAL   0xC7

Definition at line 507 of file FXOS8700CQ.h.

#define HPF_BYP_MASK   0x01

Definition at line 217 of file FXOS8700CQ.h.

#define HPF_OUT_MASK   0x10

Definition at line 119 of file FXOS8700CQ.h.

#define HYB_ASLP_RATE_0_8HZ   (ASLP_RATE_640MS)

Definition at line 280 of file FXOS8700CQ.h.

#define HYB_ASLP_RATE_1_56HZ   (ASLP_RATE_160MS)

Definition at line 279 of file FXOS8700CQ.h.

#define HYB_ASLP_RATE_25HZ   (ASLP_RATE_20MS)

Definition at line 277 of file FXOS8700CQ.h.

#define HYB_ASLP_RATE_6_25HZ   (ASLP_RATE_80MS)

Definition at line 278 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_0_8HZ   (DATA_RATE_640MS)

Definition at line 307 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_100HZ   (DATA_RATE_5MS)

Definition at line 302 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_200HZ   (DATA_RATE_2500US)

Definition at line 301 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_25HZ   (DATA_RATE_20MS)

Definition at line 304 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_3_15HZ   (DATA_RATE_160MS)

Definition at line 306 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_400HZ   (DATA_RATE_1250US)

Definition at line 300 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_50HZ   (DATA_RATE_10MS)

Definition at line 303 of file FXOS8700CQ.h.

#define HYB_DATA_RATE_6_25HZ   (DATA_RATE_80MS)

Definition at line 305 of file FXOS8700CQ.h.

#define HYBRID_ACTIVE   (M_HMS1_MASK | M_HMS0_MASK)

Definition at line 397 of file FXOS8700CQ.h.

#define HYS0_MASK   0x01

Definition at line 169 of file FXOS8700CQ.h.

#define HYS1_MASK   0x02

Definition at line 168 of file FXOS8700CQ.h.

#define HYS2_MASK   0x04

Definition at line 167 of file FXOS8700CQ.h.

#define HYS_MASK   0x07

Definition at line 171 of file FXOS8700CQ.h.

#define INT_CFG_ASLP_MASK   0x80

Definition at line 355 of file FXOS8700CQ.h.

#define INT_CFG_DRDY_MASK   0x01

Definition at line 361 of file FXOS8700CQ.h.

#define INT_CFG_FF_MT_MASK   0x04

Definition at line 360 of file FXOS8700CQ.h.

#define INT_CFG_FIFO_MASK   0x40

Definition at line 356 of file FXOS8700CQ.h.

#define INT_CFG_LNDPRT_MASK   0x10

Definition at line 358 of file FXOS8700CQ.h.

#define INT_CFG_PULSE_MASK   0x08

Definition at line 359 of file FXOS8700CQ.h.

#define INT_CFG_TRANS_MASK   0x20

Definition at line 357 of file FXOS8700CQ.h.

#define INT_EN_ASLP_MASK   0x80

Definition at line 346 of file FXOS8700CQ.h.

#define INT_EN_DRDY_MASK   0x01

Definition at line 352 of file FXOS8700CQ.h.

#define INT_EN_FF_MT_MASK   0x04

Definition at line 351 of file FXOS8700CQ.h.

#define INT_EN_FIFO_MASK   0x40

Definition at line 347 of file FXOS8700CQ.h.

#define INT_EN_LNDPRT_MASK   0x10

Definition at line 349 of file FXOS8700CQ.h.

#define INT_EN_PULSE_MASK   0x08

Definition at line 350 of file FXOS8700CQ.h.

#define INT_EN_TRANS_MASK   0x20

Definition at line 348 of file FXOS8700CQ.h.

#define IPOL_MASK   0x02

Definition at line 342 of file FXOS8700CQ.h.

#define LAPO0_MASK   0x02

Definition at line 140 of file FXOS8700CQ.h.

#define LAPO1_MASK   0x04

Definition at line 139 of file FXOS8700CQ.h.

#define LAPO_MASK   0x06

Definition at line 142 of file FXOS8700CQ.h.

#define LNOISE_MASK   0x04

Definition at line 261 of file FXOS8700CQ.h.

#define LO_MASK   0x40

Definition at line 138 of file FXOS8700CQ.h.

#define M_ACAL_MASK   0x80

Definition at line 373 of file FXOS8700CQ.h.

#define M_ASLP_OS_0_MASK   0x10

Definition at line 423 of file FXOS8700CQ.h.

#define M_ASLP_OS_1_MASK   0x20

Definition at line 422 of file FXOS8700CQ.h.

#define M_ASLP_OS_2_MASK   0x40

Definition at line 421 of file FXOS8700CQ.h.

#define M_ASLP_OSR_100_HZ   M_ASLP_OS_2_MASK

Definition at line 436 of file FXOS8700CQ.h.

#define M_ASLP_OSR_12_5_HZ   M_ASLP_OS_1_MASK

Definition at line 434 of file FXOS8700CQ.h.

#define M_ASLP_OSR_1_56_HZ   0x00

Definition at line 432 of file FXOS8700CQ.h.

#define M_ASLP_OSR_200_HZ   M_ASLP_OS_2_MASK+M_ASLP_OS_0_MASK

Definition at line 437 of file FXOS8700CQ.h.

#define M_ASLP_OSR_400_HZ   M_ASLP_OS_2_MASK+M_ASLP_OS_1_MASK

Definition at line 438 of file FXOS8700CQ.h.

#define M_ASLP_OSR_50_HZ   M_ASLP_OS_1_MASK+M_ASLP_OS_0_MASK

Definition at line 435 of file FXOS8700CQ.h.

#define M_ASLP_OSR_6_25_HZ   M_ASLP_OS_0_MASK

Definition at line 433 of file FXOS8700CQ.h.

#define M_ASLP_OSR_800_HZ   M_ASLP_OS_2_MASK+M_ASLP_OS_1_MASK+M_ASLP_OS_0_MASK

Definition at line 439 of file FXOS8700CQ.h.

#define M_ASLP_OSR_MASK   0x70

Definition at line 428 of file FXOS8700CQ.h.

#define M_HMS0_MASK   0x01

Definition at line 380 of file FXOS8700CQ.h.

#define M_HMS1_MASK   0x02

Definition at line 379 of file FXOS8700CQ.h.

#define M_HMS_MASK   0x03

Definition at line 382 of file FXOS8700CQ.h.

#define M_HYB_AUTOINC_MASK   0x20

Definition at line 403 of file FXOS8700CQ.h.

#define M_INT_SOURCE   0x5E

Definition at line 444 of file FXOS8700CQ.h.

#define M_MAXMIN_DIS_MASK   0x10

Definition at line 404 of file FXOS8700CQ.h.

#define M_MAXMIN_DIS_THS_MASK   0x08

Definition at line 405 of file FXOS8700CQ.h.

#define M_MAXMIN_RST_MASK   0x04

Definition at line 406 of file FXOS8700CQ.h.

#define M_OSR0_MASK   0x04

Definition at line 378 of file FXOS8700CQ.h.

#define M_OSR1_MASK   0x08

Definition at line 377 of file FXOS8700CQ.h.

#define M_OSR2_MASK   0x10

Definition at line 376 of file FXOS8700CQ.h.

#define M_OSR_100_HZ   M_OSR2_MASK

Definition at line 389 of file FXOS8700CQ.h.

#define M_OSR_12_5_HZ   M_OSR1_MASK

Definition at line 387 of file FXOS8700CQ.h.

#define M_OSR_1_56_HZ   0x00

Definition at line 385 of file FXOS8700CQ.h.

#define M_OSR_200_HZ   M_OSR2_MASK+M_OSR0_MASK

Definition at line 390 of file FXOS8700CQ.h.

#define M_OSR_400_HZ   M_OSR2_MASK+M_OSR1_MASK

Definition at line 391 of file FXOS8700CQ.h.

#define M_OSR_50_HZ   M_OSR1_MASK+M_OSR0_MASK

Definition at line 388 of file FXOS8700CQ.h.

#define M_OSR_6_25_HZ   M_OSR0_MASK

Definition at line 386 of file FXOS8700CQ.h.

#define M_OSR_800_HZ   M_OSR2_MASK+M_OSR1_MASK+M_OSR0_MASK

Definition at line 392 of file FXOS8700CQ.h.

#define M_OSR_MASK   0x1C

Definition at line 381 of file FXOS8700CQ.h.

#define M_OST_MASK   0x20

Definition at line 375 of file FXOS8700CQ.h.

#define M_RAW_MASK   0x80

Definition at line 420 of file FXOS8700CQ.h.

#define M_RST_CNT0_MASK   0x01

Definition at line 408 of file FXOS8700CQ.h.

#define M_RST_CNT1_MASK   0x02

Definition at line 407 of file FXOS8700CQ.h.

#define M_RST_MASK   0x40

Definition at line 374 of file FXOS8700CQ.h.

#define M_ST_XY0_MASK   0x01

Definition at line 427 of file FXOS8700CQ.h.

#define M_ST_XY1_MASK   0x02

Definition at line 426 of file FXOS8700CQ.h.

#define M_ST_XY_MASK   0x03

Definition at line 429 of file FXOS8700CQ.h.

#define M_ST_Z_MASK   0x04

Definition at line 425 of file FXOS8700CQ.h.

#define M_THS_XYZ_MASK   0x08

Definition at line 424 of file FXOS8700CQ.h.

#define M_VECM_DBCNTM_MASK   0x80

Definition at line 484 of file FXOS8700CQ.h.

#define M_VECM_ELE_MASK   0x01

Definition at line 478 of file FXOS8700CQ.h.

#define M_VECM_EN_MASK   0x08

Definition at line 475 of file FXOS8700CQ.h.

#define M_VECM_INIT_CFG_MASK   0x40

Definition at line 472 of file FXOS8700CQ.h.

#define M_VECM_INIT_EN_MASK   0x20

Definition at line 473 of file FXOS8700CQ.h.

#define M_VECM_INITM_MASK   0x02

Definition at line 477 of file FXOS8700CQ.h.

#define M_VECM_UPDM_MASK   0x04

Definition at line 476 of file FXOS8700CQ.h.

#define M_VECM_WAKE_EN_MASK   0x10

Definition at line 474 of file FXOS8700CQ.h.

#define MAG_ACTIVE   M_HMS0_MASK

Definition at line 396 of file FXOS8700CQ.h.

#define MOD_HIGH_RES   (MODS1_MASK)

Definition at line 332 of file FXOS8700CQ.h.

#define MOD_LOW_NOISE   (MODS0_MASK)

Definition at line 331 of file FXOS8700CQ.h.

#define MOD_LOW_POWER   (MODS1_MASK+MODS0_MASK)

Definition at line 333 of file FXOS8700CQ.h.

#define MOD_NORMAL   0x00

Definition at line 330 of file FXOS8700CQ.h.

#define MODS0_MASK   0x01

Definition at line 321 of file FXOS8700CQ.h.

#define MODS1_MASK   0x02

Definition at line 320 of file FXOS8700CQ.h.

#define MODS_MASK   0x03

Definition at line 323 of file FXOS8700CQ.h.

#define MXOS8700CQ   0xC4

Definition at line 116 of file FXOS8700CQ.h.

#define NEWLP_MASK   0x80

Definition at line 137 of file FXOS8700CQ.h.

#define OAE_MASK   0x40

Definition at line 177 of file FXOS8700CQ.h.

#define OFF_X_REG   0x2F

Definition at line 366 of file FXOS8700CQ.h.

#define OFF_Y_REG   0x30

Definition at line 367 of file FXOS8700CQ.h.

#define OFF_Z_REG   0x31

Definition at line 368 of file FXOS8700CQ.h.

#define OUT_X_LSB_REG   0x02

Definition at line 60 of file FXOS8700CQ.h.

#define OUT_X_MSB_REG   0x01

Definition at line 59 of file FXOS8700CQ.h.

#define OUT_Y_LSB_REG   0x04

Definition at line 62 of file FXOS8700CQ.h.

#define OUT_Y_MSB_REG   0x03

Definition at line 61 of file FXOS8700CQ.h.

#define OUT_Z_LSB_REG   0x06

Definition at line 64 of file FXOS8700CQ.h.

#define OUT_Z_MSB_REG   0x05

Definition at line 63 of file FXOS8700CQ.h.

#define P_L_THS0_MASK   0x08

Definition at line 166 of file FXOS8700CQ.h.

#define P_L_THS1_MASK   0x10

Definition at line 165 of file FXOS8700CQ.h.

#define P_L_THS2_MASK   0x20

Definition at line 164 of file FXOS8700CQ.h.

#define P_L_THS3_MASK   0x40

Definition at line 163 of file FXOS8700CQ.h.

#define P_L_THS4_MASK   0x80

Definition at line 162 of file FXOS8700CQ.h.

#define P_L_THS_MASK   0xF8

Definition at line 170 of file FXOS8700CQ.h.

#define PEA_MASK   0x80

Definition at line 244 of file FXOS8700CQ.h.

#define PELE_MASK   0x40

Definition at line 233 of file FXOS8700CQ.h.

#define PL_EN_MASK   0x40

Definition at line 147 of file FXOS8700CQ.h.

#define PL_P_L_THS_REG   0x14

Definition at line 160 of file FXOS8700CQ.h.

#define POLX_MASK   0x01

Definition at line 251 of file FXOS8700CQ.h.

#define POLY_MASK   0x02

Definition at line 250 of file FXOS8700CQ.h.

#define POLZ_MASK   0x04

Definition at line 249 of file FXOS8700CQ.h.

#define PP_OD_MASK   0x01

Definition at line 343 of file FXOS8700CQ.h.

#define PTHS_MASK   0x7F

Definition at line 253 of file FXOS8700CQ.h.

#define PULSE_HPF_BYP_MASK   0x20

Definition at line 130 of file FXOS8700CQ.h.

#define PULSE_LPF_EN_MASK   0x10

Definition at line 131 of file FXOS8700CQ.h.

#define RST_16_ODR_CYCLE   M_RST_CNT0_MASK

Definition at line 412 of file FXOS8700CQ.h.

#define RST_512_ODR_CYCLE   M_RST_CNT1_MASK

Definition at line 413 of file FXOS8700CQ.h.

#define RST_DISABLED   M_RST_CNT1_MASK+M_RST_CNT0_MASK

Definition at line 414 of file FXOS8700CQ.h.

#define RST_MASK   0x40

Definition at line 316 of file FXOS8700CQ.h.

#define RST_ODR_CYCLE   0x00

Definition at line 411 of file FXOS8700CQ.h.

#define SEL0_MASK   0x01

Definition at line 133 of file FXOS8700CQ.h.

#define SEL1_MASK   0x02

Definition at line 132 of file FXOS8700CQ.h.

#define SEL_MASK   0x03

Definition at line 134 of file FXOS8700CQ.h.

#define SLPE_MASK   0x04

Definition at line 319 of file FXOS8700CQ.h.

#define SMOD_HIGH_RES   (SMODS1_MASK)

Definition at line 327 of file FXOS8700CQ.h.

#define SMOD_LOW_NOISE   (SMODS0_MASK)

Definition at line 326 of file FXOS8700CQ.h.

#define SMOD_LOW_POWER   (SMODS1_MASK+SMODS0_MASK)

Definition at line 328 of file FXOS8700CQ.h.

#define SMOD_NORMAL   0x00

Definition at line 325 of file FXOS8700CQ.h.

#define SMODS0_MASK   0x08

Definition at line 318 of file FXOS8700CQ.h.

#define SMODS1_MASK   0x10

Definition at line 317 of file FXOS8700CQ.h.

#define SMODS_MASK   0x18

Definition at line 322 of file FXOS8700CQ.h.

#define SRC_ASLP_MASK   0x80

Definition at line 106 of file FXOS8700CQ.h.

#define SRC_DRDY_MASK   0x01

Definition at line 112 of file FXOS8700CQ.h.

#define SRC_FF_MT_MASK   0x04

Definition at line 111 of file FXOS8700CQ.h.

#define SRC_FIFO_MASK   0x40

Definition at line 107 of file FXOS8700CQ.h.

#define SRC_LNDPRT_MASK   0x10

Definition at line 109 of file FXOS8700CQ.h.

#define SRC_M_DRDY_MASK   0x04

Definition at line 446 of file FXOS8700CQ.h.

#define SRC_M_THS_MASK   0x01

Definition at line 448 of file FXOS8700CQ.h.

#define SRC_M_VECM_MASK   0x02

Definition at line 447 of file FXOS8700CQ.h.

#define SRC_PULSE_MASK   0x08

Definition at line 110 of file FXOS8700CQ.h.

#define SRC_TRANS_MASK   0x20

Definition at line 108 of file FXOS8700CQ.h.

#define ST_MASK   0x80

Definition at line 315 of file FXOS8700CQ.h.

#define STANDBY   0x00

Definition at line 310 of file FXOS8700CQ.h.

#define SYSMOD0_MASK   0x01

Definition at line 98 of file FXOS8700CQ.h.

#define SYSMOD1_MASK   0x02

Definition at line 97 of file FXOS8700CQ.h.

#define SYSMOD_MASK   0x03

Definition at line 99 of file FXOS8700CQ.h.

#define SYSMOD_SLEEP   (SYSMOD1_MASK)

Definition at line 103 of file FXOS8700CQ.h.

#define SYSMOD_STANDBY   0x00

Definition at line 101 of file FXOS8700CQ.h.

#define SYSMOD_WAKE   (SYSMOD0_MASK)

Definition at line 102 of file FXOS8700CQ.h.

#define TEA_MASK   0x40

Definition at line 221 of file FXOS8700CQ.h.

#define TELE_MASK   0x10

Definition at line 213 of file FXOS8700CQ.h.

#define THS0_MASK   0x01

Definition at line 204 of file FXOS8700CQ.h.

#define THS2_MASK   0x04

Definition at line 202 of file FXOS8700CQ.h.

#define THS3_MASK   0x08

Definition at line 201 of file FXOS8700CQ.h.

#define THS4_MASK   0x10

Definition at line 200 of file FXOS8700CQ.h.

#define THS5_MASK   0x20

Definition at line 199 of file FXOS8700CQ.h.

#define THS6_MASK   0x40

Definition at line 198 of file FXOS8700CQ.h.

#define THS_MASK   0x7F

Definition at line 205 of file FXOS8700CQ.h.

#define TRANSIENT_THS_REG   0x1F

Definition at line 195 of file FXOS8700CQ.h.

#define TRIG_FF_MT_MASK   0x04

Definition at line 87 of file FXOS8700CQ.h.

#define TRIG_LNDPRT_MASK   0x10

Definition at line 85 of file FXOS8700CQ.h.

#define TRIG_PULSE_MASK   0x08

Definition at line 86 of file FXOS8700CQ.h.

#define TRIG_TRANS_MASK   0x20

Definition at line 84 of file FXOS8700CQ.h.

#define TXS1_MASK   0x02

Definition at line 203 of file FXOS8700CQ.h.

#define UINT14_MAX   16383

Definition at line 509 of file FXOS8700CQ.h.

#define WAKE_FF_MT_MASK   0x08

Definition at line 341 of file FXOS8700CQ.h.

#define WAKE_LNDPRT_MASK   0x20

Definition at line 339 of file FXOS8700CQ.h.

#define WAKE_PULSE_MASK   0x10

Definition at line 340 of file FXOS8700CQ.h.

#define WAKE_TRANS_MASK   0x40

Definition at line 338 of file FXOS8700CQ.h.

#define X_TRANS_POL_MASK   0x01

Definition at line 227 of file FXOS8700CQ.h.

#define XDPEFE_MASK   0x02

Definition at line 238 of file FXOS8700CQ.h.

#define XDR_MASK   0x01

Definition at line 45 of file FXOS8700CQ.h.

#define XEFE_MASK   0x08

Definition at line 180 of file FXOS8700CQ.h.

#define XHE_MASK   0x02

Definition at line 190 of file FXOS8700CQ.h.

#define XHP_MASK   0x01

Definition at line 191 of file FXOS8700CQ.h.

#define XOW_MASK   0x10

Definition at line 41 of file FXOS8700CQ.h.

#define XSPEFE_MASK   0x01

Definition at line 239 of file FXOS8700CQ.h.

#define XTEFE_MASK   0x02

Definition at line 216 of file FXOS8700CQ.h.

#define XTRANSE_MASK   0x02

Definition at line 226 of file FXOS8700CQ.h.

#define Y_TRANS_POL_MASK   0x04

Definition at line 225 of file FXOS8700CQ.h.

#define YDPEFE_MASK   0x08

Definition at line 236 of file FXOS8700CQ.h.

#define YDR_MASK   0x02

Definition at line 44 of file FXOS8700CQ.h.

#define YEFE_MASK   0x10

Definition at line 179 of file FXOS8700CQ.h.

#define YHE_MASK   0x08

Definition at line 188 of file FXOS8700CQ.h.

#define YHP_MASK   0x04

Definition at line 189 of file FXOS8700CQ.h.

#define YOW_MASK   0x20

Definition at line 40 of file FXOS8700CQ.h.

#define YSPEFE_MASK   0x04

Definition at line 237 of file FXOS8700CQ.h.

#define YTEFE_MASK   0x04

Definition at line 215 of file FXOS8700CQ.h.

#define YTRANSE_MASK   0x08

Definition at line 224 of file FXOS8700CQ.h.

#define Z_TRANS_POL_MASK   0x10

Definition at line 223 of file FXOS8700CQ.h.

#define ZDPEFE_MASK   0x20

Definition at line 234 of file FXOS8700CQ.h.

#define ZDR_MASK   0x04

Definition at line 43 of file FXOS8700CQ.h.

#define ZEFE_MASK   0x20

Definition at line 178 of file FXOS8700CQ.h.

#define ZHE_MASK   0x20

Definition at line 186 of file FXOS8700CQ.h.

#define ZHP_MASK   0x10

Definition at line 187 of file FXOS8700CQ.h.

#define ZLOCK0_MASK   0x01

Definition at line 155 of file FXOS8700CQ.h.

#define ZLOCK1_MASK   0x02

Definition at line 154 of file FXOS8700CQ.h.

#define ZLOCK2_MASK   0x04

Definition at line 153 of file FXOS8700CQ.h.

#define ZLOCK_MASK   0x07

Definition at line 157 of file FXOS8700CQ.h.

#define ZOW_MASK   0x40

Definition at line 39 of file FXOS8700CQ.h.

#define ZSPEFE_MASK   0x10

Definition at line 235 of file FXOS8700CQ.h.

#define ZTEFE_MASK   0x08

Definition at line 214 of file FXOS8700CQ.h.

#define ZTRANSE_MASK   0x20

Definition at line 222 of file FXOS8700CQ.h.

#define ZYXDR_MASK   0x08

Definition at line 42 of file FXOS8700CQ.h.

#define ZYXOW_MASK   0x80

Definition at line 38 of file FXOS8700CQ.h.

Typedef Documentation

Enumeration listing the sensor orientation modes

typedef enum mode_t mode_t

Enumeration listing modes

typedef enum range_t range_t

Enumeration of the accelerometer accelerometer scale.

typedef struct rawdata rawdata_t

Structure encapsulating triple axis raw data.

Enumeration Type Documentation

Enumeration listing the sensor orientation modes

Enumerator
PORT_UP_FRONT 
PORT_UP_BACK 
PORT_DOWN_FRONT 
PORT_DOWN_BACK 
LAND_LEFT_FRONT 
LAND_LEFT_BACK 
LAND_RIGHT_FRONT 
LAND_RIGHT_BACK 
PORT_UP_FRONT 
PORT_UP_BACK 
PORT_DOWN_FRONT 
PORT_DOWN_BACK 
LAND_LEFT_FRONT 
LAND_LEFT_BACK 
LAND_RIGHT_FRONT 
LAND_RIGHT_BACK 
PORT_UP_FRONT 
PORT_UP_BACK 
PORT_DOWN_FRONT 
PORT_DOWN_BACK 
LAND_LEFT_FRONT 
LAND_LEFT_BACK 
LAND_RIGHT_FRONT 
LAND_RIGHT_BACK 

Definition at line 532 of file FXOS8700CQ.h.

enum mode_t

Enumeration listing modes

Enumerator
DISABLED 
BUFFER 
OVERFLOW 
TRIGGERED 
DISABLED 
BUFFER 
OVERFLOW 
TRIGGERED 
DISABLED 
BUFFER 
OVERFLOW 
TRIGGERED 

Definition at line 516 of file FXOS8700CQ.h.

enum range_t

Enumeration of the accelerometer accelerometer scale.

Enumerator
SCALE2G 
SCALE4G 
SCALE8G 
SCALE2G 
SCALE4G 
SCALE8G 
SCALE2G 
SCALE4G 
SCALE8G 

Definition at line 524 of file FXOS8700CQ.h.

Function Documentation

char FXOS8700CQ_ReadByte ( char  reg)

Starts up the sensor in Active mode.

Parameters
regRegister address to read from.
Returns
data Contents of register.

Definition at line 539 of file FXOS8700CQ.c.

void FXOS8700CQ_ReadByteArray ( char  reg,
char *  buffer,
unsigned int  length 
)

Read a number of contigous bytes from the chip.

Parameters
regInitial register address to read from.
*bufferPointer to buffer array to read into.
lengthLength of buffer array
Returns
none

Definition at line 551 of file FXOS8700CQ.c.

void FXOS8700CQ_WriteByte ( char  reg,
char  value 
)

Writes a value to a register.

Parameters
regRegister address to write into.
valueData to write to register.
Returns
none

Definition at line 517 of file FXOS8700CQ.c.

void FXOS8700CQ_WriteByteArray ( char  reg,
char *  buffer,
char  length 
)

Writes an array of bytes to the sensor.

Parameters
regInitial register address to write to.
*bufferPointer to buffer array to read from.
lengthLength of buffer array
Returns
none

Definition at line 529 of file FXOS8700CQ.c.