Class that stores state and functions for interacting with the ST ICM2948 9-DoF Accelerometer, gyro, and magnetometer.
More...
|
|
| Adafruit_ICM20948 () |
| | Instantiates a new ICM20948 class!
|
| |
| bool | begin_I2C (uint8_t i2c_addr=ICM20948_I2CADDR_DEFAULT, TwoWire *wire=&Wire, int32_t sensor_id=0) |
| | Sets up the hardware and initializes I2C. More...
|
| |
| icm20948_accel_range_t | getAccelRange (void) |
| | Get the accelerometer's measurement range. More...
|
| |
| void | setAccelRange (icm20948_accel_range_t new_accel_range) |
| | Sets the accelerometer's measurement range. More...
|
| |
| icm20948_gyro_range_t | getGyroRange (void) |
| | Get the gyro's measurement range. More...
|
| |
| void | setGyroRange (icm20948_gyro_range_t new_gyro_range) |
| | Sets the gyro's measurement range. More...
|
| |
| ak09916_data_rate_t | getMagDataRate (void) |
| | Get the current magnetometer measurement rate. More...
|
| |
| bool | setMagDataRate (ak09916_data_rate_t rate) |
| | Set the magnetometer measurement rate. More...
|
| |
|
| Adafruit_ICM20X () |
| | Instantiates a new ICM20X class!
|
| |
|
| ~Adafruit_ICM20X () |
| | Cleans up the ICM20X.
|
| |
| bool | begin_SPI (uint8_t cs_pin, SPIClass *theSPI=&SPI, int32_t sensor_id=0) |
| | Sets up the hardware and initializes hardware SPI. More...
|
| |
| bool | begin_SPI (int8_t cs_pin, int8_t sck_pin, int8_t miso_pin, int8_t mosi_pin, int32_t sensor_id=0) |
| | Sets up the hardware and initializes software SPI. More...
|
| |
| uint8_t | getGyroRateDivisor (void) |
| | Get the gyro's data rate divisor. More...
|
| |
| void | setGyroRateDivisor (uint8_t new_gyro_divisor) |
| | Sets the gyro's data rate divisor. More...
|
| |
| uint16_t | getAccelRateDivisor (void) |
| | Get the accelerometer's data rate divisor. More...
|
| |
| void | setAccelRateDivisor (uint16_t new_accel_divisor) |
| | Sets the accelerometer's data rate divisor. More...
|
| |
| bool | enableAccelDLPF (bool enable, icm20x_accel_cutoff_t cutoff_freq) |
| | Enable or disable the accelerometer's Digital Low Pass Filter. More...
|
| |
| bool | enableGyrolDLPF (bool enable, icm20x_gyro_cutoff_t cutoff_freq) |
| | Enable or disable the gyro's Digital Low Pass Filter. More...
|
| |
|
void | reset (void) |
| | Reset the internal registers and restores the default settings.
|
| |
| void | setInt1ActiveLow (bool active_low) |
| | Sets the polarity of the int1 pin. More...
|
| |
| void | setInt2ActiveLow (bool active_low) |
| | Sets the polarity of the INT2 pin. More...
|
| |
| Adafruit_Sensor * | getAccelerometerSensor (void) |
| | Gets an Adafruit Unified Sensor object for the accelerometer sensor component. More...
|
| |
| Adafruit_Sensor * | getGyroSensor (void) |
| | Gets an Adafruit Unified Sensor object for the gyro sensor component. More...
|
| |
| Adafruit_Sensor * | getMagnetometerSensor (void) |
| | Gets an Adafruit Unified Sensor object for the magnetometer sensor component. More...
|
| |
| Adafruit_Sensor * | getTemperatureSensor (void) |
| | Gets an Adafruit Unified Sensor object for the temp sensor component. More...
|
| |
| bool | getEvent (sensors_event_t *accel, sensors_event_t *gyro, sensors_event_t *temp, sensors_event_t *mag=NULL) |
| | Gets the most recent sensor event, Adafruit Unified Sensor format. More...
|
| |
| uint8_t | readExternalRegister (uint8_t slv_addr, uint8_t reg_addr) |
| | Read a single byte from a given register address for an I2C slave device on the auxiliary I2C bus. More...
|
| |
| bool | writeExternalRegister (uint8_t slv_addr, uint8_t reg_addr, uint8_t value) |
| | Write a single byte to a given register address for an I2C slave device on the auxiliary I2C bus. More...
|
| |
| bool | configureI2CMaster (void) |
| | Set the I2C clock rate for the auxillary I2C bus to 345.60kHz and disable repeated start. More...
|
| |
| bool | enableI2CMaster (bool enable_i2c_master) |
| | Enable or disable the I2C mastercontroller. More...
|
| |
|
void | resetI2CMaster (void) |
| | Reset the I2C master.
|
| |
| void | setI2CBypass (bool bypass_i2c) |
| | Sets the bypass status of the I2C master bus support. More...
|
| |
Class that stores state and functions for interacting with the ST ICM2948 9-DoF Accelerometer, gyro, and magnetometer.