Struct fdcan::Tx

source · []
pub struct Tx<I, MODE> { /* private fields */ }
Expand description

Interface to the CAN transmitter part.

Implementations

Puts a CAN frame in a 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 can replace a lower-priority frame, which is returned via the closure ‘pending’. If ‘pending’ is called; it’s return value is returned via Option

, if it is not, None is returned. If there are only higher priority frames in the queue, this returns Err::WouldBlock

As Transmit, but if there is a pending frame, pending will be called so that the frame can be preserved.

Returns if the tx queue is able to accept new messages without having to cancel an existing one

Returns true if no frame is pending for transmission.

Clears the transmission complete flag.

Clears the transmission cancelled flag.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.