AT32WB415
Series Reference Manual
2022.04.13
Page 341
Ver 2.00
20.6.3.10
OTGFS non-periodic Tx FIFO size
(OTGFS_GNPTXFSIZ)/Endpoint 0 Tx FIFO size registers
(OTGFS_DIEPTXF0)
The application can program the SRAM size and start address of the non-periodic transmit FIFO. The
fields of this register varies with host mode or device mode.
Host:
Bit
Register
Reset value
Type
Description
Bit 31: 16 NPTXFDEP
0x0000
ro/rw
Non-periodic TxFIFO depth
This value is in terms of 32-bit words.
Minimum value is 16
Maximum value is 256
Bit 15: 0
NPTXFSTADDR
0x0200
ro/rw
Non-periodic transmit SRAM start address
This field contains the memory start address of the Non-
periodic Transmit FIFO SRAM.
Device:
Bit
Register
Reset value
Type
Description
Bit 31: 16 INEPT0TXDEP
0x0000
ro/rw
N Endpoint TxFIFO 0 depth
This value is in terms of 32-bit words.
Minimum value is 16
Maximum value is 256
Bit 15: 0
INEPT0TXSTADDR
0x0200
ro/rw
IN Endpoint FIFO0 transmit SRAM start address
This field contains the memory start address of the IN
Endpoint FIFO0 transmit SRAM.
20.6.3.11
OTGFS non-periodic Tx FIFO size/request queue status
register (OTGFS_GNPTXSTS)
This register is valid in host mode only. It is a read-only register that contains the available space
information for the Non-periodic TxFIFO and the Non-periodic Transmit Request Queue.
Bit
Register
Reset value
Type
Description
Bit 31
Reserved
0x0
resd
Kept at its default value.
Bit 30: 24 NPTXQTOP
0x00
ro
Top of the Non-periodic transmit request queue
Indicates that the MAC is processing the request from the
non-periodic transmit request queue.
Bit [30: 27]: Channel/Endpoint number
Bit [26: 25]:
00: IN/OUT token
01: Zero-length transmit packet (device IN/host OUT)
10: PING/CSPLIT token
11: Channel halted command
Bit [24]: Terminate (last request for the selected
channel/endpoint)
Bit 23: 16 NPTXQSPCAVAIL
0x08
ro
Non-periodic transmit request queue space available
Indicates the amount of space available in the non-periodic
transmit request queue. This queue supports both IN and
OUT requests in host mode.
00: Non-periodic transmit request queue is full
01: 1 location available
02: 2 locations available
N: n locations available (0 ≤ n ≤ 8)
Others: Reserved
Reset value: Configurable
Bit 15: 0
NPTXFSPCAVAIL
0x0200
ro
Non-periodic TxFIFO space available
Indicates the amount of space available in the non-periodic
TxFIFO. Values are in terms of 32-bit words.
00: Non-periodic transmit FIFO is full
01: 1 location available
02: 2 locations available
N: n locations available (0 ≤ n ≤ 256)
Others: Reserved
Reset value: Configurable