#include <Adafruit_LSM9DS1.h>
|
| Sensor () |
| Basic instatiator.
|
|
| Sensor (const Sensor ©) |
| Instantiate based on existing sensor. More...
|
|
| Sensor (Adafruit_LSM9DS1 *parent, lsm9ds1_read_func readFunc, lsm9ds1_get_event_func eventFunc, lsm9ds1_get_sensor_func sensorFunc) |
| Instantiate based on existing sensor. More...
|
|
virtual bool | getEvent (sensors_event_t *event) |
| Get sensor event data. More...
|
|
virtual void | getSensor (sensor_t *sensor) |
| Get sensor metadata - type and range information. More...
|
|
! Subclass to expose each sensor on the LSM9DS1 as an Adafruit_Sensor instance.
◆ Sensor() [1/2]
Adafruit_LSM9DS1::Sensor::Sensor |
( |
const Sensor & |
copy | ) |
|
|
inline |
Instantiate based on existing sensor.
- Parameters
-
copy | The Sensor object to 'copy' from |
◆ Sensor() [2/2]
Adafruit_LSM9DS1::Sensor::Sensor |
( |
Adafruit_LSM9DS1 * |
parent, |
|
|
lsm9ds1_read_func |
readFunc, |
|
|
lsm9ds1_get_event_func |
eventFunc, |
|
|
lsm9ds1_get_sensor_func |
sensorFunc |
|
) |
| |
|
inline |
Instantiate based on existing sensor.
- Parameters
-
parent | The LSM9DS1 parent object |
readFunc | The no-argument function to call to read data |
eventFunc | The sensor_event_t function to call to get event data |
sensorFunc | The sensor_t function to call to get sensor metadata |
◆ getEvent()
virtual bool Adafruit_LSM9DS1::Sensor::getEvent |
( |
sensors_event_t * |
event | ) |
|
|
inlinevirtual |
Get sensor event data.
- Parameters
-
event | Pointer to sensor_event_t to fill in |
- Returns
- True on successful read
◆ getSensor()
virtual void Adafruit_LSM9DS1::Sensor::getSensor |
( |
sensor_t * |
sensor | ) |
|
|
inlinevirtual |
Get sensor metadata - type and range information.
- Parameters
-
sensor | Pointer to sensor_t to fill in |
The documentation for this class was generated from the following file: