pub struct BufferedCanFd<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> { /* private fields */ }
Expand description
Buffered FDCAN Instance
Implementations§
source§impl<'c, 'd, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
impl<'c, 'd, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
sourcepub fn properties(&self) -> &Properties
pub fn properties(&self) -> &Properties
Get driver properties
sourcepub async fn read(&mut self) -> Result<FdEnvelope, BusError>
pub async fn read(&mut self) -> Result<FdEnvelope, BusError>
Async read frame from RX buffer.
sourcepub fn writer(&self) -> BufferedFdCanSender
pub fn writer(&self) -> BufferedFdCanSender
Returns a sender that can be used for sending CAN frames.
sourcepub fn reader(&self) -> BufferedFdCanReceiver
pub fn reader(&self) -> BufferedFdCanReceiver
Returns a receiver that can be used for receiving CAN frames. Note, each CAN frame will only be received by one receiver.
Trait Implementations§
Auto Trait Implementations§
impl<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> Freeze for BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
impl<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> !RefUnwindSafe for BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
impl<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> !Send for BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
impl<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> !Sync for BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
impl<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> Unpin for BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
impl<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> !UnwindSafe for BufferedCanFd<'d, TX_BUF_SIZE, RX_BUF_SIZE>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more