Interrupt

Enum Interrupt 

Source
#[repr(u16)]
pub enum Interrupt {
Show 29 variants UART0 = 0, UART1 = 1, TIMR0 = 2, TIMR1 = 3, DMA = 4, SPI0 = 5, PWM_CH0 = 6, WDT = 7, UART2 = 8, PWM_CH1 = 9, SARADC0 = 10, BTIMER0 = 11, HALL0 = 12, PWM_CH2 = 13, PWM_HALT = 14, I2C0 = 15, CAN0 = 16, SPI1 = 17, RTC_BASE = 18, PWM_CH3 = 19, TIMER2 = 20, UART3 = 21, TIMER3 = 22, SARADC1 = 23, BOD = 24, CORDIC = 25, BTIMER1 = 26, PWM_CH4 = 27, HALL1 = 28,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

UART0 = 0

0 - UART0 global interrupt

§

UART1 = 1

1 - UART1 global interrupt

§

TIMR0 = 2

2 - TIMR0 global interrupt

§

TIMR1 = 3

3 - TIMR1 global interrupt

§

DMA = 4

4 - DMA global interrupt

§

SPI0 = 5

5 - SPI0 global interrupt

§

PWM_CH0 = 6

6 - PWM_CH0 global interrupt

§

WDT = 7

7 - WDT global interrupt

§

UART2 = 8

8 - UART2 global interrupt

§

PWM_CH1 = 9

9 - PWM_CH1 global interrupt

§

SARADC0 = 10

10 - SARADC0 global interrupt

§

BTIMER0 = 11

11 - BTIMER0 global interrupt

§

HALL0 = 12

12 - HALL0 global interrupt

§

PWM_CH2 = 13

13 - PWM_CH2 global interrupt

§

PWM_HALT = 14

14 - PWM_HALT global interrupt

§

I2C0 = 15

15 - I2C0 global interrupt

§

CAN0 = 16

16 - CAN0 global interrupt

§

SPI1 = 17

17 - SPI1 global interrupt

§

RTC_BASE = 18

18 - RTC_BASE global interrupt

§

PWM_CH3 = 19

19 - PWM_CH3 global interrupt

§

TIMER2 = 20

20 - TIMER2 global interrupt

§

UART3 = 21

21 - UART3 global interrupt

§

TIMER3 = 22

22 - TIMER3 global interrupt

§

SARADC1 = 23

23 - SARADC1 global interrupt

§

BOD = 24

24 - BOD global interrupt

§

CORDIC = 25

25 - CORDIC global interrupt

§

BTIMER1 = 26

26 - BTIMER1 global interrupt

§

PWM_CH4 = 27

27 - PWM_CH4 global interrupt

§

HALL1 = 28

28 - HALL1 global interrupt

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.