AT32F425
Series Reference Manual
2022.03.30
Page 414
Ver 2.01
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
Inidcates that the programmed transfers are complete on
the AHB and on the USB for this endpoint.
20.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 repect to USB and AHB-related events, as shown
in Figure 20-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 correspoinding 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
received.
Bit 3
SETUP
0x0
rw1c
SETUP phase done
Applies to control OUT endpoints only.
Indicates that the SETUP stage for the control endpoint is
complete and no more back-to-back SETUP packets were
received for the current control transfer. Upon this
interrupt, the application can decode the received SETUP
data packets.
Bit 2
Reserved
0x0
resd
Kept at its default value.
Bit 1
EPTDISD
0x0
rw1c
Endpoint disabled interrupt
Indicates that the endpoint is disabled according to the
application’s request.
Bit 0
XFERC
0x0
rw1c
Transfer completed interrupt
Inidcates that the programmed transfers are complete on
the AHB and on the USB for this endpoint.
20.6.5.15
OTGFS device IN endpoint 0 transfer size register
(OTGFS_DIEPTSIZ0)
The application must set this register before enabling endpoint 0. Once the endpoint 0 is enabled using
the endpoint enable pin in the device endpoint 0 control register, the controller modifies this register. The
application can only read this register as long as the controller clears the endpoint enable bit.
Bit
Register
Reset value
Type
Description
Bit 31: 21 Reserved
0x000
resd
Kept at its default value.
Bit 20: 19 PKTCNT
0x0
rw
Packet count
Indicates the total number of USB packets that consistute
the transfer size of data for the endpoint 0.
This field is decremented every time a packet is read from
the transmit FIFO (maximum packet size or short packet)
Bit 18: 7
Reserved
0x000
resd
Kept at its default value.
Bit 6: 0
XFERSIZE
0x00
rw
Transfer size
Indicates the transfer size (in bytes) for the endpoint 0. The