Unified sensor driver for the Adafruit FXAS21002C breakout.
More...
#include <Adafruit_FXAS21002C.h>
Unified sensor driver for the Adafruit FXAS21002C breakout.
◆ Adafruit_FXAS21002C()
Adafruit_FXAS21002C::Adafruit_FXAS21002C |
( |
int32_t |
sensorID = -1 | ) |
|
Instantiates a new Adafruit_FXAS21002C class, including assigning a unique ID to the gyroscope for logging purposes.
- Parameters
-
sensorID | The unique ID to associate with the gyroscope. |
◆ begin()
Setup the HW.
- Parameters
-
rng | The range to set for the gyroscope, based on gyroRange_t |
- Returns
- True if the device was successfully initialized, otherwise false.
◆ getEvent()
bool Adafruit_FXAS21002C::getEvent |
( |
sensors_event_t * |
event | ) |
|
Gets the most recent sensor event.
- Parameters
-
[out] | event | A reference to the sensors_event_t instances where the accelerometer data should be written. |
- Returns
- True if the event was successfully read, otherwise false.
◆ getSensor()
void Adafruit_FXAS21002C::getSensor |
( |
sensor_t * |
sensor | ) |
|
Gets the sensor_t data.
- Parameters
-
[out] | sensor | A reference to the sensor_t instances where the gyroscope sensor info should be written. |
◆ standby()
void Adafruit_FXAS21002C::standby |
( |
boolean |
standby | ) |
|
Puts devince into/out of standby mode.
- Parameters
-
standby | Whether we want to go into standby! |
◆ raw
Raw gyroscope values from last sensor read
The documentation for this class was generated from the following files: