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

#include <Adafruit_FXOS8700.h>

Inheritance diagram for Adafruit_FXOS8700_Magnetometer:

Public Member Functions

 Adafruit_FXOS8700_Magnetometer (Adafruit_FXOS8700 *parent)
 Create an Adafruit_Sensor compatible object for the magnetometer sensor. More...
 
bool getEvent (sensors_event_t *)
 Gets the magnetometer as a standard sensor event. More...
 
void getSensor (sensor_t *)
 Gets the sensor_t data for the FXOS8700's magnetic sensor.
 

Detailed Description

Adafruit Unified Sensor interface for magnetometer component of FXOS8700

Constructor & Destructor Documentation

◆ Adafruit_FXOS8700_Magnetometer()

Adafruit_FXOS8700_Magnetometer::Adafruit_FXOS8700_Magnetometer ( Adafruit_FXOS8700 parent)
inline

Create an Adafruit_Sensor compatible object for the magnetometer sensor.

Parameters
parentA pointer to the FXOS8700 class

Member Function Documentation

◆ getEvent()

bool Adafruit_FXOS8700_Magnetometer::getEvent ( sensors_event_t *  event)

Gets the magnetometer 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: