GD32F20x User Manual
905
0
Reserved
Must be kept at reset value.
Global receive status read/receive status read and pop registers
(USBFS_GRSTATR/USBFS_GRSTATP)
Address offset for Read: 0x001C
Address offset for Pop: 0x0020
Reset value: 0x0000 0000
A read to the receive status read register returns the entry of the top of the Rx FIFO. A read
to the Receive status read and pop register additionally pops the top entry out of the Rx FIFO.
The entries in RxFIFO have different meanings in host and device modes. Software should
only read this register after when Receive FIFO non-empty interrupt flag bit of the global
interrupt flag register (RXFNEIF bit in USBFS_GINTF) is triggered.
This register has to be accessed by word (32-bit)
Host mode:
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Rese
rve
d
RP
CK
S
T
[3
:0
]
DP
ID
r
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DP
ID
B
COUN
T
[1
0
:0
]
CN
UM
[3
:0
]
r
r
r
Bits
Fields
Descriptions
31:21
Reserved
Must be kept at reset value.
20:17
RPCKST[3:0]
Received packet status
0010: IN data packet received
0011: IN transfer completed (generates an interrupt if poped)
0101: Data toggle error (generates an interrupt if poped)
0111: Channel halted (generates an interrupt if poped)
Others: Reserved
16:15
DPID[1:0]
Data PID
The Data PID of the received packet
00: DATA0
10: DATA1
01: DATA2
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...