![]() |
ISSDK
1.8
IoT Sensing Software Development Kit
|
Provides init() and read() functions for the FXOS8700 6-axis accel plus mag. More...
#include "board.h"
#include "sensor_fusion.h"
#include "sensor_io_i2c.h"
#include "fxos8700.h"
#include "fxos8700_drv.h"
#include "drivers.h"
#include "status.h"
Go to the source code of this file.
Macros | |
#define | FXOS8700_ACCEL_FIFO_SIZE 32 |
FXOS8700 (accel), MMA8652, FXLS8952 all have 32 element FIFO. More... | |
#define | FXOS8700_MAG_FIFO_SIZE 1 |
FXOS8700 (mag), MAG3110 have no FIFO so equivalent to 1 element FIFO. More... | |
#define | FXOS8700_COUNTSPERG 8192.0 |
#define | FXOS8700_COUNTSPERUT 10 |
Functions | |
int8_t | FXOS8700_Init (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
int8_t | FXOS8700_ReadMagData (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
int8_t | FXOS8700_Read (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
int8_t | FXOS8700_Idle (struct PhysicalSensor *sensor, SensorFusionGlobals *sfg) |
Variables | |
const registerreadlist_t | FXOS8700_WHO_AM_I_READ [] |
const registerreadlist_t | FXOS8700_F_STATUS_READ [] |
registerreadlist_t | FXOS8700_DATA_READ [] |
const registerwritelist_t | FXOS8700_Initialization [] |
const registerwritelist_t | FXOS8700_FULL_IDLE [] |
Provides init() and read() functions for the FXOS8700 6-axis accel plus mag.
Definition in file driver_FXOS8700.c.
#define FXOS8700_ACCEL_FIFO_SIZE 32 |
FXOS8700 (accel), MMA8652, FXLS8952 all have 32 element FIFO.
Definition at line 21 of file driver_FXOS8700.c.
Referenced by FXOS8700_Init().
#define FXOS8700_COUNTSPERG 8192.0 |
Definition at line 123 of file driver_FXOS8700.c.
Referenced by FXOS8700_Init().
#define FXOS8700_COUNTSPERUT 10 |
Definition at line 124 of file driver_FXOS8700.c.
Referenced by FXOS8700_Init().
#define FXOS8700_MAG_FIFO_SIZE 1 |
FXOS8700 (mag), MAG3110 have no FIFO so equivalent to 1 element FIFO.
Definition at line 22 of file driver_FXOS8700.c.
int8_t FXOS8700_Idle | ( | struct PhysicalSensor * | sensor, |
SensorFusionGlobals * | sfg | ||
) |
Definition at line 280 of file driver_FXOS8700.c.
References PhysicalSensor::addr, PhysicalSensor::bus_driver, PhysicalSensor::deviceInfo, F_USING_ACCEL, F_USING_MAG, int32_t(), MagSensor::isEnabled, PhysicalSensor::isInitialized, SensorFusionGlobals::Mag, SENSOR_ERROR_INIT, Sensor_I2C_Write(), and status.
int8_t FXOS8700_Init | ( | struct PhysicalSensor * | sensor, |
SensorFusionGlobals * | sfg | ||
) |
Definition at line 130 of file driver_FXOS8700.c.
References ACCEL_FIFO_SIZE, PhysicalSensor::addr, addToFifo(), PhysicalSensor::bus_driver, CHX, CHY, CHZ, conditionSample(), PhysicalSensor::deviceInfo, F_USING_ACCEL, F_USING_MAG, MagSensor::fCountsPeruT, MagSensor::fuTPerCount, FXOS8700_ACCEL_FIFO_SIZE, FXOS8700_COUNTSPERG, FXOS8700_COUNTSPERUT, FXOS8700_OUT_X_MSB, FXOS8700_WHO_AM_I, FXOS8700_WHO_AM_I_PROD_VALUE, MagSensor::iCountsPeruT, int32_t(), MagSensor::isEnabled, PhysicalSensor::isInitialized, MagSensor::iWhoAmI, SensorFusionGlobals::Mag, registerreadlist_t::numBytes, registerreadlist_t::readFrom, Register_I2C_Read(), SENSOR_ERROR_INIT, SENSOR_ERROR_NONE, SENSOR_ERROR_READ, Sensor_I2C_Read(), Sensor_I2C_Write(), sfg, and status.
Referenced by main().
int8_t FXOS8700_Read | ( | struct PhysicalSensor * | sensor, |
SensorFusionGlobals * | sfg | ||
) |
Definition at line 249 of file driver_FXOS8700.c.
References FXOS8700_ReadMagData().
Referenced by main().
int8_t FXOS8700_ReadMagData | ( | struct PhysicalSensor * | sensor, |
SensorFusionGlobals * | sfg | ||
) |
Definition at line 220 of file driver_FXOS8700.c.
References PhysicalSensor::addr, addToFifo(), PhysicalSensor::bus_driver, CHX, CHY, CHZ, conditionSample(), PhysicalSensor::deviceInfo, F_USING_MAG, FXOS8700_M_OUT_X_MSB, int32_t(), PhysicalSensor::isInitialized, SensorFusionGlobals::Mag, MAG_FIFO_SIZE, registerreadlist_t::numBytes, registerreadlist_t::readFrom, SENSOR_ERROR_INIT, SENSOR_ERROR_NONE, Sensor_I2C_Read(), and status.
Referenced by FXOS8700_Read().
registerreadlist_t FXOS8700_DATA_READ[] |
Definition at line 37 of file driver_FXOS8700.c.
const registerreadlist_t FXOS8700_F_STATUS_READ[] |
Definition at line 31 of file driver_FXOS8700.c.
const registerwritelist_t FXOS8700_FULL_IDLE[] |
Definition at line 268 of file driver_FXOS8700.c.
const registerwritelist_t FXOS8700_Initialization[] |
Definition at line 43 of file driver_FXOS8700.c.
const registerreadlist_t FXOS8700_WHO_AM_I_READ[] |
Definition at line 25 of file driver_FXOS8700.c.