Skip to main content

asm330lhhx_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::delay::DelayNs;
10    use embedded_hal_async::i2c::{I2c, SevenBitAddress};
11    use embedded_hal_async::spi::SpiDevice;
12    use st_mems_bus::asynchronous::*;
13
14    pub mod driver;
15    pub mod prelude;
16    pub mod register;
17
18    pub use driver::*;
19}
20
21#[cfg(feature = "blocking")]
22#[path = "."]
23pub mod blocking {
24    use bisync::synchronous::*;
25    use embedded_hal::delay::DelayNs;
26    use embedded_hal::i2c::{I2c, SevenBitAddress};
27    use embedded_hal::spi::SpiDevice;
28    use st_mems_bus::blocking::*;
29
30    pub mod driver;
31    pub mod prelude;
32    pub mod register;
33
34    pub use driver::*;
35}