GD32W51x User Manual
864
7
PSP
Port suspend
Application sets this bit to put port into suspend state. When this bit is set the port
stops sending SOF tokens. This bit can only be cleared by the follow ing operations :
PRST bit in this register is set by application
PREM bit in this register is set
A remote w akeup signal is detected
A device disconnect is detected
0: Port is not in suspend state
1: Port is in suspend state
6
PREM
Port resume
Application sets this bit to start a resume signal on USB port. Application should
clear this bit w hen it w ants to stop the resume signal.
0: No resume driven
1: Resume driven
5:4
Reserved
Must be kept at reset value
3
PEDC
Port enable/disable change
Set by the core w hen the status of the Port enable bit 2 in this register changes.
2
PE
Port Enable
This bit is automatically set by USBFS after a USB reset signal finishes and cannot
be set by softw are.
This bit is cleared by the follow ing events:
A disconnect condition
Softw are clearing this bit
0: Port disabled
1: Port enabled
1
PCD
Port connect detected
Set by USBFS w hen a device connection is detected. This bit can be cleared by
w riting 1 to this bit.
0
PCST
Port connect status
0: Device is not connected to the port
1: Device is connected to the port
Host channel-x control register (USBFS_HCHxCTL) (x = 0..7 where x =
channel_number)
Address offset: (channel_number × 0x20)
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit)