GD32VF103 User Manual
503
register is set by USBFS: PRST, PEDC and PCD.
This register has to be accessed by word (32-bit)
Must be kept at reset value
Report the enumerated speed of the device attached to this port.
01: Full speed
10: Low speed
Others: Reserved
Must be kept at reset value
This bit should be set before a port is used. Because USBFS doesn’t have power
supply ability, it only uses this bit to know whether the port is in powered state.
Software should ensure the true power supply on VBUS before setting this bit.
0: Port is powered off
1: Port is powered on
Report the current state of USB data lines
Bit 10: State of DP line
Bit 11: State of DM line
Must be kept at reset value
Application sets this bit to start a reset signal on USB port. Application should clear
this bit when it wants to stop the reset signal.
0: Port is not in reset state
1: Port is in reset state