Enum Interrupt

Source
#[non_exhaustive]
pub enum Interrupt {
Show 24 variants RxFifo0NewMsg = 1, RxFifo0Full = 2, RxFifo0MsgLost = 4, RxFifo1NewMsg = 8, RxFifo1Full = 16, RxFifo1MsgLost = 32, RxHighPrio = 64, TxComplete = 128, TxCancel = 256, TxEmpty = 512, TxEventNew = 1_024, TxEventFull = 2_048, TxEventLost = 4_096, TsWrapAround = 8_192, MsgRamAccessFailure = 16_384, TimeoutOccurred = 32_768, ErrLogOverflow = 65_536, ErrPassive = 131_072, WarningStatus = 262_144, BusOff = 524_288, WatchdogInt = 1_048_576, ProtErrArbritation = 2_097_152, ProtErrData = 4_194_304, ReservedAccess = 8_388_608,
}
Expand description

FdCAN interrupt sources.

These can be individually enabled and disabled in the FdCAN peripheral. Note that each FdCAN peripheral only exposes 2 interrupts to the microcontroller:

FDCANx_INTR0, FDCANx_INTR1,

The interrupts available on each line can be configured using the [crate::config::FdCanConfig] struct.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

RxFifo0NewMsg = 1

Rx FIFO 0 has a new message

§

RxFifo0Full = 2

Rx FIFO 0 is full

§

RxFifo0MsgLost = 4

Rx FIFO 0 has lost a message

§

RxFifo1NewMsg = 8

Rx FIFO 1 has a new message

§

RxFifo1Full = 16

Rx FIFO 1 is full

§

RxFifo1MsgLost = 32

Rx FIFO 1 has lost a message

§

RxHighPrio = 64

A High Priority Message has been flagged by a filter

§

TxComplete = 128

Transmit has been completed

§

TxCancel = 256

Tx message has been cancelled

§

TxEmpty = 512

Tx Fifo is empty

§

TxEventNew = 1_024

An new Event has been received in the Tx Event Fifo

§

TxEventFull = 2_048

The TxEvent Fifo is full

§

TxEventLost = 4_096

An Tx Event has been lost

§

TsWrapAround = 8_192

Timestamp wrap around has occurred

§

MsgRamAccessFailure = 16_384

Message RAM access failure. The flag is set when the Rx handler: has not completed acceptance filtering or storage of an accepted message until the arbitration field of the following message has been received. In this case acceptance filtering or message storage is aborted and the Rx handler starts processing of the following message. was unable to write a message to the message RAM. In this case message storage is aborted. In both cases the FIFO put index is not updated. The partly stored message is overwritten when the next message is stored to this location. The flag is also set when the Tx Handler was not able to read a message from the Message RAM in time. In this case message transmission is aborted. In case of a Tx Handler access failure the FDCAN is switched into Restricted operation Mode (see Restricted operation mode).

§

TimeoutOccurred = 32_768

Timeout Occurred

§

ErrLogOverflow = 65_536

Overflow of CAN error logging counter occurred

§

ErrPassive = 131_072

Errr Passive

§

WarningStatus = 262_144

Warning Status

§

BusOff = 524_288

Bus_Off status

§

WatchdogInt = 1_048_576

Watchdog interrupt

§

ProtErrArbritation = 2_097_152

Protocol error in arbitration phase (nominal bit time is used)

§

ProtErrData = 4_194_304

Protocol error in data phase (data bit time is used)

§

ReservedAccess = 8_388_608

Access to reserved address

Trait Implementations§

Source§

impl BitOrAssign<Interrupt> for Interrupts

Adds an interrupt to the interrupt set.

Source§

fn bitor_assign(&mut self, rhs: Interrupt)

Performs the |= operation. Read more
Source§

impl Clone for Interrupt

Source§

fn clone(&self) -> Interrupt

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Interrupt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Interrupt> for Interrupts

Source§

fn from(i: Interrupt) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Interrupt

Source§

fn eq(&self, other: &Interrupt) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Interrupt

Source§

impl Eq for Interrupt

Source§

impl StructuralPartialEq for Interrupt

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.