Sensorian
1.0
C API Reference Guide Library
|
Accelerometer / Magnetometer driver header. More...
Go to the source code of this file.
Data Structures | |
struct | rawdata |
Structure encapsulating triple axis raw data. More... | |
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... | |
#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.
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.
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.
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.
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 enum ACC_orientation_t ACC_orientation_t |
Enumeration listing the sensor orientation modes
enum ACC_orientation_t |
Enumeration listing the sensor orientation modes
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.
char FXOS8700CQ_ReadByte | ( | char | reg | ) |
Starts up the sensor in Active mode.
reg | Register address to read from. |
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.
reg | Initial register address to read from. |
*buffer | Pointer to buffer array to read into. |
length | Length of buffer array |
Definition at line 551 of file FXOS8700CQ.c.
void FXOS8700CQ_WriteByte | ( | char | reg, |
char | value | ||
) |
Writes a value to a register.
reg | Register address to write into. |
value | Data to write to register. |
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.
reg | Initial register address to write to. |
*buffer | Pointer to buffer array to read from. |
length | Length of buffer array |
Definition at line 529 of file FXOS8700CQ.c.