GD32VF103 User Manual
478
Note: Only accessible in host mode.
Voltage level of connector ID pin
0: USBFS is in A-Device mode
1: USBFS is in B-Device mode
Note: Accessible in both device and host modes.
Must be kept at reset value
Enable the HNP function of a B-Device. If this bit is cleared, USBFS doesn’t start
HNP protocol when application set HNPREQ bit in USBFS_GOTGCS register.
0: HNP function is not enabled.
1: HNP function is enabled
Note: Only accessible in device mode.
Enable the HNP function of an A-Device. If this bit is cleared, USBFS doesn’t
response to the HNP request from B-Device.
0: HNP function is not enabled.
1: HNP function is enabled
Note: Only accessible in host mode.
This bit is set by software to start a HNP on the USB. This bit can be cleared when
HNPEND bit in USBFS_GOTGINTF register is set, by writing zero to it, or clearing
the HNPEND bit in USBFS_GOTGINTF register.
0: Don’t send HNP request
1: Send HNP request
Note: Only accessible in device mode.
This bit is set by the core when HNP succeeds, and this bit is cleared when
HNPREQ bit is set.
0: HNP fails
1: HNP succeeds
Note: Only accessible in device mode.
Must be kept at reset value
This bit is set by software to start a SRP on the USB. This bit can be cleared when
SRPEND bit in USBFS_GOTGINTF register is set, by writing zero to it, or clearing
the SRPEND bit in USBFS_GOTGINTF register.
0: No session request
1: Session request