246
8331B–AVR–03/12
Atmel AVR XMEGA AU
summarizes the interrupts and event sources for the USB module,
and shows how they are enabled.
Figure 20-12.
Interrupts and events scheme summary.
20.10.1
Transaction Complete Interrupt
The transaction complete interrupt is generated per endpoint. When an interrupt occurs, the
associated endpoint number is registered and optionally added to the FIFO. The following two
interrupt sources use the interrupt vector:
SOFIE
SUSPENDIF
RESUMEIF
RSTIF
CRCIF
UNFIF
OVFIF
STALLIF
BSEVIE
STALLIE
BUSSERRIE
SOFIF
SETUPIE
TRNIF
TRNIE
SETUPIF
Busevent
Interrupt request
Transaction Complete
Interrupt request
Table 20-1.
Transaction complete interrupt sources.
Interrupt source
Description
Transfer complete (TRNIF)
An IN or OUT transaction is completed
Setup complete (SETUPIF)
A SETUP transaction is completed