GD32F20x User Manual
938
Set this bit to 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 controls 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.
This register has to be accessed by word (32-bit)
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...