![ARTERY AT32F435 Series Скачать руководство пользователя страница 475](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592475.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 475
Rev 2.03
21.6.4.4 OTGFS host periodic Tx FIFO/request queue register
(OTGFS_HPTXSTS)
This is a ready-only register containing the free space information of the periodic Tx FIFO and the
periodic transmit request queue.
Bit
Register
Reset value
Type
Description
Bit 31: 24 PTXQTOP
0x00
ro
Top of the periodic transmit request queue)
Indicates that the MAC is processing the request from the
periodic transmit request queue. This register is used for
debugging.
Bit [31]: Odd/Even frame
0: Transmit in even frame
1: Transmit in odd frame
Bit [30: 27]: Channel/Endpoint number
Bit [26: 25]: Type
00: IN/OUT
01: Zero-length packet
10: Reserved
11: Channel command disable
Bit [24]: Terminate (last request for the selected channel
or endpoint)
Bit 23: 16 PTXQSPCAVAIL
0x08
ro
Periodic transmit request queue space available
Indicates the number of free space available to be written
in the periodic transmit request queue. This queue
contains both IN and OUT requests.
00: Periodic transmit request queue is full
01: 1 space available
10: 2 space available
N: n space available (0 ≤ n ≤ 8)
Others: Reserved
Bit 15: 0
PTXFSPCAVAIL
0x0100
rw
Periodic transmit data FIFO space available
Indicates the number of free space available to be written
in the periodic transmit FIFO, in terms of 32-bit words.
0000: Periodic transmit FIFO is full
0001: 1 space available
0010: 2 space available
N: n space available (0 ≤ n ≤ 512)
Others: Reserved
21.6.4.5 OTGFS host all channels interrupt register ( OTGFS_HAINT)
When a flag event occurs on a channel, the host all channels interrupt register interrupts the application
through the host channels interrupt bit of the controller interrupt register, as shown in Figure 21-2. There
is one interrupt bit for each channel, up to 16 bits. The application sets or clears this register by setting
or clearing the appropriate bit in the corresponding host channel-n interrupt register.
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Kept at its default value.
Bit 15: 0
HAINT
0x0000
ro
Channel interrupts
One bit per channel: bit 0 for channel 0, bit 15 for channel
15.
21.6.4.6 OTGFS host all channels interrupt mask register
(OTGFS_HAINTMSK)
The host all channels interrupt mask register works with the host all channels interrupt register to
interrupt the application when an event occurs on a channel. There is one interrupt mask bit per one
channel, 16 bits in total.
Bit
Register
Reset value
Type
Description
Bit 31: 16 Reserved
0x0000
resd
Kept at its default value.
Bit 15: 0
HAINTMSK
0x0000
rw
Channel interrupt mask
One bit per channel: bit 0 for channel 0, bit 15 for channel
15.