Enum embassy_nrf::interrupt::Interrupt
source ยท #[repr(u16)]pub enum Interrupt {
Show 27 variants
POWER_CLOCK = 0,
RADIO = 1,
UARTE0_UART0 = 2,
TWIM0_TWIS0_TWI0 = 3,
SPIM0_SPIS0_SPI0 = 4,
GPIOTE = 6,
SAADC = 7,
TIMER0 = 8,
TIMER1 = 9,
TIMER2 = 10,
RTC0 = 11,
TEMP = 12,
RNG = 13,
ECB = 14,
CCM_AAR = 15,
WDT = 16,
RTC1 = 17,
QDEC = 18,
COMP = 19,
SWI0_EGU0 = 20,
SWI1_EGU1 = 21,
SWI2 = 22,
SWI3 = 23,
SWI4 = 24,
SWI5 = 25,
PWM0 = 28,
PDM = 29,
}
Expand description
Enumeration of all the interrupts.
Variantsยง
POWER_CLOCK = 0
0 - POWER_CLOCK
RADIO = 1
1 - RADIO
UARTE0_UART0 = 2
2 - UARTE0_UART0
TWIM0_TWIS0_TWI0 = 3
3 - TWIM0_TWIS0_TWI0
SPIM0_SPIS0_SPI0 = 4
4 - SPIM0_SPIS0_SPI0
GPIOTE = 6
6 - GPIOTE
SAADC = 7
7 - SAADC
TIMER0 = 8
8 - TIMER0
TIMER1 = 9
9 - TIMER1
TIMER2 = 10
10 - TIMER2
RTC0 = 11
11 - RTC0
TEMP = 12
12 - TEMP
RNG = 13
13 - RNG
ECB = 14
14 - ECB
CCM_AAR = 15
15 - CCM_AAR
WDT = 16
16 - WDT
RTC1 = 17
17 - RTC1
QDEC = 18
18 - QDEC
COMP = 19
19 - COMP
SWI0_EGU0 = 20
20 - SWI0_EGU0
SWI1_EGU1 = 21
21 - SWI1_EGU1
SWI2 = 22
22 - SWI2
SWI3 = 23
23 - SWI3
SWI4 = 24
24 - SWI4
SWI5 = 25
25 - SWI5
PWM0 = 28
28 - PWM0
PDM = 29
29 - PDM
Trait Implementationsยง
sourceยงimpl InterruptNumber for Interrupt
impl InterruptNumber for Interrupt
impl Copy for Interrupt
impl Eq for Interrupt
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 UnwindSafe for Interrupt
Blanket Implementationsยง
sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceยงimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourceยงfn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
sourceยงfn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)sourceยงimpl<T> InterruptExt for Twhere
T: InterruptNumber + Copy,
impl<T> InterruptExt for Twhere
T: InterruptNumber + Copy,
sourceยงfn is_enabled(self) -> bool
fn is_enabled(self) -> bool
Check if interrupt is enabled.
sourceยงfn is_pending(self) -> bool
fn is_pending(self) -> bool
Check if interrupt is pending.
sourceยงfn get_priority(self) -> Priority
fn get_priority(self) -> Priority
Get the priority of the interrupt.
sourceยงfn set_priority(self, prio: Priority)
fn set_priority(self, prio: Priority)
Set the interrupt priority.
sourceยงfn set_priority_with_cs(self, _cs: CriticalSection<'_>, prio: Priority)
fn set_priority_with_cs(self, _cs: CriticalSection<'_>, prio: Priority)
Set the interrupt priority with an already-acquired critical section Read more
sourceยงimpl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
sourceยงfn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
sourceยงimpl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
sourceยงfn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
sourceยงimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourceยงfn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
sourceยงfn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
sourceยงimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourceยงfn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
sourceยงfn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceยงimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourceยงfn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
sourceยงfn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
sourceยงimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourceยงfn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
sourceยงfn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.