20 #ifndef __FXAS21002C_H__ 21 #define __FXAS21002C_H__ 23 #include <Adafruit_BusIO_Register.h> 24 #include <Adafruit_I2CDevice.h> 25 #include <Adafruit_Sensor.h> 35 #define FXAS21002C_ID (0xD7) // 1101 0111 37 #define GYRO_SENSITIVITY_250DPS (0.0078125F) // Table 35 of datasheet 39 #define GYRO_SENSITIVITY_500DPS (0.015625F) 41 #define GYRO_SENSITIVITY_1000DPS (0.03125F) 43 #define GYRO_SENSITIVITY_2000DPS (0.0625F) 49 #define GYRO_ODR_800HZ (800.0f) 50 #define GYRO_ODR_400HZ (400.0f) 51 #define GYRO_ODR_200HZ (200.0f) 52 #define GYRO_ODR_100HZ (100.0f) 53 #define GYRO_ODR_50HZ (50.0f) 54 #define GYRO_ODR_25HZ (25.0f) 55 #define GYRO_ODR_12_5HZ (12.5f) 118 bool begin(uint8_t addr = 0x21, TwoWire *wire = &Wire);
119 bool getEvent(sensors_event_t *event);
120 void getSensor(sensor_t *sensor);
121 void standby(
boolean standby);
124 void setODR(
float ODR);
130 Adafruit_I2CDevice *i2c_dev = NULL;
Definition: Adafruit_FXAS21002C.h:91
Definition: Adafruit_FXAS21002C.h:102
Definition: Adafruit_FXAS21002C.h:92
struct gyroRawData_s gyroRawData_t
Definition: Adafruit_FXAS21002C.h:70
Definition: Adafruit_FXAS21002C.h:67
Definition: Adafruit_FXAS21002C.h:66
Definition: Adafruit_FXAS21002C.h:90
Definition: Adafruit_FXAS21002C.h:68
gyroRegisters_t
Definition: Adafruit_FXAS21002C.h:63
int16_t x
Definition: Adafruit_FXAS21002C.h:103
Definition: Adafruit_FXAS21002C.h:89
int16_t z
Definition: Adafruit_FXAS21002C.h:105
Unified sensor driver for the Adafruit FXAS21002C breakout.
Definition: Adafruit_FXAS21002C.h:114
Definition: Adafruit_FXAS21002C.h:65
gyroRawData_t raw
Raw gyroscope values from last sensor read.
Definition: Adafruit_FXAS21002C.h:127
Definition: Adafruit_FXAS21002C.h:77
Definition: Adafruit_FXAS21002C.h:75
Definition: Adafruit_FXAS21002C.h:64
gyroRange_t
Definition: Adafruit_FXAS21002C.h:88
int16_t y
Definition: Adafruit_FXAS21002C.h:104
Definition: Adafruit_FXAS21002C.h:71
Definition: Adafruit_FXAS21002C.h:69
Definition: Adafruit_FXAS21002C.h:73