Skip to main content

TxRxState

Trait TxRxState 

Source
pub trait TxRxState {
    type Error;

    // Required method
    fn is_transmitter_idle(&self) -> Result<bool, Self::Error>;
}
Expand description

Inspect driver state related to transmit/receive operation.

Required Associated Types§

Source

type Error

Error returned by the driver implementation.

Required Methods§

Source

fn is_transmitter_idle(&self) -> Result<bool, Self::Error>

Returns true when the transmitter is idle (no frames pending).

The exact definition of “idle” depends on the hardware/driver (e.g. all mailboxes empty).

Implementors§