![ARTERY AT32F435 Series Reference Manual Download Page 491](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592491.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 491
Rev 2.03
21.6.5.13 OTGFS device IN endpoint-x interrupt register
(OTGFS_DIEPINTx) (x=0
…
7, where x if endpoint number)
This register indicates the status of an endpoint when USB and AHB-related events occurs, as shown in
Figure 21-2 When the IEPINT bit of the OTGFS_GINTSTS register is set, the application must first read
the OTGFS_DAINT register to get the exact endpoint number in which the event occurs, before reading
the endpoint interrupt registers. The application must clear the appropriate bit in this register to clear the
corresponding bits in the OTGFS_DAINT and OTGFS_GINTST registers.
Bit
Register
Reset value
Type
Description
Bit 31: 8
Reserved
0x000000
resd
Kept at its default value.
Bit 7
TXFEMP
0x0
ro
Transmit FIFO empty
This interrupt is generated when the transmit FIFO for this
endpoint is half or completely empty. The half or
completely empty status depends on the transmit FIFO
empty level bit in the controller AHB configuration register.
Bit 6
INEPTNAK
0x0
rw1c
IN endpoint NAK effective
This bit can be cleared by writing 1 to the CNAK bit in the
DIEPCTLx register.
This interrupt indicates that the IN endpoint NAB bit set by
the application has taken effect.
This interrupt does not guarantee that a NAK handshake
is sent on the USB line. A STALL bit has priority over a
NAK bit.
This bit applies to the scenario only when the endpoint is
enabled.
Bit 5
Reserved
0x0
resd
Kept at its default value.
Bit 4
INTKNTXFEMP
0x0
rw1c
N token received when TxFIFO is empty
Indicates that an IN token was received when the
associated transmit FIFO (periodic or non-periodic) was
empty. An interrupt is generated on the endpoint for which
an IN token was received.
Bit 3
TIMEOUT
0x0
rw1c
Timeout condition
Applies to control IN endpoints only. This bit indicates that
the controller has detected a timeout condition for the last
IN token on this endpoint.
Bit 2
Reserved
0x0
resd
Kept at its default value.
Bit 1
EPTDISD
0x0
rw1c
Endpoint disabled interrupt
This bit indicates that the endpoint is disabled according
to the application’s request.
Bit 0
XFERC
0x0
rw1c
Transfer completed interrupt
Indicates that the programmed transfers are complete on
the AHB and on the USB for this endpoint.
21.6.5.14 OTGFS device OUT endpoint-x interrupt register
(OTGFS_DOEPINTx) (x=0
…
7, where x if endpoint number)
This register indicates the status of an endpoint with respect to USB and AHB-related events, as shown
in Figure 21-2. When the OEPINT bit of the OTGFS_GINTSTS register is set, the application must first
read the OTGFS_DAINT register to get the exact endpoint number in which the event occurs, before
reading the endpoint interrupt registers. The application must clear the appropriate bit in this register to
clear the corresponding bits in the OTGFS_DAINT and OTGFS_GINTST registers.
Bit
Register
Reset value
Type
Description
Bit 31: 7
Reserved
0x0000001
resd
Kept at its default value.
Bit 6
B2BSTUP
0x0
rw1c
Back-to-back SETUP packets received
Indicates that more than three back-to-back SETUP
packets are received.
Bit 5
Reserved
0x0
resd
Kept at its default value.
Bit 4
OUTTEPD
0x0
rw1c
OUT token received when endpoint disabled
Applies to control OUT endpoints only.
Indicates that an OUT token was received when the
endpoint has not yet been enabled. An interrupt is
generated on the endpoint for which an OUT token was