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§
Trait Implementations§
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
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)
clone_to_uninit
)