[][src]Trait embedded_can::blocking::Can

pub trait Can {
    type Frame: Frame;
    type Error;
    pub fn try_write(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;
pub fn try_read(&mut self) -> Result<Self::Frame, Self::Error>; }

A blocking CAN interface that is able to transmit and receive frames.

Associated Types

type Frame: Frame[src]

Associated frame type.

type Error[src]

Associated error type.

Loading content...

Required methods

pub fn try_write(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>[src]

Puts a frame in the transmit buffer. Blocks until space is available in the transmit buffer.

pub fn try_read(&mut self) -> Result<Self::Frame, Self::Error>[src]

Blocks until a frame was received or an error occured.

Loading content...

Implementors

impl<S> Can for S where
    S: Default
[src]

type Frame = S::Frame

type Error = S::Error

Loading content...