fh101rf/lib.rs
1//! Driver crate for the FH101RF Wake-Up Radio
2//!
3//! The driver is built on top of [`embedded-hal`], which means it is portable
4//! and can be used on any platform that implements the `embedded-hal` API (also async)
5//!
6//! [`embedded-hal`]: https://crates.io/crates/embedded-hal
7#![no_std]
8
9#[cfg(feature = "async")]
10use maybe_async::must_be_async as maybe_async_attr;
11#[cfg(not(feature = "async"))]
12use maybe_async::must_be_sync as maybe_async_attr;
13
14#[cfg(not(feature = "async"))]
15use embedded_hal as hal_type;
16#[cfg(feature = "async")]
17use embedded_hal_async as hal_type;
18
19pub mod registers;
20
21mod config;
22pub use config::Fh101rfConfig;
23
24mod error;
25pub use error::Error;
26
27mod device;
28pub use device::{Fh101rf, LcoCalibData};