use core::{fmt, num::Wrapping};
#[allow(unused_imports)]
pub use awake::*;
pub use error::*;
pub use ready::*;
#[allow(unused_imports)]
pub use receiving::*;
#[allow(unused_imports)]
pub use sending::*;
#[allow(unused_imports)]
pub use sleeping::*;
pub use state_impls::*;
#[allow(unused_imports)]
pub use uninitialized::*;
use crate::ll;
mod awake;
mod error;
mod ready;
mod receiving;
mod sending;
mod sleeping;
mod state_impls;
mod uninitialized;
#[derive(Copy, Clone)]
pub struct DW3000<SPI, State> {
ll: ll::DW3000<SPI>,
seq: Wrapping<u8>,
state: State,
}
impl<SPI, State> fmt::Debug for DW3000<SPI, State>
where
State: fmt::Debug,
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "DW3000 {{ state: ")?;
self.state.fmt(f)?;
write!(f, ", .. }}")?;
Ok(())
}
}