AN050
GD32 USBFS&USBHS Firmware Library User Guide
22
[(
uint8_t
)
USB_DESCTYPE_STR
-
1U
]
=
_usb_str_desc_get
,
#ifdef USE_USB_HS
[(
uint8_t
)
USB_DESCTYPE_DEV_QUALIFIER
-
3U
]
=
_usb_qualifier_desc_get
,
[(
uint8_t
)
USB_DESCTYPE_OTHER_SPD_CONFIG
-
3U
]
=
_usb_other_speed_config_desc_get
,
#endif
};
5.4.
Interrupt handling
The interrupt of USBFS device interface is shown in
Table 5-3. USBFS device interruption
Every interrupt flag corresponds to process handler of interrupt fuction, OEPIF, IEPIF and
RXFNEIF flag is concerned about data transfer. GINTF_OEPIF of OUT endpoint is for OUT
transaction, and GINTF_IEPIF of IN endpoint is for IN transaction.
Table 5-3
. USBFS device interruption
Interrupt Flag
Description
Operation Mode
WKUPIF
Wakeup interrupt
Host or device mode
SESIF
Session interrupt
Host or device mode
IDPSC
ID pin status change
Host or device mode
LPMIF
(1)
LPM interrupt flag
Host or device mode
ISOONCIF/PXNCIF Periodic transfer Not Complete Interrupt
flag /Isochronous OUT transfer Not
Complete Interrupt Flag
Host or device mode
ISOINCIF
Isochronous IN transfer Not Complete
Interrupt Flag
Device mode
OEPIF
OUT endpoint interrupt flag
Device mode
IEPIF
IN endpoint interrupt flag
Device mode
EOPFIF
End of periodic frame interrupt flag
Device mode
ISOOPDIF
Isochronous OUT packet dropped
interrupt flag
Device mode
ENUMF
Enumeration finished
Device mode
RST
USB reset
Device mode
SP
USB suspend
Device mode
ESP
Early suspend
Device mode
GONAK
Global OUT NAK effective
Device mode
GNPINAK
Global IN Non-Periodic NAK effective
Device mode
RXFNEIF
Rx FIFO non-empty interrupt flag
Host or device mode
SOF
Start of frame
Host or device mode
OTGIF
OTG interrupt flag
Host or device mode
MFIF
Mode fault interrupt flag
Host or device mode
Note:
(1) This bit is only in the E50X series.