Skip to content

Latest commit

 

History

History
75 lines (57 loc) · 1.75 KB

README.md

File metadata and controls

75 lines (57 loc) · 1.75 KB

bmi088-rs

Embedded-hal driver for Bosch Sensortec BMI088.

Sensor Datasheet (PDF)

Thank you to @eldruin. The design of this driver is based very strongly on his work.

Status

  • Interfaces

    • I2C
    • SPI
  • Accelerometer

    • Error/Status Registers
    • Data Registers
    • Interrupt Registers
    • Sensor Time Register
    • Temperature Register
    • Sensor Config Registers
    • Interrupt Configuration (1/2)
    • Power Configuration
    • Self Test
    • Example Code
  • Gyroscope

    • Data Registers
    • Sensor Config Registers
    • Power Mode Registers
    • Interrupt Configuration (3/4)
    • Status Registers
    • Self Test
    • Example Code
  • Misc.

    • Publish on crates.io
    • Release versions
    • Usage documentation

Example Code

To load the example code, create your .cargo configuration:

[target.thumbv7em-none-eabihf]
rustflags = [
  # --- KEEP existing `link-arg` flags ---
  "-C", "link-arg=-Tlink.x",
  "-C", "link-arg=--nmagic",
  # --- ADD following new flag ---
  "-C", "link-arg=-Tdefmt.x",
]

[build]
target = "thumbv7em-none-eabihf"

[env]
DEFMT_LOG = "trace"

[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-run --chip STM32F401RCTx"

Replacing your board setup, of course. By default, the examples use SPI3:

  • SCK: pc10
  • MISO: pc11
  • MOSI: pc12
  • Acc CS: pd2
  • Gyro CS: pb5

However, you can easily replace the pin and peripheral setup with your own.

You should be able to compile and run the code examples by doing cargo run.