Struct bxcan::Tx [−][src]
pub struct Tx<I> { /* fields omitted */ }
Expand description
Interface to the CAN transmitter part.
Implementations
impl<I> Tx<I> where
I: Instance,
[src]
impl<I> Tx<I> where
I: Instance,
[src]pub fn transmit(&mut self, frame: &Frame) -> Result<Option<Frame>, Infallible>
[src]
pub fn transmit(&mut self, frame: &Frame) -> Result<Option<Frame>, Infallible>
[src]Puts a CAN frame in a free transmit mailbox for transmission on the bus.
Frames are transmitted to the bus based on their priority (identifier).
Transmit order is preserved for frames with identical identifiers.
If all transmit mailboxes are full, a higher priority frame replaces the
lowest priority frame, which is returned as Ok(Some(frame))
.
pub fn transmit_and_get_mailbox(
&mut self,
frame: &Frame
) -> Result<(Option<Frame>, Mailbox), Infallible>
[src]
pub fn transmit_and_get_mailbox(
&mut self,
frame: &Frame
) -> Result<(Option<Frame>, Mailbox), Infallible>
[src]Puts a CAN frame in a free transmit mailbox for transmission on the bus.
This function is equivalent to transmit
except that it returns the
mailbox that was accessed. This can be used to keep track of additional information
about each frame, even when frames are placed into transmit mailboxes and later
removed before being transmitted.
pub fn abort(&mut self, mailbox: Mailbox) -> bool
[src]
pub fn abort(&mut self, mailbox: Mailbox) -> bool
[src]Attempts to abort the sending of a frame that is pending in a mailbox.
If there is no frame in the provided mailbox, this function has no effect and returns false.
If there is a frame in the provided mailbox, this function returns true if the transmission was aborted. This function returns false if the frame was successfully transmitted.
pub fn clear_interrupt_flags(&mut self)
[src]
pub fn clear_interrupt_flags(&mut self)
[src]Clears the request complete flag for all mailboxes.
Auto Trait Implementations
impl<I> Send for Tx<I> where
I: Send,
I: Send,
impl<I> Sync for Tx<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Tx<I> where
I: Unpin,
I: Unpin,