GD32VF103 User Manual
512
Software should set this bit to notify USBFS that the registers are initialized after
waking up from power down state.
10
CGONAK
Clear global OUT NAK
Software sets this bit to clear GONS bit in this register.
9
SGONAK
Set global OUT NAK
Software sets this bit to set GONS bit in this register.
When GONS bit is zero, setting this bit will also cause GONAK flag in
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 response 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: USHBS always responses 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 disconnect 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 disconnect.
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.