|
M5Unit-IMU 0.0.2 git rev:e5b00aa
|
BMI270 setting enums and measurement data (framework independent) More...
Go to the source code of this file.
Classes | |
| struct | m5::unit::bmi270::Data |
| One measurement. Accel/gyro are always 12 bytes, little-endian (register 0x0C when the AUX/BMM150 bridge is not in use, or bytes [8..19] of the 20 byte burst from register 0x04 when it is; see UnitBMI270::read_measurement()) More... | |
Namespaces | |
| namespace | m5 |
| Top level namespace of M5Stack. | |
Enumerations | |
| enum class | m5::unit::bmi270::AccelRange : uint8_t { G2 , G4 , G8 , G16 } |
| Accelerometer full scale range (REG_ACC_RANGE register 0x41) More... | |
| enum class | m5::unit::bmi270::GyroRange : uint8_t { DPS2000 , DPS1000 , DPS500 , DPS250 , DPS125 } |
| Gyroscope full scale range (REG_GYR_RANGE register 0x43) More... | |
| enum class | m5::unit::bmi270::AccelODR : uint8_t { Rate12_5Hz = 0x05 , Rate25Hz , Rate50Hz , Rate100Hz , Rate200Hz , Rate400Hz , Rate800Hz , Rate1600Hz } |
| Accelerometer output data rate (REG_ACC_CONF register 0x40, bits[3:0]) More... | |
| enum class | m5::unit::bmi270::GyroODR : uint8_t { Rate25Hz = 0x06 , Rate50Hz , Rate100Hz , Rate200Hz , Rate400Hz , Rate800Hz , Rate1600Hz , Rate3200Hz } |
| Gyroscope output data rate (REG_GYR_CONF register 0x42, bits[3:0]) More... | |
| enum class | m5::unit::bmi270::FilterPerf : uint8_t { PowerOptimized , Performance } |
| Filter performance mode (REG_ACC_CONF bit7 / REG_GYR_CONF bit7) More... | |
| enum class | m5::unit::bmi270::AccelBwp : uint8_t { Osr4Avg1 , Osr2Avg2 , NormAvg4 , CicAvg8 , Avg16 , Avg32 , Avg64 , Avg128 } |
| Accelerometer bandwidth parameter (REG_ACC_CONF register 0x40, bits[6:4]) More... | |
| enum class | m5::unit::bmi270::GyroBwp : uint8_t { Osr4 , Osr2 , Norm } |
| Gyroscope bandwidth parameter (REG_GYR_CONF register 0x42, bits[5:4]) More... | |
Functions | |
| constexpr bool | m5::unit::bmi270::bwp_fits (const FilterPerf perf, const AccelBwp bwp) |
| Is this bandwidth parameter usable in the given filter performance mode? | |
| constexpr uint8_t | m5::unit::bmi270::acc_conf_value (const FilterPerf perf, const AccelBwp bwp, const AccelODR odr) |
| REG_ACC_CONF value for the given settings. | |
| constexpr uint8_t | m5::unit::bmi270::gyr_conf_value (const FilterPerf perf, const GyroBwp bwp, const GyroODR odr) |
| REG_GYR_CONF value for the given settings. | |
| constexpr float | m5::unit::bmi270::accel_res (const AccelRange r) |
| G per LSB for each AccelRange. | |
| constexpr float | m5::unit::bmi270::gyro_res (const GyroRange r) |
| dps per LSB for each GyroRange (note: value 0 is the largest range, see GyroRange) | |
| constexpr uint32_t | m5::unit::bmi270::odr_interval_ms (const GyroODR odr) |
| Sampling interval in milliseconds for the given GyroODR. | |
Variables | |
| constexpr uint32_t | m5::unit::bmi270::GYRO_ODR_INTERVAL_MS [14] |
BMI270 setting enums and measurement data (framework independent)
|
strong |
Accelerometer bandwidth parameter (REG_ACC_CONF register 0x40, bits[6:4])
One field with two meanings, chosen by FilterPerf: a filter setting in Performance mode, an averaging factor in PowerOptimized mode. The averaging-only values are reserved in Performance mode, so the combination is validated (see bwp_fits())
|
strong |
|
strong |
|
strong |
|
strong |
Gyroscope bandwidth parameter (REG_GYR_CONF register 0x42, bits[5:4])
| Enumerator | |
|---|---|
| Osr4 | OSR4 filter. |
| Osr2 | OSR2 filter. |
| Norm | Normal filter (power-on default) |
|
strong |
|
strong |
Gyroscope full scale range (REG_GYR_RANGE register 0x43)
| Enumerator | |
|---|---|
| DPS2000 | +-2000 dps (power-on default) |
| DPS1000 | +-1000 dps |
| DPS500 | +-500 dps |
| DPS250 | +-250 dps |
| DPS125 | +-125 dps |
|
constexpr |
REG_ACC_CONF value for the given settings.
|
constexpr |
Is this bandwidth parameter usable in the given filter performance mode?
|
constexpr |
REG_GYR_CONF value for the given settings.
|
constexpr |