|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
Event callbacks for the sensor. More...
#include <SensorBMA456H.hpp>
Public Attributes | |
| std::function< void(TapType)> | onTap = nullptr |
| Callback for tap detection events. | |
| std::function< void()> | onStepDetected = nullptr |
| Callback for step detection events. | |
| std::function< void(uint32_t)> | onStepCount = nullptr |
| Callback for step count updates. | |
| std::function< void(ActivityType)> | onActivity = nullptr |
| Callback for activity recognition events. | |
| 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. | |
Event callbacks for the sensor.
Definition at line 49 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
| std::function<void(ActivityType)> SensorBMA456H::EventCallbacks::onActivity = nullptr |
Callback for activity recognition events.
Definition at line 53 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
Referenced by SensorBMA456H::setOnActivityCallback(), and SensorBMA456H::update().
| std::function<void(void)> SensorBMA456H::EventCallbacks::onAnyMotion = nullptr |
Callback for any motion detection.
Definition at line 54 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
Referenced by SensorBMA456H::setOnAnyMotionCallback(), and SensorBMA456H::update().
| std::function<void(AccelerometerData &)> SensorBMA456H::EventCallbacks::onDataReady = nullptr |
Callback for new accelerometer data.
Definition at line 56 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
Referenced by SensorBMA456H::setOnDataReadyCallback(), and SensorBMA456H::update().
| std::function<void(void)> SensorBMA456H::EventCallbacks::onNoMotion = nullptr |
Callback for no-motion detection.
Definition at line 55 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
Referenced by SensorBMA456H::setOnNoMotionCallback(), and SensorBMA456H::update().
| std::function<void(uint32_t)> SensorBMA456H::EventCallbacks::onStepCount = nullptr |
Callback for step count updates.
Definition at line 52 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
Referenced by SensorBMA456H::setOnStepCountCallback(), and SensorBMA456H::update().
| std::function<void()> SensorBMA456H::EventCallbacks::onStepDetected = nullptr |
Callback for step detection events.
Definition at line 51 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
Referenced by SensorBMA456H::setOnStepDetectedCallback(), and SensorBMA456H::update().
| std::function<void(TapType)> SensorBMA456H::EventCallbacks::onTap = nullptr |
Callback for tap detection events.
Definition at line 50 of file sensor/accelerometer/bma/SensorBMA456H.hpp.
Referenced by SensorBMA456H::setOnTapCallback(), and SensorBMA456H::update().