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