embedded_hal_can

Trait Transmitter

Source
pub trait Transmitter: Interface {
    // Required method
    fn transmit(
        &mut self,
        frame: &Self::Frame,
    ) -> Result<Option<Self::Frame>, Self::Error>;
}
Expand description

A CAN interface that is able to transmit frames.

Required Methods§

Source

fn transmit( &mut self, frame: &Self::Frame, ) -> Result<Option<Self::Frame>, Self::Error>

Put a Frame in the transmit buffer (or a free mailbox).

If the buffer is full, this function will try to replace a lower priority Frame and return it. This is to avoid the priority inversion problem.

Implementors§