AT32WB415
Series Reference Manual
2022.04.13
Page 363
Ver 2.00
20.6.5.18
OTGFS device IN endpoint transmit FIFO status register
(OTGFS_DTXFSTSx) (x=1
…
3, where x is endpoint number)
This is a ready-only register containing the free space information for the device IN endpoint transmit
FIFO.
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Kept at its default value.
Bit 15: 0
INEPTXFSAV
0x0200
ro
IN endpoint TxFIFO space available
Indicates the amount of free space in the endpoint transmit
FIFO. Values are in terms of 32-bit words.
0x0: Endpoint transmit FIFO is full
0x1: 1 word available
0x02: 2 words available
0xn: n words available (0 < n < 512)
;
0x200: Remaining 512 words
Others: Reserved
20.6.5.19
OTGFS device OUT endpoint-x transfer size register
(OTGFS_DOEPTSIZx) (x=1
…
3, where x is endpoint number)
The application must set this register before enabling endpoint x. Once the endpoint x is enabled using
the endpoint enable pin in the device endpoint x 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 RXDPID
0x0
ro
Received data PID
Applies to synchronous OUT endpoints only.
This is the data PID received in the last packet.
00: DATA0
01: DATA2
10: DATA1
11: MDATA
SETUP packet count
Applies to synchronous OUT endpoints only. 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: 19 PKTCNT
0x000
rw
Packet count
Indicates the number of USB packets transmiited on the
endpoint.
This field is decremented every time a packet is written to
the receive FIFO (maximum packet size and short packet)
Bit 18: 0
XFERSIZE
0x00000
rw
Transfer size
Indicates the transfer size (in bytes) for the current
endpoint. 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 eack packet.
The controller decrements this field every time a packet is
read from the receive FIFO and written to the external
memory.