GD32W51x User Manual
873
Device status register (USBFS_DSTAT)
Address offset: 0x0808
Reset value: 0x0000 0000
This register contains status and information of the USBFS in device mode.
This register has to be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
R
e
se
rve
d
F
N
R
S
O
F
[1
3
:8
]
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
F
N
R
S
O
F
[7
:0
]
R
e
se
rve
d
E
S
[1
:0
]
SPST
r
r
r
Bits
Fields
Descriptions
31:22
Reserved
Must be kept at reset value
21:8
FNRSOF[13:0]
The f rame number of the received SOF.
USBFS alw ays update this field after receiving a SOF token
7:3
Reserved
Must be kept at reset value
2:1
ES[1:0]
Enumerated speed
This field reports the enumerated device speed. Read this field after the ENUMF
flag in USBFS_GINTF register is triggered.
11: Full speed
Others: reserved
0
SPST
Suspend status
This bit reports w hether device is in suspend state.
0: Device is not in suspend state.
1: Device is in suspend state.
Device IN endpoint common interrupt enable register (USBFS_DIEPINTEN)
Address offset: 0x810
Reset value: 0x0000 0000
This register contains the interrupt enable bits for the flags in USBFS_DIEPxINTF register. If
a bit in this register is set by software, the corresponding bit in USBFS_DIEPxINTF register