AT32F425
Series Reference Manual
2022.03.30
Page 392
Ver 2.01
set after power-on reset, the application can clear this bit.
Bit 2
OTGINT
0x0
ro
Accesible in both host and device modes
OTG interrupt
The controller sets this bit to indicate that an OTG protocol
event is generated. The application must read the
OTGFS_GOTGINT register to determine the exact source
that caused this interrupt. The application must clear the
corresponding status bit in the OTGFS_GOTGINT register
to clear this bit.
Bit 1
MODEMIS
0x0
rw1c
Accesible in both host and device modes
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.