Trait embedded_can::blocking::Can
source · [−]pub trait Can {
type Frame: Frame;
type Error: Error;
fn transmit(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;
fn receive(&mut self) -> Result<Self::Frame, Self::Error>;
}
Expand description
A blocking CAN interface that is able to transmit and receive frames.
Required Associated Types
Required Methods
Puts a frame in the transmit buffer. Blocks until space is available in the transmit buffer.