12static const uint8_t BMI270_REG_CHIP_ID = 0x00;
13static const uint8_t BMI270_REG_ERR_REG = 0x02;
14static const uint8_t BMI270_REG_STATUS = 0x03;
15static const uint8_t BMI270_REG_DATA_8 = 0x0C;
16static const uint8_t BMI270_REG_DATA_14 = 0x12;
17static const uint8_t BMI270_REG_TEMP_0 = 0x22;
18static const uint8_t BMI270_REG_TEMP_MSB = 0x23;
20static constexpr uint8_t REG_READ_LEN =
21 BMI270_REG_TEMP_MSB - BMI270_REG_DATA_8 +
24static const uint8_t BMI270_REG_PWR_CONF = 0x7C;
25static const uint8_t BMI270_REG_PWR_CTRL = 0x7D;
26static const uint8_t BMI270_REG_INIT_CTRL = 0x59;
27static const uint8_t BMI270_REG_INIT_DATA = 0x5E;
28static const uint8_t BMI270_REG_INIT_ADDR_0 = 0x5B;
29static const uint8_t BMI270_REG_INTERNAL_STATUS = 0x21;
30static const uint8_t BMI270_REG_ACC_CONF = 0x40;
31static const uint8_t BMI270_REG_ACC_RANGE = 0x41;
32static const uint8_t BMI270_REG_GYR_CONF = 0x42;
33static const uint8_t BMI270_REG_GYR_RANGE = 0x43;
35static const uint8_t BMI270_CHIP_ID_VALUE = 0x24;
84 void setup()
override;
void set_gyro_range(BMI270GyroRange r)
void set_accel_range(BMI270AccelRange r)
LazyCallbackManager< void(float)> temperature_callback_
bool update_data(motion::MotionData &data) override
void set_accel_odr(BMI270AccelODR o)
float get_setup_priority() const override
void add_temperature_listener(F &&cb)
BMI270AccelODR accel_odr_
BMI270AccelRange accel_range_
void dump_config() override
void set_gyro_odr(BMI270GyroODR o)
BMI270GyroRange gyro_range_
This Class provides the methods to read/write bytes from/to an i2c device.
constexpr float DATA
For components that import data from directly connected sensors like DHT.