Skip to main content

Interrupt

Enum Interrupt 

Source
#[repr(u16)]
pub enum Interrupt {
Show 21 variants BLE_WAKEUP_LP = 0, BLE_GEN = 1, UART = 2, UART2 = 3, I2C = 4, SPI = 5, ADC = 6, KEYBRD = 7, BLE_RF_DIAG = 8, RF_CAL = 9, GPIO0 = 10, GPIO1 = 11, GPIO2 = 12, GPIO3 = 13, GPIO4 = 14, SWTIM = 15, WKUP_QUADEC = 16, PCM = 17, SRC_IN = 18, SRC_OUT = 19, DMA = 20,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

BLE_WAKEUP_LP = 0

Wake-up from Low Power (Extended Sleep) interrupt from BLE

§

BLE_GEN = 1

BLE Interrupt from various BLE sources.

§

UART = 2

UART interrupt

§

UART2 = 3

UART2 interrupt

§

I2C = 4

I2C interrupt

§

SPI = 5

SPI interrupt

§

ADC = 6

Analog-Digital Converter interrupt.

§

KEYBRD = 7

Keyboard interrupt.

§

BLE_RF_DIAG = 8

Baseband or Radio Diagnostics Interrupt

§

RF_CAL = 9

RF Calibration Interrupt

§

GPIO0 = 10

GPIO0 interrupt through debounce

§

GPIO1 = 11

GPIO1 interrupt through debounce

§

GPIO2 = 12

GPIO2 interrupt through debounce

§

GPIO3 = 13

GPIO3 interrupt through debounce

§

GPIO4 = 14

GPIO4 interrupt through debounce

§

SWTIM = 15

Software Timer interrupt

§

WKUP_QUADEC = 16

Combines the Wake up Capture Timer interrupt, the GPIO interrupt and the QuadDecoder interrupt

§

PCM = 17

PCM interrupt

§

SRC_IN = 18

Sample rate converter input interrupt

§

SRC_OUT = 19

Sample rate converter output interrupt

§

DMA = 20

DMA interrupt

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

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 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.