Add BWP and performance mode API to BMI270#800
Merged
Conversation
espzav
reviewed
Jun 24, 2026
9f18098 to
a42bc0f
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ESP-BSP Pull Request checklist
Change description
Added bandwidth and filter performance API
Closes #792
Note
Low Risk
Additive, opt-in sensor driver API with no changes to default init or data paths; risk is mainly misconfigured register values affecting IMU quality or power.
Overview
Bumps the bmi270 component to 1.1.0 and exposes optional tuning for accelerometer and gyroscope beyond existing ODR/range setters.
New public enums cover accelerometer bandwidth (
bmi270_acce_bwp_e), gyro bandwidth (bmi270_gyro_bwp_e), and power vs performance (bmi270_perf_e). Five setters read-modify-writeBMI270_ACC_CONF_REG/BMI270_GYR_CONF_REGwith the same validation as other config helpers:bmi270_set_acce_bwp,bmi270_set_acce_filter_perf,bmi270_set_gyro_bwp,bmi270_set_gyro_noise_perf, andbmi270_set_gyro_filter_perf. Private bit masks and field positions were added to support those writes.bmi270_startandbmi270_config_tare unchanged, so apps must call the new APIs explicitly when they want different filtering or performance.Reviewed by Cursor Bugbot for commit a42bc0f. Bugbot is set up for automated code reviews on this repo. Configure here.