pub struct TwaiRx<'d, Dm: DriverMode> { /* private fields */ }Expand description
Interface to the TWAI receiver part.
Implementations§
Source§impl TwaiRx<'_, Async>
 
impl TwaiRx<'_, Async>
Sourcepub async fn receive_async(&mut self) -> Result<EspTwaiFrame, EspTwaiError>
 
pub async fn receive_async(&mut self) -> Result<EspTwaiFrame, EspTwaiError>
Receives an EspTwaiFrame asynchronously over the TWAI bus.
Source§impl<Dm> TwaiRx<'_, Dm>where
    Dm: DriverMode,
 
impl<Dm> TwaiRx<'_, Dm>where
    Dm: DriverMode,
Sourcepub fn receive(&mut self) -> Result<EspTwaiFrame, EspTwaiError>
 
pub fn receive(&mut self) -> Result<EspTwaiFrame, EspTwaiError>
Receive a frame