21 #ifndef __FXOS8700_H__ 22 #define __FXOS8700_H__ 24 #include <Adafruit_BusIO_Register.h> 25 #include <Adafruit_I2CDevice.h> 26 #include <Adafruit_Sensor.h> 35 #define FXOS8700_ID (0xC7) // 1100 0111 228 _theFXOS8700 = parent;
234 int _sensorID = 8701;
245 _theFXOS8700 = parent;
251 int _sensorID = 8702;
264 bool begin(uint8_t addr = 0x1F, TwoWire *wire = &Wire);
266 bool getEvent(sensors_event_t *accel);
267 void getSensor(sensor_t *singleSensorEvent);
268 bool getEvent(sensors_event_t *accel, sensors_event_t *mag);
269 void getSensor(sensor_t *accel, sensor_t *mag);
270 void standby(
boolean standby);
277 Adafruit_Sensor *getMagnetometerSensor(
void);
278 Adafruit_Sensor *getAccelerometerSensor(
void);
297 Adafruit_I2CDevice *i2c_dev = NULL;
305 int32_t _accelSensorID;
306 int32_t _magSensorID;
Definition: Adafruit_FXOS8700.h:198
Adafruit_FXOS8700_Magnetometer(Adafruit_FXOS8700 *parent)
Create an Adafruit_Sensor compatible object for the magnetometer sensor.
Definition: Adafruit_FXOS8700.h:244
fxos8700SensorMode_t
Definition: Adafruit_FXOS8700.h:100
Definition: Adafruit_FXOS8700.h:183
Definition: Adafruit_FXOS8700.h:60
Definition: Adafruit_FXOS8700.h:56
Definition: Adafruit_FXOS8700.h:92
int16_t x
Definition: Adafruit_FXOS8700.h:213
Definition: Adafruit_FXOS8700.h:52
Definition: Adafruit_FXOS8700.h:118
void getSensor(sensor_t *)
Gets the sensor_t data for the FXOS8700's accelerometer.
Definition: Adafruit_FXOS8700.cpp:598
fxos8700Registers_t
Definition: Adafruit_FXOS8700.h:44
Definition: Adafruit_FXOS8700.h:64
const fxos8700ODR_t ACCEL_MAG_ONLY_AVAILABLE_ODRs[]
Definition: Adafruit_FXOS8700.h:132
const uint16_t ODR_drBits[]
Definition: Adafruit_FXOS8700.h:163
Definition: Adafruit_FXOS8700.h:123
Definition: Adafruit_FXOS8700.h:103
Definition: Adafruit_FXOS8700.h:101
Definition: Adafruit_FXOS8700.h:195
Definition: Adafruit_FXOS8700.h:77
Definition: Adafruit_FXOS8700.h:200
Definition: Adafruit_FXOS8700.h:124
Definition: Adafruit_FXOS8700.h:45
Definition: Adafruit_FXOS8700.h:75
Definition: Adafruit_FXOS8700.h:184
fxos8700RawData_t mag_raw
Definition: Adafruit_FXOS8700.h:275
Definition: Adafruit_FXOS8700.h:202
Definition: Adafruit_FXOS8700.h:48
Raw (integer) values from a 3dof sensor.
Definition: Adafruit_FXOS8700.h:212
Definition: Adafruit_FXOS8700.h:69
int16_t z
Definition: Adafruit_FXOS8700.h:215
Definition: Adafruit_FXOS8700.h:222
Definition: Adafruit_FXOS8700.h:117
Definition: Adafruit_FXOS8700.h:182
Definition: Adafruit_FXOS8700.h:125
Definition: Adafruit_FXOS8700.h:119
Definition: Adafruit_FXOS8700.h:51
Definition: Adafruit_FXOS8700.h:121
Definition: Adafruit_FXOS8700.h:47
fxos8700SystemStatus_t
Definition: Adafruit_FXOS8700.h:89
Definition: Adafruit_FXOS8700.h:50
Definition: Adafruit_FXOS8700.h:115
Definition: Adafruit_FXOS8700.h:122
Definition: Adafruit_FXOS8700.h:120
const fxos8700ODR_t HYBRID_AVAILABLE_ODRs[]
Definition: Adafruit_FXOS8700.h:147
Definition: Adafruit_FXOS8700.h:62
int16_t y
Definition: Adafruit_FXOS8700.h:214
Definition: Adafruit_FXOS8700.h:72
Definition: Adafruit_FXOS8700.h:73
Unified sensor driver for the Adafruit FXOS8700 breakout.
Definition: Adafruit_FXOS8700.h:260
Definition: Adafruit_FXOS8700.h:201
Definition: Adafruit_FXOS8700.h:102
Definition: Adafruit_FXOS8700.h:58
Adafruit_FXOS8700_Accelerometer(Adafruit_FXOS8700 *parent)
Create an Adafruit_Sensor compatible object for the accelerometer sensor.
Definition: Adafruit_FXOS8700.h:227
Definition: Adafruit_FXOS8700.h:91
Definition: Adafruit_FXOS8700.h:46
fxos8700RawData_t accel_raw
Definition: Adafruit_FXOS8700.h:273
Definition: Adafruit_FXOS8700.h:239
fxos8700ODR_t
Definition: Adafruit_FXOS8700.h:114
Definition: Adafruit_FXOS8700.h:196
Definition: Adafruit_FXOS8700.h:199
Definition: Adafruit_FXOS8700.h:116
Definition: Adafruit_FXOS8700.h:70
Definition: Adafruit_FXOS8700.h:197
Definition: Adafruit_FXOS8700.h:53
fxos8700MagOSR_t
Definition: Adafruit_FXOS8700.h:194
Definition: Adafruit_FXOS8700.h:55
Definition: Adafruit_FXOS8700.h:67
Definition: Adafruit_FXOS8700.h:90
Definition: Adafruit_FXOS8700.h:71
Definition: Adafruit_FXOS8700.h:66
fxos8700AccelRange_t
Definition: Adafruit_FXOS8700.h:181
Definition: Adafruit_FXOS8700.h:49
bool getEvent(sensors_event_t *)
Gets the accelerometer as a standard sensor event.
Definition: Adafruit_FXOS8700.cpp:621
Definition: Adafruit_FXOS8700.h:68