![ARTERY AT32WB415 Series Reference Manual Download Page 338](http://html1.mh-extra.com/html/artery/at32wb415-series/at32wb415-series_reference-manual_2977599338.webp)
AT32WB415
Series Reference Manual
2022.04.13
Page 338
Ver 2.00
Mode mismatch interrupt
The controller sets this bit when the application is
attempting to access:
A host-mode register, when the controller is running in
device mode
A device-mode register, when the controller is running in
host mode
An OKAY response occurs when the register access is
completed on the AHB, but it is ignored by the controller
internally, and does not affect the operation of the
controller.
This bit can be set by the controller only. The application
must write 1 to clear this bit.
Bit 0
CURMOD
0x0
ro
Accesible in both host and device modes
Current mode of operation
This bit indicates the current mode.
0: Device mode
1: Host mode
20.6.3.7 OTGFS interrupt mask register (OTGFS_GINTMSK)
This register works with the Interrupt Register to interrupt the application. When an interrupt bit is masked,
the interrupt related to this interrupt bit is not generated. However, the Interrupt Register bit
corresponding to this interrupt is still set.
Interrupt mask: 0
Interrupt unmask: 1
Bit
Register
Reset value
Type
Description
Bit 31
WKUPINTMSK
0x0
rw
Accesible in both host and device modes
Resume/Remote wakeup detected interrupt mask
Bit 30
Reserved
0x0
resd
Kept at its default value.
Bit 29
DISCONINTMSK
0x0
rw
Accesible in both host and device modes
Disconnect detected interrupt mask
Bit 28
CONIDSCHGMSK
0x0
rw
Accesible in both host and device modes
Connector ID status change mask
Bit 27
Reserved
0x0
resd
Kept at its default value.
Bit 26
PTXFEMPMSK
0x0
rw
Accesible in host mode only
Periodic TxFIFO empty mask
Bit 25
HCHINTMSK
0x0
rw
Accesible in host mode only
Host channels interrupt mask
Bit 24
PRTINTMSK
0x0
ro
Accesible in host mode only
Host port interrupt mask
Bit 23: 22 Reserved
0x0
resd
Kept at its default value.
Bit 21
INCOMPIPMSK
INCOMPISOOUTMSK
0x0
rw
Incomplete periodic transfer mask
Accesible in host mode only
Incomplete isochronous OUT transfer mask
Accesible in device mode only
Bit 20
INCOMISOINMSK
0x0
rw
Accesible in device mode only
Incomplete isochronous IN transfer mask
Bit 19
OEPTINTMSK
0x0
rw
Accesible in device mode only
OUT endpoints interrupt mask
Bit 18
IEPTINTMSK
0x0
rw
Accesible in device mode only
IN endpoints interrupt mask
Bit 17
Reserved
0x0
rw
Kept at its default value.
Bit 16
Reserved
0x0
resd
Kept at its default value.
Bit 15
EOPFMSK
0x0
rw
Accesible in device mode only
End of periodic frame interrupt mask
Bit 14
ISOOUTDROPMSK 0x0
rw
Device only isochronous OUT packet dropped interrupt
mask
Bit 13
ENUMDONEMSK
0x0
rw
Accesible in device mode only
Enumeration done mask
Bit 12
USBRSTMSK
0x0
rw
Accesible in device mode only
USB Reset mask
Bit 11
USBSUSPMSK
0x0
rw
Accesible in device mode only