Adafruit LSM6DS Sensors Library
Public Member Functions | List of all members
Adafruit_LSM6DS_Gyro Class Reference

#include <Adafruit_LSM6DS.h>

Inheritance diagram for Adafruit_LSM6DS_Gyro:

Public Member Functions

 Adafruit_LSM6DS_Gyro (Adafruit_LSM6DS *parent)
 Create an Adafruit_Sensor compatible object for the gyro sensor. More...
 
bool getEvent (sensors_event_t *)
 Gets the gyroscope as a standard sensor event. More...
 
void getSensor (sensor_t *)
 Gets the sensor_t data for the LSM6DS's gyroscope sensor.
 

Detailed Description

Adafruit Unified Sensor interface for gyro component of LSM6DS

Constructor & Destructor Documentation

◆ Adafruit_LSM6DS_Gyro()

Adafruit_LSM6DS_Gyro::Adafruit_LSM6DS_Gyro ( Adafruit_LSM6DS parent)
inline

Create an Adafruit_Sensor compatible object for the gyro sensor.

Parameters
parentA pointer to the LSM6DS class

Member Function Documentation

◆ getEvent()

bool Adafruit_LSM6DS_Gyro::getEvent ( sensors_event_t *  event)

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