![ARTERY AT32F435 Series Reference Manual Download Page 492](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592492.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 492
Rev 2.03
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
Indicates that the programmed transfers are complete on
the AHB and on the USB for this endpoint.
21.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 constitute
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
controller interrupts the application when the transfer size
becomes 0. The transfer size can be set to the maximum
packet size of the endpoint at the end of each packet.
The controller decrements this field every time a packet
from the external memory is written to the transmit FIFO.
21.6.5.16 OTGFS device OUT endpoint 0 transfer size register
(OTGFS_DOEPTSIZ0)
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
Reserved
0x0
resd
Kept at its default value.
Bit 30: 29 SUPCNT
0x0
rw
SETUP packet count
Indicates the number of back-to-back SETUP data
packets the endpoint can receive.
01: 1 packet
10: 2 packets
11: 3 packets
Bit 28: 20 Reserved
0x000
resd
Kept at its default value.
Bit 19
PKTCNT
0
rw
Packet count
This bit is decremented to 0 after a packet is written to the
receive FIFO.
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
controller interrupts the application when the transfer size
becomes 0. The transfer size can be set to the maximum
packet size of the endpoint, to be interrupted at the end of
each packet.
The controller decrements this field every time a packet