|
Adafruit FXOS8700 Accelerometer Magnetometer Library
|
#include <Adafruit_BusIO_Register.h>#include <Adafruit_I2CDevice.h>#include <Adafruit_Sensor.h>#include <Arduino.h>Go to the source code of this file.
Classes | |
| struct | fxos8700RawData_t |
| Raw (integer) values from a 3dof sensor. More... | |
| class | Adafruit_FXOS8700_Accelerometer |
| class | Adafruit_FXOS8700_Magnetometer |
| class | Adafruit_FXOS8700 |
| Unified sensor driver for the Adafruit FXOS8700 breakout. More... | |
Macros | |
| #define | FXOS8700_ID (0xC7) |
Variables | |
| const fxos8700ODR_t | ACCEL_MAG_ONLY_AVAILABLE_ODRs [] |
| const fxos8700ODR_t | HYBRID_AVAILABLE_ODRs [] |
| const uint16_t | ODR_drBits [] |
This is part of Adafruit's FXOS8700 driver for the Arduino platform. It is designed specifically to work with the Adafruit FXOS8700 breakout: https://www.adafruit.com/products/3463
These sensors use I2C to communicate, 2 pins (SCL+SDA) are required to interface with the breakout.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Kevin "KTOWN" Townsend for Adafruit Industries.
MIT license, all text here must be included in any redistribution.
| #define FXOS8700_ID (0xC7) |
7-bit I2C address for this sensor Device ID for this sensor (used as sanity check during init)
| enum fxos8700Registers_t |
Raw register addresses used to communicate with the sensor.
| enum fxos8700SensorMode_t |
Sensor mode seetings for the overall FXOS8700 sensor. Sets the sensor in accelerometer-only, magnerometer-only, or hybrid modes. Sent to FXOS8700_REGISTER_MCTRL_REG1
| Enumerator | |
|---|---|
| ACCEL_ONLY_MODE | m_hms[1:0] = 0b00. Accel-only mode |
| MAG_ONLY_MODE | m_hms[1:0] = 0b01. Mag-only mode |
| HYBRID_MODE | m_hms[1:0] = 0b11. Hybrid mode |
| enum fxos8700ODR_t |
Output Data Rate (ODR) key for the overall FXOS8700 sensor. Called by user for convenient variable name matching
| enum fxos8700AccelRange_t |
| enum fxos8700MagOSR_t |
Range settings for the accelerometer sensor.
| const fxos8700ODR_t ACCEL_MAG_ONLY_AVAILABLE_ODRs[] |
Output Data Rates (ODRs) available for accel/mag-only modes, type array of user set fxos8700ODR_t
| const fxos8700ODR_t HYBRID_AVAILABLE_ODRs[] |
Output Data Rates (ODRs) available for hybrid mode, type array of user set fxos8700ODR_t
| const uint16_t ODR_drBits[] |
Output Data Rate (ODR) settings to write to the dr[2:0] bits in CTRL_REG_1, array type to pass the index from available accel/mag-only and hyrbrid modes
1.8.13