1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Platform-agnostic Rust driver for the Bosch BMP581 pressure and temperature sensor.
//!
//! This crate provides a `no_std` compatible driver for the BMP581 barometric pressure sensor,
//! using the [`embedded-hal`](https://docs.rs/embedded-hal) traits for hardware abstraction.
//!
//! # Features
//!
//! - I2C and SPI communication interfaces
//! - `no_std` compatible for embedded systems
//! - Configurable oversampling rates (OSR) and output data rates (ODR)
//! - Interrupt configuration support
//!
//! # Example
//!
//! ```ignore
//! use bmp581::{Bmp581, I2cAddr};
//!
//! let i2c = /* your I2C peripheral */;
//! let mut sensor = Bmp581::new_i2c(i2c, I2cAddr::Default);
//! let mut delay = /* your delay provider */;
//!
//! sensor.init(&mut delay)?;
//!
//! let temperature = sensor.read_temperature()?;
//! let pressure = sensor.read_pressure()?;
//! ```
pub use I2cAddr;
pub use Bmp581;