GD32VF103 User Manual
478
protocol.
Note: Only accessible in host mode.
16
IDPS
ID pin status
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.
15:12
Reserved
Must be kept at reset value
11
DHNPEN
Device HNP enable
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.
10
HHNPEN
Host HNP enable
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.
9
HNPREQ
HNP request
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.
8
HNPS
HNP successes
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.
7:2
Reserved
Must be kept at reset value
1
SRPREQ
SRP request
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