pub struct DW3XXX {
}
impl DW3XXX {
pub fn new() -> Self {
todo!()
}
pub fn decompose(self) -> () {
todo!()
}
pub async fn clear_interrupts(&mut self) -> Result<(), FastCommandError> {
todo!()
}
pub async fn toggle_buffer(&mut self) -> Result<(), FastCommandError> {
todo!()
}
pub async fn force_idle(&mut self) -> Result<(), FastCommandError> {
todo!()
}
pub async fn receive(&mut self) -> Result<ReceiverFrame, ReceiveCommandError> {
todo!()
}
pub async fn transmit(&mut self) -> Result<(), FastCommandError> {
todo!()
}
pub async fn transmit_receive(&mut self) -> Result<ReceiverFrame, TransmitReceiveCommandError> {
todo!()
}
pub async fn listen_transmit(&mut self) -> Result<(), FastCommandError> {
todo!()
}
pub async fn listen_transmit_receive(&mut self) -> Result<ReceiverFrame, TransmitReceiveCommandError> {
todo!()
}
pub async fn delayed_receive(&mut self, kind: TransceiverDelay) -> Result<ReceiverFrame, ReceiveCommandError> {
todo!()
}
pub async fn delayed_transmit(&mut self, kind: TransceiverDelay) -> Result<(), FastCommandError> {
todo!()
}
pub async fn delayed_transmit_receive(&mut self, kind: TransceiverDelay) -> Result<ReceiverFrame, TransmitReceiveCommandError> {
todo!()
}
}
pub enum TransceiverDelay {
Absolute, LastRx, LastTx, Internal }
pub enum TransmitReceiveCommandError {
ReceiverError(ReceiverError),
CommandError(FastCommandError)
}
pub enum ReceiveCommandError {
ReceiverError(ReceiverError),
CommandError(FastCommandError)
}
pub enum ReceiverError {
PreambleTimeout, PreambleRejection, SfdTimeout, FrameTimeout, PhrDecodeError, ReedSolomonDecodeError, CiaTimeout, DoubleBufferOverrun }
pub enum ReceiverFrame {
Ok(), Partial() }
pub enum FastCommandError {
SpiError(SpiError),
FastCommandError }
pub enum SpiError {
CrcError, OverflowError, UnderflowError, CollisionError }