GD32W51x User Manual
872
Softw are should set this bit to notify USBFS that the registers are initialized after
w aking up from pow er dow n state.
10
CGONAK
Clear global OUT NAK
Softw are sets this bit to clear GONS bit in this register.
9
SGONAK
Set global OUT NAK
Softw are sets this bit to set GONS bit in this register.
When GONS bit is zero, setting this bit w ill also cause GONAK flag in
USBFS_GINTF register triggered after a w hile. Softw are should clear the GONA K
flag before w riting this bit again.
8
CGINAK
Clear global IN NAK
Softw are sets this bit to clear GINS bit in this register.
7
SGINAK
Set global IN NAK
Softw are sets this bit to set GINS bit in this register.
When GINS bit is zero, setting this bit w ill also cause GINAK flag in USBFS_GIN T F
register triggered after a w hile. Softw are should clear the GINAK flag before w riting
this bit again.
6:4
Reserved
Must be kept at reset value
3
GONS
Global OUT NAK status
0: The handshake that USBFS response to OUT transaction packet and w hether to
save the OUT data packet are decided b
y Rx FIFO status, endpoint’s NAK and
STALL bits.
1:
USHBS alw ays responses to OUT transaction w ith 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 alw ays responses to IN transaction w ith a NAK handshake.
1
SD
Soft disconnect
Softw are can use this bit to generate a soft disconnect condition on USB bus. After
this bit is set, USBFS sw itches off the pull up resistor on DP line. This w ill cause the
host to detect a device disconnect.
0: No soft disconnect generated.
1: Generate a soft disconnection.
0
RWKUP
Remote w akeup
In suspend state, softw are can use this bit to generate a Remote w ake up signal to
inform host that it should resume the USB bus.
0: No remote w akeup signal generated.
1: Generate remote w akeup signal.