GD32F20x User Manual
926
USBFS_GINTF register triggered after a while. Software should clear the GONAK
flag before writing this bit again.
8
CGINAK
Clear global IN NAK
Software sets this bit to clear GINS bit in this register.
7
SGINAK
Set global IN NAK
Software sets this bit to set GINS bit in this register.
When GINS bit is zero, setting this bit will also cause GINAK flag in
USBFS_GINTF register triggered after a while. Software should clear the GINAK
flag before writing this bit again.
6:4
Reserved
Must be kept at reset value.
3
GONS
Global OUT NAK status
0: The handshake that USBFS responds to OUT transaction packet and whether
to save the OUT data packet
are decided by Rx FIFO status, endpoint’s NAK and
STALL bits
1: USBFS always responds to OUT transaction with NAK handshake and doesn’t
save the incoming OUT data packet
2
GINS
Global IN NAK status
0:
The response to IN transaction is decided by Tx FIFO status, endpoint’s NAK
and STALL bits.
1: USBFS always responses to IN transaction with a NAK handshake.
1
SD
Soft disconnect
Software can use this bit to generate a soft disconnection condition on USB bus.
After this bit is set, USBFS switches off the pull-up resistor on DP line. This will
cause the host to detect a device disconnection.
0: No soft disconnect generated.
1: Generate a soft disconnection.
0
RWKUP
Remote wakeup
In suspend state, software can use this bit to generate a Remote wake up signal
to inform host that it should resume the USB bus.
0: No remote wakeup signal generated.
1: Generate remote wakeup signal.
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
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...