Enum bxcan::Interrupt [−][src]
#[non_exhaustive] pub enum Interrupt { TransmitMailboxEmpty, Fifo0MessagePending, Fifo0Full, Fifo0Overrun, Fifo1MessagePending, Fifo1Full, Fifo1Overrun, Error, Wakeup, Sleep, }
Expand description
bxCAN interrupt sources.
These can be individually enabled and disabled in the bxCAN peripheral. Note that the bxCAN peripheral only exposes 4 interrupts to the microcontroller:
- TX
- RX FIFO 1
- RX FIFO 2
- SCE (Status Change Error)
This means that some of the interrupts listed here will result in the same interrupt handler being invoked.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Expand description
Fires the TX interrupt when one of the transmit mailboxes returns to empty state.
This usually happens because its message was either transmitted successfully, or transmission was aborted successfully.
The interrupt handler must clear the interrupt condition by calling
Can::clear_request_completed_flag
or Can::clear_tx_interrupt
.
Expand description
Fires the RX FIFO 0 interrupt when FIFO 0 holds a message.
The interrupt handler must clear the interrupt condition by receiving all messages from the
FIFO by calling Can::receive
or Rx::receive
.
Expand description
Fires the RX FIFO 0 interrupt when FIFO 0 holds 3 incoming messages.
The interrupt handler must clear the interrupt condition by receiving at least one message
from the FIFO (making it no longer “full”). This can be done by calling Can::receive
or
Rx::receive
.
Expand description
Fires the RX FIFO 0 interrupt when FIFO 0 drops an incoming message.
The interrupt handler must clear the interrupt condition by calling Can::receive
or
Rx::receive
(which will return an error).
Expand description
Fires the RX FIFO 1 interrupt when FIFO 1 holds a message.
Behavior is otherwise identical to Self::Fifo0MessagePending
.
Expand description
Fires the RX FIFO 1 interrupt when FIFO 1 holds 3 incoming messages.
Behavior is otherwise identical to Self::Fifo0Full
.
Expand description
Fires the RX FIFO 1 interrupt when FIFO 1 drops an incoming message.
Behavior is otherwise identical to Self::Fifo0Overrun
.
Expand description
Fires the SCE interrupt when an incoming CAN frame is detected while the peripheral is in sleep mode.
The interrupt handler must clear the interrupt condition by calling
Can::clear_wakeup_interrupt
.
Expand description
Fires the SCE interrupt when the peripheral enters sleep mode.
The interrupt handler must clear the interrupt condition by calling
Can::clear_sleep_interrupt
.
Trait Implementations
impl BitOrAssign<Interrupt> for Interrupts
[src]
impl BitOrAssign<Interrupt> for Interrupts
[src]Adds an interrupt to the interrupt set.
fn bitor_assign(&mut self, rhs: Interrupt)
[src]
fn bitor_assign(&mut self, rhs: Interrupt)
[src]Performs the |=
operation. Read more