Interrupt

Enum Interrupt 

Source
#[repr(u16)]
pub enum Interrupt {
Show 40 variants SNC = 0, DMA = 1, CHARGER_STATE = 2, CHARGER_ERROR = 3, CMAC2SYS = 4, UART = 5, UART2 = 6, UART3 = 7, I2C = 8, I2C2 = 9, SPI = 10, SPI2 = 11, PCM = 12, SRC_IN = 13, SRC_OUT = 14, USB = 15, TIMER = 16, TIMER2 = 17, RTC = 18, KEY_WKUP_GPIO = 19, PDC = 20, VBUS = 21, MRM = 22, MOTOR_CONTROLLER = 23, TRNG = 24, DCDC = 25, XTAL32M_RDY = 26, GPADC = 27, SDADC = 28, CRYPTO = 29, CAPTIMER = 30, RFDIAG = 31, LCD_CONTROLLER = 32, PLL_LOCK = 33, TIMER3 = 34, TIMER4 = 35, LRA = 36, RTC_EVENT = 37, GPIO_P0 = 38, GPIO_P1 = 39,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

SNC = 0

Sensor Node Controller interrupt request.

§

DMA = 1

General Purpose DMA interrupt request.

§

CHARGER_STATE = 2

Charger State interrupt request.

§

CHARGER_ERROR = 3

Charger Error interrupt request.

§

CMAC2SYS = 4

CMAC and mailbox interrupt request.

§

UART = 5

UART interrupt request.

§

UART2 = 6

UART2 interrupt request.

§

UART3 = 7

UART3 interrupt request.

§

I2C = 8

I2C interrupt request.

§

I2C2 = 9

I2C2 interrupt request.

§

SPI = 10

SPI interrupt request.

§

SPI2 = 11

SPI2 interrupt request.

§

PCM = 12

PCM interrupt request.

§

SRC_IN = 13

SRC input interrupt request.

§

SRC_OUT = 14

SRC output interrupt request.

§

USB = 15

USB interrupt request.

§

TIMER = 16

TIMER interrupt request.

§

TIMER2 = 17

TIMER2 interrupt request.

§

RTC = 18

RTC interrupt request.

§

KEY_WKUP_GPIO = 19

Debounced button press interrupt request.

§

PDC = 20

Wakeup IRQ from PDC to CM33

§

VBUS = 21

VBUS presence interrupt request.

§

MRM = 22

Cache Miss Rate Monitor interrupt request.

§

MOTOR_CONTROLLER = 23

MOTOR and mailbox interrupt request.

§

TRNG = 24

True Random Number Generation interrupt request.

§

DCDC = 25

DCDC interrupt request.

§

XTAL32M_RDY = 26

XTAL32M trimmed and ready interrupt request.

§

GPADC = 27

General Purpose Analog-Digital Converter interrupt request.

§

SDADC = 28

Sigma Delta Analog-Digital Converter interrupt request.

§

CRYPTO = 29

Crypto interrupt request.

§

CAPTIMER = 30

GPIO triggered Timer Capture interrupt request.

§

RFDIAG = 31

Baseband or Radio Diagnostics interrupt request.

§

LCD_CONTROLLER = 32

Parallel LCD Controller interrupt request.

§

PLL_LOCK = 33

Pll lock interrupt request.

§

TIMER3 = 34

TIMER3 interrupt request.

§

TIMER4 = 35

TIMER4 interrupt request.

§

LRA = 36

LRA/ERM interrupt request.

§

RTC_EVENT = 37

RTC event interrupt request.

§

GPIO_P0 = 38

GPIO port 0 toggle interrupt request.

§

GPIO_P1 = 39

GPIO port 1 toggle interrupt request.

Trait Implementations§

Source§

impl Clone for Interrupt

Source§

fn clone(&self) -> Interrupt

Returns a duplicate 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 InterruptNumber for Interrupt

Source§

fn number(self) -> u16

Return the interrupt number associated with this variant. Read more
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.