esp32_BNO08x 1.4
C++ BNO08x IMU driver component for esp-idf.
BNO08xRptShakeDetector.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include "BNO08xRpt.hpp"
9
16{
17 public:
20 {
21 }
22
23 bool enable(
24 uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg = BNO08xPrivateTypes::default_sensor_cfg) override;
26
27 private:
28 void update_data(sh2_SensorValue_t* sensor_val) override;
30 static const constexpr char* TAG = "BNO08xRptShakeDetector";
31};
Class to represent and manage reports returned from BNO08x.
Definition: BNO08xRpt.hpp:26
BNO08xPrivateTypes::bno08x_sync_ctx_t * sync_ctx
Definition: BNO08xRpt.hpp:42
uint8_t ID
Report ID, ex. SH2_ACCELERATION.
Definition: BNO08xRpt.hpp:39
EventBits_t rpt_bit
Respective enable and data bit for report in evt_grp_rpt_en and evt_grp_rpt_data.
Definition: BNO08xRpt.hpp:40
Class to represent shake detector reports. (See Ref. Manual 6.5.32)
Definition: BNO08xRptShakeDetector.hpp:16
BNO08xRptShakeDetector(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition: BNO08xRptShakeDetector.hpp:18
bool enable(uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg=BNO08xPrivateTypes::default_sensor_cfg) override
Enables shake detector reports such that the BNO08x begins sending them (only sends reports when a sh...
Definition: BNO08xRptShakeDetector.cpp:36
bno08x_shake_detector_t get()
Grabs most recent shake detector detector data.
Definition: BNO08xRptShakeDetector.cpp:49
Holds context used to synchronize tasks and callback execution.
Definition: BNO08xPrivateTypes.hpp:57
Struct to represent shake detector data (flag meaning: 0 = no shake 1 = shake detected)
Definition: BNO08xGlobalTypes.hpp:816