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
#![no_std] #![doc = include_str!("../README.md")] #![allow(clippy::duplicate_mod)] #[cfg(feature = "async")] #[path = "."] pub mod asynchronous { use bisync::asynchronous::*; use embedded_hal_async::delay::DelayNs; use embedded_hal_async::i2c::{I2c, SevenBitAddress}; use embedded_hal_async::spi::SpiDevice; use st_mems_bus::asynchronous::*; pub mod driver; pub mod prelude; pub mod register; pub use driver::*; } #[cfg(feature = "blocking")] #[path = "."] pub mod blocking { use bisync::synchronous::*; use embedded_hal::delay::DelayNs; use embedded_hal::i2c::{I2c, SevenBitAddress}; use embedded_hal::spi::SpiDevice; use st_mems_bus::blocking::*; pub mod driver; pub mod prelude; pub mod register; pub use driver::*; }