GD32F403xx User Manual
698
21
STALL
STALL handshake
Set this bit to make USBFS send STALL handshake during an OUT transaction.
USBFS will clear this bit after a SETUP token is received on OUT endpoint 0. This
bit has a higher priority than NAKS bit in this register, i.e. if both STALL and NAKS
bits are set, the STALL bit takes effect.
20
SNOOP
Snoop mode
This bit con trols the snoop mode of an OUT endpoint. In snoop mode, USBFS
doesn’t check the received data packet’s CRC value.
0: Snoop mode disabled
1: Snoop mode enabled
19:18
EPTYPE[1:0]
Endpoint type
This field is fixed to
‘00’ for control endpoint.
17
NAKS
NAK status
This bit controls the NAK status of USBFS when both STALL bit in this register
and GONS bit in USBFS_DCTL register are cleared:
0: USBFS sends data or handshake packets according to the status of the
endpoint’s Rx FIFO.
1: USBFS always sends NAK handshake for the OUT token.
This bit is read -only and software should use CNAK and SNAK in this register to
control this bit.
16
Reserved
Must be kept at reset value.
15
EPACT
Endpoint active
This field is fixed to
‘1’ for endpoint 0.
14:2
Reserved
Must be kept at reset value.
1:0
MPL[1:0]
Maximum packet length
This is a read -only field, and its value comes from the MPL field of
USBFS_DIEP0CTL register:
00: 64 bytes
01: 32 bytes
10: 16 bytes
11: 8 bytes
Device OUT endpoint-x control register (USBFS_DOEPxCTL) (x = 1..3, where x
= endpoint_number)
Address offset: (endpoint_number × 0x20)
Reset value: 0x0000 0000
The application uses this register to control the operations of each logical OUT endpoint other
than OUT endpoint 0.
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...