Enum avr_device::atmega2560::Interrupt
source · #[repr(u16)]pub enum Interrupt {
Show 57 variants
RESET = 0,
INT0 = 1,
INT1 = 2,
INT2 = 3,
INT3 = 4,
INT4 = 5,
INT5 = 6,
INT6 = 7,
INT7 = 8,
PCINT0 = 9,
PCINT1 = 10,
PCINT2 = 11,
WDT = 12,
TIMER2_COMPA = 13,
TIMER2_COMPB = 14,
TIMER2_OVF = 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,
USART0_RX = 25,
USART0_UDRE = 26,
USART0_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,
USART1_RX = 36,
USART1_UDRE = 37,
USART1_TX = 38,
TWI = 39,
SPM_READY = 40,
TIMER4_CAPT = 41,
TIMER4_COMPA = 42,
TIMER4_COMPB = 43,
TIMER4_COMPC = 44,
TIMER4_OVF = 45,
TIMER5_CAPT = 46,
TIMER5_COMPA = 47,
TIMER5_COMPB = 48,
TIMER5_COMPC = 49,
TIMER5_OVF = 50,
USART2_RX = 51,
USART2_UDRE = 52,
USART2_TX = 53,
USART3_RX = 54,
USART3_UDRE = 55,
USART3_TX = 56,
}
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
INT4 = 5
5 - External Interrupt Request 4
INT5 = 6
6 - External Interrupt Request 5
INT6 = 7
7 - External Interrupt Request 6
INT7 = 8
8 - External Interrupt Request 7
PCINT0 = 9
9 - Pin Change Interrupt Request 0
PCINT1 = 10
10 - Pin Change Interrupt Request 1
PCINT2 = 11
11 - Pin Change Interrupt Request 2
WDT = 12
12 - Watchdog Time-out Interrupt
TIMER2_COMPA = 13
13 - Timer/Counter2 Compare Match A
TIMER2_COMPB = 14
14 - Timer/Counter2 Compare Match B
TIMER2_OVF = 15
15 - Timer/Counter2 Overflow
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
USART0_RX = 25
25 - USART0, Rx Complete
USART0_UDRE = 26
26 - USART0 Data register Empty
USART0_TX = 27
27 - USART0, 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
USART1_RX = 36
36 - USART1, Rx Complete
USART1_UDRE = 37
37 - USART1 Data register Empty
USART1_TX = 38
38 - USART1, Tx Complete
TWI = 39
39 - 2-wire Serial Interface
SPM_READY = 40
40 - Store Program Memory Read
TIMER4_CAPT = 41
41 - Timer/Counter4 Capture Event
TIMER4_COMPA = 42
42 - Timer/Counter4 Compare Match A
TIMER4_COMPB = 43
43 - Timer/Counter4 Compare Match B
TIMER4_COMPC = 44
44 - Timer/Counter4 Compare Match C
TIMER4_OVF = 45
45 - Timer/Counter4 Overflow
TIMER5_CAPT = 46
46 - Timer/Counter5 Capture Event
TIMER5_COMPA = 47
47 - Timer/Counter5 Compare Match A
TIMER5_COMPB = 48
48 - Timer/Counter5 Compare Match B
TIMER5_COMPC = 49
49 - Timer/Counter5 Compare Match C
TIMER5_OVF = 50
50 - Timer/Counter5 Overflow
USART2_RX = 51
51 - USART2, Rx Complete
USART2_UDRE = 52
52 - USART2 Data register Empty
USART2_TX = 53
53 - USART2, Tx Complete
USART3_RX = 54
54 - USART3, Rx Complete
USART3_UDRE = 55
55 - USART3 Data register Empty
USART3_TX = 56
56 - USART3, Tx Complete
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
)