M5Unified
|
#include <BMI270_Class.hpp>
Public Member Functions | |
virtual | ~BMI270_Class () |
BMI270_Class (std::uint8_t i2c_addr=DEFAULT_ADDRESS, std::uint32_t freq=400000, I2C_Class *i2c=&In_I2C) | |
imu_spec_t | begin (I2C_Class *i2c=nullptr) override |
imu_spec_t | getImuRawData (imu_raw_data_t *data) const override |
void | getConvertParam (imu_convert_param_t *param) const override |
bool | getTempAdc (int16_t *adc) const override |
std::uint8_t | WhoAmI (void) |
![]() | |
virtual | ~IMU_Base () |
IMU_Base (std::uint8_t i2c_addr, std::uint32_t freq=400000, I2C_Class *i2c=&In_I2C) | |
virtual bool | setINTPinActiveLogic (bool level) |
![]() | |
I2C_Device (std::uint8_t i2c_addr, std::uint32_t freq, I2C_Class *i2c=&In_I2C) | |
void | setPort (I2C_Class *i2c) |
bool | writeRegister8 (std::uint8_t reg, std::uint8_t data) const |
std::uint8_t | readRegister8 (std::uint8_t reg) const |
bool | writeRegister8Array (const std::uint8_t *reg_data_array, std::size_t length) const |
bool | writeRegister (std::uint8_t reg, const std::uint8_t *data, std::size_t length) const |
bool | readRegister (std::uint8_t reg, std::uint8_t *result, std::size_t length) const |
bool | bitOn (std::uint8_t reg, std::uint8_t bit) const |
bool | bitOff (std::uint8_t reg, std::uint8_t bit) const |
bool | isEnabled (void) const |
Static Public Attributes | |
static constexpr const std::uint8_t | CHIP_ID_ADDR = 0x00 |
static constexpr const std::uint8_t | ERR_REG_ADDR = 0x02 |
static constexpr const std::uint8_t | STATUS_ADDR = 0x03 |
static constexpr const std::uint8_t | AUX_X_LSB_ADDR = 0x04 |
static constexpr const std::uint8_t | ACC_X_LSB_ADDR = 0x0C |
static constexpr const std::uint8_t | GYR_X_LSB_ADDR = 0x12 |
static constexpr const std::uint8_t | SENSORTIME_ADDR = 0x18 |
static constexpr const std::uint8_t | EVENT_ADDR = 0x1B |
static constexpr const std::uint8_t | INT_STATUS_0_ADDR = 0x1C |
static constexpr const std::uint8_t | INT_STATUS_1_ADDR = 0x1D |
static constexpr const std::uint8_t | SC_OUT_0_ADDR = 0x1E |
static constexpr const std::uint8_t | SYNC_COMMAND_ADDR = 0x1E |
static constexpr const std::uint8_t | GYR_CAS_GPIO0_ADDR = 0x1E |
static constexpr const std::uint8_t | INTERNAL_STATUS_ADDR = 0x21 |
static constexpr const std::uint8_t | TEMPERATURE_0_ADDR = 0x22 |
static constexpr const std::uint8_t | FIFO_LENGTH_0_ADDR = 0x24 |
static constexpr const std::uint8_t | FIFO_DATA_ADDR = 0x26 |
static constexpr const std::uint8_t | FEAT_PAGE_ADDR = 0x2F |
static constexpr const std::uint8_t | FEATURES_REG_ADDR = 0x30 |
static constexpr const std::uint8_t | ACC_CONF_ADDR = 0x40 |
static constexpr const std::uint8_t | GYR_CONF_ADDR = 0x42 |
static constexpr const std::uint8_t | AUX_CONF_ADDR = 0x44 |
static constexpr const std::uint8_t | FIFO_DOWNS_ADDR = 0x45 |
static constexpr const std::uint8_t | FIFO_WTM_0_ADDR = 0x46 |
static constexpr const std::uint8_t | FIFO_WTM_1_ADDR = 0x47 |
static constexpr const std::uint8_t | FIFO_CONFIG_0_ADDR = 0x48 |
static constexpr const std::uint8_t | FIFO_CONFIG_1_ADDR = 0x49 |
static constexpr const std::uint8_t | AUX_DEV_ID_ADDR = 0x4B |
static constexpr const std::uint8_t | AUX_IF_CONF_ADDR = 0x4C |
static constexpr const std::uint8_t | AUX_RD_ADDR = 0x4D |
static constexpr const std::uint8_t | AUX_WR_ADDR = 0x4E |
static constexpr const std::uint8_t | AUX_WR_DATA_ADDR = 0x4F |
static constexpr const std::uint8_t | INT1_IO_CTRL_ADDR = 0x53 |
static constexpr const std::uint8_t | INT2_IO_CTRL_ADDR = 0x54 |
static constexpr const std::uint8_t | INT_LATCH_ADDR = 0x55 |
static constexpr const std::uint8_t | INT1_MAP_FEAT_ADDR = 0x56 |
static constexpr const std::uint8_t | INT2_MAP_FEAT_ADDR = 0x57 |
static constexpr const std::uint8_t | INT_MAP_DATA_ADDR = 0x58 |
static constexpr const std::uint8_t | INIT_CTRL_ADDR = 0x59 |
static constexpr const std::uint8_t | INIT_ADDR_0 = 0x5B |
static constexpr const std::uint8_t | INIT_ADDR_1 = 0x5C |
static constexpr const std::uint8_t | INIT_DATA_ADDR = 0x5E |
static constexpr const std::uint8_t | AUX_IF_TRIM = 0x68 |
static constexpr const std::uint8_t | GYR_CRT_CONF_ADDR = 0x69 |
static constexpr const std::uint8_t | NVM_CONF_ADDR = 0x6A |
static constexpr const std::uint8_t | IF_CONF_ADDR = 0x6B |
static constexpr const std::uint8_t | ACC_SELF_TEST_ADDR = 0x6D |
static constexpr const std::uint8_t | GYR_SELF_TEST_AXES_ADDR = 0x6E |
static constexpr const std::uint8_t | SELF_TEST_MEMS_ADDR = 0x6F |
static constexpr const std::uint8_t | NV_CONF_ADDR = 0x70 |
static constexpr const std::uint8_t | ACC_OFF_COMP_0_ADDR = 0x71 |
static constexpr const std::uint8_t | GYR_OFF_COMP_3_ADDR = 0x74 |
static constexpr const std::uint8_t | GYR_OFF_COMP_6_ADDR = 0x77 |
static constexpr const std::uint8_t | GYR_USR_GAIN_0_ADDR = 0x78 |
static constexpr const std::uint8_t | PWR_CONF_ADDR = 0x7C |
static constexpr const std::uint8_t | PWR_CTRL_ADDR = 0x7D |
static constexpr const std::uint8_t | CMD_REG_ADDR = 0x7E |
static constexpr const std::uint8_t | G_TRIGGER_CMD = 0x02 |
static constexpr const std::uint8_t | USR_GAIN_CMD = 0x03 |
static constexpr const std::uint8_t | NVM_PROG_CMD = 0xA0 |
static constexpr const std::uint8_t | SOFT_RESET_CMD = 0xB6 |
static constexpr const std::uint8_t | FIFO_FLUSH_CMD = 0xB0 |
static constexpr std::uint8_t | DEFAULT_ADDRESS = 0x69 |
Protected Member Functions | |
bool | _upload_file (const std::uint8_t *config_data, std::size_t index, std::size_t write_len) |
bool | auxSetupMode (std::uint8_t i2c_addr) |
bool | auxWriteRegister8 (std::uint8_t reg, std::uint8_t data) |
std::uint8_t | auxReadRegister8 (std::uint8_t reg) |
Additional Inherited Members | |
![]() | |
enum | imu_spec_t { imu_spec_none = 0 , imu_spec_accel = 0b0001 , imu_spec_gyro = 0b0010 , imu_spec_mag = 0b0100 } |
![]() | |
I2C_Class * | _i2c |
std::uint32_t | _freq |
std::uint8_t | _addr |
bool | _init |
Definition at line 11 of file BMI270_Class.hpp.
|
virtual |
m5::BMI270_Class::BMI270_Class | ( | std::uint8_t | i2c_addr = DEFAULT_ADDRESS , |
std::uint32_t | freq = 400000 , |
||
I2C_Class * | i2c = &In_I2C |
||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
Implements m5::IMU_Base.
|
overridevirtual |
Implements m5::IMU_Base.
|
overridevirtual |
Implements m5::IMU_Base.
|
overridevirtual |
Reimplemented from m5::IMU_Base.
std::uint8_t m5::BMI270_Class::WhoAmI | ( | void | ) |
|
staticconstexpr |
Definition at line 33 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 64 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 60 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 18 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 35 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 41 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 42 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 56 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 43 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 44 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 45 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 17 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 14 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 70 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 80 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 15 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 21 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 31 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 32 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 39 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 40 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 30 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 36 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 77 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 29 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 37 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 38 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 73 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 26 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 34 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 57 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 65 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 66 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 61 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 67 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 19 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 59 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 53 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 54 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 52 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 55 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 46 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 49 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 47 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 50 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 48 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 51 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 22 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 23 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 27 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 63 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 58 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 75 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 68 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 69 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 24 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 62 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 20 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 76 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 16 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 25 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 28 of file BMI270_Class.hpp.
|
staticconstexpr |
Definition at line 74 of file BMI270_Class.hpp.