# esp32_BNO08x: include/report/BNO08xRptRawMEMSAccelerometer.hpp Source File

Loading...
Searching...
No Matches
BNO08xRptRawMEMSAccelerometer.hpp
Go to the documentation of this file.
#pragma once
#include "BNO08xRpt.hpp"
class BNO08xRptRawMEMSAccelerometer : public BNO08xRpt
{
public:
BNO08xRptRawMEMSAccelerometer(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t* sync_ctx)
: BNO08xRpt(ID, rpt_bit, sync_ctx)
{
}
bool enable(
uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg = BNO08xPrivateTypes::default_sensor_cfg) override;
bno08x_raw_accel_t get();
private:
void update_data(sh2_SensorValue_t* sensor_val) override;
bno08x_raw_accel_t data;
static const constexpr char* TAG = "BNO08xRptRawMEMSAccelerometer";
};
BNO08xRpt.hpp
BNO08xRpt
Class to represent and manage reports returned from BNO08x.
Definition BNO08xRpt.hpp:26
BNO08xRpt::sync_ctx
BNO08xPrivateTypes::bno08x_sync_ctx_t * sync_ctx
Definition BNO08xRpt.hpp:42
BNO08xRpt::ID
uint8_t ID
Report ID, ex. SH2_ACCELERATION.
Definition BNO08xRpt.hpp:39
BNO08xRpt::rpt_bit
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
BNO08xRptRawMEMSAccelerometer
Class to represent raw accelerometer reports. (See Ref. Manual 6.5.8)
Definition BNO08xRptRawMEMSAccelerometer.hpp:16
BNO08xRptRawMEMSAccelerometer::BNO08xRptRawMEMSAccelerometer
BNO08xRptRawMEMSAccelerometer(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition BNO08xRptRawMEMSAccelerometer.hpp:18
BNO08xRptRawMEMSAccelerometer::update_data
void update_data(sh2_SensorValue_t *sensor_val) override
Updates raw accelerometer data from decoded sensor event.
Definition BNO08xRptRawMEMSAccelerometer.cpp:15
BNO08xRptRawMEMSAccelerometer::enable
bool enable(uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg=BNO08xPrivateTypes::default_sensor_cfg) override
Enables raw accelerometer reports such that the BNO08x begins sending them.
Definition BNO08xRptRawMEMSAccelerometer.cpp:35
BNO08xRptRawMEMSAccelerometer::data
bno08x_raw_accel_t data
Definition BNO08xRptRawMEMSAccelerometer.hpp:29
BNO08xRptRawMEMSAccelerometer::get
bno08x_raw_accel_t get()
Grabs most recent raw accelerometer data, units are ADC counts, time_stamp in microseconds.
Definition BNO08xRptRawMEMSAccelerometer.cpp:46
BNO08xRptRawMEMSAccelerometer::TAG
static const constexpr char * TAG
Definition BNO08xRptRawMEMSAccelerometer.hpp:30
BNO08xPrivateTypes::default_sensor_cfg
static sh2_SensorConfig default_sensor_cfg
Definition BNO08xPrivateTypes.hpp:127
BNO08xPrivateTypes::bno08x_sync_ctx_t
Holds context used to synchronize tasks and callback execution.
Definition BNO08xPrivateTypes.hpp:57
bno08x_raw_accel_t
Struct to represent raw mems accelerometer data from raw accelerometer reports (units in ADC counts).
Definition BNO08xGlobalTypes.hpp:624