Skip to main content

lps22hh_rs/
lib.rs

1#![no_std]
2#![doc = include_str!("../README.md")]
3#![allow(clippy::duplicate_mod)]
4
5#[cfg(feature = "async")]
6#[path = "."]
7pub mod asynchronous {
8    use bisync::asynchronous::*;
9    use embedded_hal_async::i2c::{I2c, SevenBitAddress};
10    use embedded_hal_async::spi::SpiDevice;
11    use st_mems_bus::asynchronous::*;
12
13    pub mod driver;
14    pub mod prelude;
15    pub mod register;
16
17    pub use driver::*;
18}
19
20#[cfg(feature = "blocking")]
21#[path = "."]
22pub mod blocking {
23    use bisync::synchronous::*;
24    use embedded_hal::i2c::{I2c, SevenBitAddress};
25    use embedded_hal::spi::SpiDevice;
26    use st_mems_bus::blocking::*;
27
28    pub mod driver;
29    pub mod prelude;
30    pub mod register;
31
32    pub use driver::*;
33}