27 void update_data(sh2_SensorValue_t* sensor_val)
override;
29 static const constexpr char*
TAG =
"BNO08xRptTapDetector";
Class to represent and manage reports returned from BNO08x.
Definition BNO08xRpt.hpp:24
BNO08xPrivateTypes::bno08x_sync_ctx_t * sync_ctx
Definition BNO08xRpt.hpp:39
uint8_t ID
Report ID, ex. SH2_ACCELERATION.
Definition BNO08xRpt.hpp:36
EventBits_t rpt_bit
Respective enable and data bit for report in evt_grp_rpt_en and evt_grp_rpt_data.
Definition BNO08xRpt.hpp:37
Class to represent tap detector reports. (See Ref. Manual 6.5.27)
Definition BNO08xRptTapDetector.hpp:16
bno08x_tap_detector_t data
Definition BNO08xRptTapDetector.hpp:28
bool enable(uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg=BNO08xPrivateTypes::default_sensor_cfg)
Enables tap detector reports such that the BNO08x begins sending them (only sends reports when a tap ...
Definition BNO08xRptTapDetector.cpp:18
static const constexpr char * TAG
Definition BNO08xRptTapDetector.hpp:29
void update_data(sh2_SensorValue_t *sensor_val) override
Updates tap detector data from decoded sensor event.
Definition BNO08xRptTapDetector.cpp:33
bno08x_tap_detector_t get()
Grabs most recent tap detector detector data.
Definition BNO08xRptTapDetector.cpp:49
BNO08xRptTapDetector(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition BNO08xRptTapDetector.hpp:18
static sh2_SensorConfig default_sensor_cfg
Definition BNO08xPrivateTypes.hpp:125
Holds context used to synchronize tasks and callback execution.
Definition BNO08xPrivateTypes.hpp:57
Struct to represent tap detector data (flag meaning: 0 = no tap, 1 = positive tap on axis,...
Definition BNO08xGlobalTypes.hpp:447