[][src]Trait embedded_hal_can::Transmitter

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

A CAN interface that is able to transmit frames.

Required methods

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.

Loading content...

Implementors

Loading content...