Adafruit ICM20X Sensor Library
Public Member Functions | List of all members
Adafruit_ICM20X_Accelerometer Class Reference

#include <Adafruit_ICM20X.h>

Inheritance diagram for Adafruit_ICM20X_Accelerometer:

Public Member Functions

 Adafruit_ICM20X_Accelerometer (Adafruit_ICM20X *parent)
 Create an Adafruit_Sensor compatible object for the accelerometer sensor. More...
 
bool getEvent (sensors_event_t *)
 Gets the accelerometer as a standard sensor event. More...
 
void getSensor (sensor_t *)
 Gets the sensor_t data for the ICM20X's accelerometer.
 

Detailed Description

Adafruit Unified Sensor interface for accelerometer component of ICM20X

Constructor & Destructor Documentation

◆ Adafruit_ICM20X_Accelerometer()

Adafruit_ICM20X_Accelerometer::Adafruit_ICM20X_Accelerometer ( Adafruit_ICM20X parent)
inline

Create an Adafruit_Sensor compatible object for the accelerometer sensor.

Parameters
parentA pointer to the ICM20X class

Member Function Documentation

◆ getEvent()

bool Adafruit_ICM20X_Accelerometer::getEvent ( sensors_event_t *  event)

Gets the accelerometer as a standard sensor event.

Parameters
eventSensor event object that will be populated
Returns
True

The documentation for this class was generated from the following files: