Adafruit FXOS8700 Accelerometer Magnetometer Library
Public Member Functions | List of all members
Adafruit_FXOS8700_Accelerometer Class Reference

#include <Adafruit_FXOS8700.h>

Inheritance diagram for Adafruit_FXOS8700_Accelerometer:

Public Member Functions

 Adafruit_FXOS8700_Accelerometer (Adafruit_FXOS8700 *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 FXOS8700's accelerometer.
 

Detailed Description

Adafruit Unified Sensor interface for accelerometer component of FXOS8700

Constructor & Destructor Documentation

◆ Adafruit_FXOS8700_Accelerometer()

Adafruit_FXOS8700_Accelerometer::Adafruit_FXOS8700_Accelerometer ( Adafruit_FXOS8700 parent)
inline

Create an Adafruit_Sensor compatible object for the accelerometer sensor.

Parameters
parentA pointer to the FXOS8700 class

Member Function Documentation

◆ getEvent()

bool Adafruit_FXOS8700_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: