Skip to main content

Interrupt

Enum Interrupt 

pub enum Interrupt {
Show 23 variants WWDG = 16, PVD = 17, FLASH = 18, RCC = 19, EXTI7_0 = 20, AWU = 21, DMA1_CHANNEL1 = 22, DMA1_CHANNEL2 = 23, DMA1_CHANNEL3 = 24, DMA1_CHANNEL4 = 25, DMA1_CHANNEL5 = 26, DMA1_CHANNEL6 = 27, DMA1_CHANNEL7 = 28, ADC = 29, I2C1_EV = 30, I2C1_ER = 31, USART1 = 32, SPI1 = 33, TIM1_BRK = 34, TIM1_UP = 35, TIM1_TRG_COM = 36, TIM1_CC = 37, TIM2 = 38,
}

Variants§

§

WWDG = 16

16 - WWDG

§

PVD = 17

17 - PVD

§

FLASH = 18

18 - FLASH

§

RCC = 19

19 - RCC

§

EXTI7_0 = 20

20 - EXTI7_0

§

AWU = 21

21 - AWU

§

DMA1_CHANNEL1 = 22

22 - DMA1_CHANNEL1

§

DMA1_CHANNEL2 = 23

23 - DMA1_CHANNEL2

§

DMA1_CHANNEL3 = 24

24 - DMA1_CHANNEL3

§

DMA1_CHANNEL4 = 25

25 - DMA1_CHANNEL4

§

DMA1_CHANNEL5 = 26

26 - DMA1_CHANNEL5

§

DMA1_CHANNEL6 = 27

27 - DMA1_CHANNEL6

§

DMA1_CHANNEL7 = 28

28 - DMA1_CHANNEL7

§

ADC = 29

29 - ADC

§

I2C1_EV = 30

30 - I2C1_EV

§

I2C1_ER = 31

31 - I2C1_ER

§

USART1 = 32

32 - USART1

§

SPI1 = 33

33 - SPI1

§

TIM1_BRK = 34

34 - TIM1_BRK

§

TIM1_UP = 35

35 - TIM1_UP

§

TIM1_TRG_COM = 36

36 - TIM1_TRG_COM

§

TIM1_CC = 37

37 - TIM1_CC

§

TIM2 = 38

38 - TIM2

Trait Implementations§

§

impl Clone for Interrupt

§

fn clone(&self) -> Interrupt

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

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

Performs copy-assignment from source. Read more
§

impl Copy for Interrupt

§

impl Debug for Interrupt

§

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

Formats the value using the given formatter. Read more
§

impl Eq for Interrupt

§

impl InterruptNumber for Interrupt

§

fn number(self) -> u16

Return the interrupt number associated with this variant. Read more
§

impl PartialEq for Interrupt

§

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

Equality operator ==. Read more
1.0.0 (const: unstable)§

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

Inequality operator !=. Read more
§

impl StructuralPartialEq for Interrupt

Auto Trait Implementations§

§

impl Freeze for Interrupt

§

impl RefUnwindSafe for Interrupt

§

impl Send for Interrupt

§

impl Sync for Interrupt

§

impl Unpin for Interrupt

§

impl UnsafeUnpin for Interrupt

§

impl UnwindSafe for Interrupt

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> InterruptExt for T
where T: InterruptNumber + Copy,

Source§

unsafe fn enable(self)

Enable the interrupt.
Source§

fn disable(self)

Disable the interrupt.
Source§

fn is_active(self) -> bool

Check if interrupt is being handled.
Source§

fn is_enabled(self) -> bool

Check if interrupt is enabled.
Source§

fn is_pending(self) -> bool

Check if interrupt is pending.
Source§

fn pend(self)

Set interrupt pending.
Source§

fn unpend(self)

Unset interrupt pending.
Source§

fn get_priority(self) -> Priority

Get the priority of the interrupt.
Source§

fn set_priority(self, prio: Priority)

Set the interrupt priority.
Source§

fn set_priority_with_cs(self, _cs: CriticalSection<'_>, prio: Priority)

Set the interrupt priority with an already-acquired critical section Read more
§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.