Skip to main content

Interrupt

Enum Interrupt 

Source
pub enum Interrupt {
Show 32 variants IEL0 = 0, IEL1 = 1, IEL2 = 2, IEL3 = 3, IEL4 = 4, IEL5 = 5, IEL6 = 6, IEL7 = 7, IEL8 = 8, IEL9 = 9, IEL10 = 10, IEL11 = 11, IEL12 = 12, IEL13 = 13, IEL14 = 14, IEL15 = 15, IEL16 = 16, IEL17 = 17, IEL18 = 18, IEL19 = 19, IEL20 = 20, IEL21 = 21, IEL22 = 22, IEL23 = 23, IEL24 = 24, IEL25 = 25, IEL26 = 26, IEL27 = 27, IEL28 = 28, IEL29 = 29, IEL30 = 30, IEL31 = 31,
}

Variants§

§

IEL0 = 0

IEL0 - 0

§

IEL1 = 1

IEL1 - 1

§

IEL2 = 2

IEL2 - 2

§

IEL3 = 3

IEL3 - 3

§

IEL4 = 4

IEL4 - 4

§

IEL5 = 5

IEL5 - 5

§

IEL6 = 6

IEL6 - 6

§

IEL7 = 7

IEL7 - 7

§

IEL8 = 8

IEL8 - 8

§

IEL9 = 9

IEL9 - 9

§

IEL10 = 10

IEL10 - 10

§

IEL11 = 11

IEL11 - 11

§

IEL12 = 12

IEL12 - 12

§

IEL13 = 13

IEL13 - 13

§

IEL14 = 14

IEL14 - 14

§

IEL15 = 15

IEL15 - 15

§

IEL16 = 16

IEL16 - 16

§

IEL17 = 17

IEL17 - 17

§

IEL18 = 18

IEL18 - 18

§

IEL19 = 19

IEL19 - 19

§

IEL20 = 20

IEL20 - 20

§

IEL21 = 21

IEL21 - 21

§

IEL22 = 22

IEL22 - 22

§

IEL23 = 23

IEL23 - 23

§

IEL24 = 24

IEL24 - 24

§

IEL25 = 25

IEL25 - 25

§

IEL26 = 26

IEL26 - 26

§

IEL27 = 27

IEL27 - 27

§

IEL28 = 28

IEL28 - 28

§

IEL29 = 29

IEL29 - 29

§

IEL30 = 30

IEL30 - 30

§

IEL31 = 31

IEL31 - 31

Trait Implementations§

Source§

impl Clone for Interrupt

Source§

fn clone(&self) -> Interrupt

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

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Interrupt

Source§

impl Debug for Interrupt

Source§

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

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

impl Eq for Interrupt

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

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

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

Inequality operator !=. Read more
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> IcuInterrupt for T
where T: InterruptNumber + Copy,

Source§

fn icu_disable(&self)

Disables the interrupt in the ICU. Does not modify its status in the NVIC.
Source§

unsafe fn icu_enable(&self, mask: InterruptEvent)

Enables the interrupt in the ICU. Does not modify its status in the NVIC. Read more
Source§

fn icu_enabled(&self) -> bool

Returns true if the interrupt has been linked to an InterruptEvent.
Source§

fn icu_event(&self) -> InterruptEvent

Returns the InterruptEvent that the interrupt is linked to or InterruptEvent::None if none is configured.
Source§

fn dtc_disable(&self)

Disables the interrupt in the ICU and disables it as a DTC activation source. Does not modify its status in the NVIC. Read more
Source§

fn dtc_enable(&self, mask: InterruptEvent)

Links an interrupt to an event and configures DTC vector n for activation on interrupt where n is the index of this interrupt. Read more
Source§

fn is_dtc(&self) -> bool

Returns Read more
Source§

fn icu_unpend(&self)

Clears the interrupt request flag in the ICU. Does not modify the NVIC. Read more
Source§

fn icu_pend(&self)

Sets the interrupt request flag in the ICU. Does not modify the NVIC. Read more
Source§

fn icu_is_pending(&self) -> bool

Returns true if the interrupt is pending in the ICU.
Source§

fn icu_status(&self)

Logs information about how this interrupt is configured in the ICU at the trace level.
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
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.