SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
SensorBMA422::EventCallbacks Struct Reference

Event callbacks for the sensor. More...

#include <SensorBMA422.hpp>

Public Attributes

std::function< void(void)> onAnyMotion = nullptr
 Callback for any motion detection.
 
std::function< void(void)> onNoMotion = nullptr
 Callback for no-motion detection.
 
std::function< void(AccelerometerData &)> onDataReady = nullptr
 Callback for new accelerometer data.
 

Detailed Description

Event callbacks for the sensor.

Note
This structure holds the callback functions for various sensor events. Each callback can be set individually and will be called when the corresponding event occurs.

Definition at line 49 of file sensor/accelerometer/bma/SensorBMA422.hpp.

Member Data Documentation

◆ onAnyMotion

std::function<void(void)> SensorBMA422::EventCallbacks::onAnyMotion = nullptr

Callback for any motion detection.

Definition at line 50 of file sensor/accelerometer/bma/SensorBMA422.hpp.

Referenced by SensorBMA422::setOnAnyMotionCallback(), and SensorBMA422::update().

◆ onDataReady

std::function<void(AccelerometerData &)> SensorBMA422::EventCallbacks::onDataReady = nullptr

Callback for new accelerometer data.

Definition at line 52 of file sensor/accelerometer/bma/SensorBMA422.hpp.

Referenced by SensorBMA422::setOnDataReadyCallback(), and SensorBMA422::update().

◆ onNoMotion

std::function<void(void)> SensorBMA422::EventCallbacks::onNoMotion = nullptr

Callback for no-motion detection.

Definition at line 51 of file sensor/accelerometer/bma/SensorBMA422.hpp.

Referenced by SensorBMA422::setOnNoMotionCallback(), and SensorBMA422::update().


The documentation for this struct was generated from the following file: