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

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.
 

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/SensorBMA456H.hpp.

Member Data Documentation

◆ onActivity

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().

◆ onAnyMotion

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().

◆ onDataReady

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().

◆ onNoMotion

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().

◆ onStepCount

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().

◆ onStepDetected

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().

◆ onTap

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().


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