# Interrupt in k210_pac - Rust
Enumeration of all the interrupts
Keywords: rust, rustlang, rust-lang, Interrupt

# Enum k210_pac::Interrupt

source · [−]

    #[repr(u8)]
    pub enum Interrupt {
    Show 65 variants    SPI0,
        SPI1,
        SPI_SLAVE,
        SPI3,
        I2S0,
        I2S1,
        I2S2,
        I2C0,
        I2C1,
        I2C2,
        UART1,
        UART2,
        UART3,
        TIMER0A,
        TIMER0B,
        TIMER1A,
        TIMER1B,
        TIMER2A,
        TIMER2B,
        RTC,
        WDT0,
        WDT1,
        APB_GPIO,
        DVP,
        KPU,
        FFT,
        DMA0,
        DMA1,
        DMA2,
        DMA3,
        DMA4,
        DMA5,
        UARTHS,
        GPIOHS0,
        GPIOHS1,
        GPIOHS2,
        GPIOHS3,
        GPIOHS4,
        GPIOHS5,
        GPIOHS6,
        GPIOHS7,
        GPIOHS8,
        GPIOHS9,
        GPIOHS10,
        GPIOHS11,
        GPIOHS12,
        GPIOHS13,
        GPIOHS14,
        GPIOHS15,
        GPIOHS16,
        GPIOHS17,
        GPIOHS18,
        GPIOHS19,
        GPIOHS20,
        GPIOHS21,
        GPIOHS22,
        GPIOHS23,
        GPIOHS24,
        GPIOHS25,
        GPIOHS26,
        GPIOHS27,
        GPIOHS28,
        GPIOHS29,
        GPIOHS30,
        GPIOHS31,
    }

Expand description

Enumeration of all the interrupts

## Variants

### `SPI0`

1 - SPI0

### `SPI1`

2 - SPI1

### `SPI_SLAVE`

3 - SPI_SLAVE

### `SPI3`

4 - SPI3

### `I2S0`

5 - I2S0

### `I2S1`

6 - I2S1

### `I2S2`

7 - I2S2

### `I2C0`

8 - I2C0

### `I2C1`

9 - I2C1

### `I2C2`

10 - I2C2

### `UART1`

11 - UART1

### `UART2`

12 - UART2

### `UART3`

13 - UART3

### `TIMER0A`

14 - TIMER0 channel 0 or 1 interrupt

### `TIMER0B`

15 - TIMER0 channel 2 or 3 interrupt

### `TIMER1A`

16 - TIMER1 channel 0 or 1 interrupt

### `TIMER1B`

17 - TIMER1 channel 2 or 3 interrupt

### `TIMER2A`

18 - TIMER2 channel 0 or 1 interrupt

### `TIMER2B`

19 - TIMER2 channel 2 or 3 interrupt

### `RTC`

20 - RTC

### `WDT0`

21 - WDT0

### `WDT1`

22 - WDT1

### `APB_GPIO`

23 - APB_GPIO

### `DVP`

24 - DVP

### `KPU`

25 - KPU

### `FFT`

26 - FFT

### `DMA0`

27 - DMA0

### `DMA1`

28 - DMA1

### `DMA2`

29 - DMA2

### `DMA3`

30 - DMA3

### `DMA4`

31 - DMA4

### `DMA5`

32 - DMA5

### `UARTHS`

33 - UARTHS

### `GPIOHS0`

34 - GPIOHS0

### `GPIOHS1`

35 - GPIOHS1

### `GPIOHS2`

36 - GPIOHS2

### `GPIOHS3`

37 - GPIOHS3

### `GPIOHS4`

38 - GPIOHS4

### `GPIOHS5`

39 - GPIOHS5

### `GPIOHS6`

40 - GPIOHS6

### `GPIOHS7`

41 - GPIOHS7

### `GPIOHS8`

42 - GPIOHS8

### `GPIOHS9`

43 - GPIOHS9

### `GPIOHS10`

44 - GPIOHS10

### `GPIOHS11`

45 - GPIOHS11

### `GPIOHS12`

46 - GPIOHS12

### `GPIOHS13`

47 - GPIOHS13

### `GPIOHS14`

48 - GPIOHS14

### `GPIOHS15`

49 - GPIOHS15

### `GPIOHS16`

50 - GPIOHS16

### `GPIOHS17`

51 - GPIOHS17

### `GPIOHS18`

52 - GPIOHS18

### `GPIOHS19`

53 - GPIOHS19

### `GPIOHS20`

54 - GPIOHS20

### `GPIOHS21`

55 - GPIOHS21

### `GPIOHS22`

56 - GPIOHS22

### `GPIOHS23`

57 - GPIOHS23

### `GPIOHS24`

58 - GPIOHS24

### `GPIOHS25`

59 - GPIOHS25

### `GPIOHS26`

60 - GPIOHS26

### `GPIOHS27`

61 - GPIOHS27

### `GPIOHS28`

62 - GPIOHS28

### `GPIOHS29`

63 - GPIOHS29

### `GPIOHS30`

64 - GPIOHS30

### `GPIOHS31`

65 - GPIOHS31

## Implementations

source

### impl Interrupt

source

#### pub fn try_from(value: u8) -> Result<Self, TryFromInterruptError>

## Trait Implementations

source

### impl Clone for Interrupt

source

#### fn clone(&self) -> Interrupt

Returns a copy 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 Nr for Interrupt

source

#### fn nr(&self) -> u8

Returns the number associated with an interrupt

source

### impl Copy for Interrupt

## Auto Trait Implementations

### 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> 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,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

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

const: unstable · source

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

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

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

const: unstable · 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>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · 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>,

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

The type returned in the event of a conversion error.

const: unstable · source

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

Performs the conversion.