Enum avr_device::atmega32u4::Interrupt

source ·
#[repr(u16)]
pub enum Interrupt {
Show 43 variants RESET = 0, INT0 = 1, INT1 = 2, INT2 = 3, INT3 = 4, RESERVED1 = 5, RESERVED2 = 6, INT6 = 7, RESERVED3 = 8, PCINT0 = 9, USB_GEN = 10, USB_COM = 11, WDT = 12, RESERVED4 = 13, RESERVED5 = 14, RESERVED6 = 15, TIMER1_CAPT = 16, TIMER1_COMPA = 17, TIMER1_COMPB = 18, TIMER1_COMPC = 19, TIMER1_OVF = 20, TIMER0_COMPA = 21, TIMER0_COMPB = 22, TIMER0_OVF = 23, SPI_STC = 24, USART1_RX = 25, USART1_UDRE = 26, USART1_TX = 27, ANALOG_COMP = 28, ADC = 29, EE_READY = 30, TIMER3_CAPT = 31, TIMER3_COMPA = 32, TIMER3_COMPB = 33, TIMER3_COMPC = 34, TIMER3_OVF = 35, TWI = 36, SPM_READY = 37, TIMER4_COMPA = 38, TIMER4_COMPB = 39, TIMER4_COMPD = 40, TIMER4_OVF = 41, TIMER4_FPF = 42,
}
Expand description

Enumeration of all the interrupts.

Variants§

§

RESET = 0

0 - External Pin,Power-on Reset,Brown-out Reset,Watchdog Reset,and JTAG AVR Reset. See Datasheet.

§

INT0 = 1

1 - External Interrupt Request 0

§

INT1 = 2

2 - External Interrupt Request 1

§

INT2 = 3

3 - External Interrupt Request 2

§

INT3 = 4

4 - External Interrupt Request 3

§

RESERVED1 = 5

5 - Reserved1

§

RESERVED2 = 6

6 - Reserved2

§

INT6 = 7

7 - External Interrupt Request 6

§

RESERVED3 = 8

8 - Reserved3

§

PCINT0 = 9

9 - Pin Change Interrupt Request 0

§

USB_GEN = 10

10 - USB General Interrupt Request

§

USB_COM = 11

11 - USB Endpoint/Pipe Interrupt Communication Request

§

WDT = 12

12 - Watchdog Time-out Interrupt

§

RESERVED4 = 13

13 - Reserved4

§

RESERVED5 = 14

14 - Reserved5

§

RESERVED6 = 15

15 - Reserved6

§

TIMER1_CAPT = 16

16 - Timer/Counter1 Capture Event

§

TIMER1_COMPA = 17

17 - Timer/Counter1 Compare Match A

§

TIMER1_COMPB = 18

18 - Timer/Counter1 Compare Match B

§

TIMER1_COMPC = 19

19 - Timer/Counter1 Compare Match C

§

TIMER1_OVF = 20

20 - Timer/Counter1 Overflow

§

TIMER0_COMPA = 21

21 - Timer/Counter0 Compare Match A

§

TIMER0_COMPB = 22

22 - Timer/Counter0 Compare Match B

§

TIMER0_OVF = 23

23 - Timer/Counter0 Overflow

§

SPI_STC = 24

24 - SPI Serial Transfer Complete

§

USART1_RX = 25

25 - USART1, Rx Complete

§

USART1_UDRE = 26

26 - USART1 Data register Empty

§

USART1_TX = 27

27 - USART1, Tx Complete

§

ANALOG_COMP = 28

28 - Analog Comparator

§

ADC = 29

29 - ADC Conversion Complete

§

EE_READY = 30

30 - EEPROM Ready

§

TIMER3_CAPT = 31

31 - Timer/Counter3 Capture Event

§

TIMER3_COMPA = 32

32 - Timer/Counter3 Compare Match A

§

TIMER3_COMPB = 33

33 - Timer/Counter3 Compare Match B

§

TIMER3_COMPC = 34

34 - Timer/Counter3 Compare Match C

§

TIMER3_OVF = 35

35 - Timer/Counter3 Overflow

§

TWI = 36

36 - 2-wire Serial Interface

§

SPM_READY = 37

37 - Store Program Memory Read

§

TIMER4_COMPA = 38

38 - Timer/Counter4 Compare Match A

§

TIMER4_COMPB = 39

39 - Timer/Counter4 Compare Match B

§

TIMER4_COMPD = 40

40 - Timer/Counter4 Compare Match D

§

TIMER4_OVF = 41

41 - Timer/Counter4 Overflow

§

TIMER4_FPF = 42

42 - Timer/Counter4 Fault Protection Interrupt

Implementations§

source§

impl Interrupt

source

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

Attempt to convert a given value into an Interrupt

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 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 · 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 Copy for Interrupt

source§

impl Eq for Interrupt

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.