GD32F10x User Manual
835
10: Bulk
11: Interrupt
17
NAKS
NAK status
This bit controls the NAK status of USBFS when both STALL bit in this register and
GINS bit in USBFS_DCTL register are are cleared:
0: USBFS sends data or handshake packets according to the status of the
endpoint
’s Tx FIFO.
1: USBFS always sends NAK handshake to the IN token.
This bit is read-only and software should use CNAK and SNAK in this register to
control this bit.
16
EOFRM
DPID
Even/odd frame (For isochronous IN endpoints)
For isochronous transfers, software can use this bit to control that USBFS only
sends data packets for IN tokens in even or odd frames. If the parity of the current
frame number doesn
’t match with this bit, USBFS only responses with a zero-length
packet.
0: Only sends data in even frames
1: Only sends data in odd frames
Endpoint data PID (For interrupt/bulk IN endpoints)
There is a data PID toggle scheme in interrupt or bulk transfer. Set SD0PID to set
this bit before a transfer starts and USBFS maintains this bit during transfers
according to the data toggle scheme described in USB protocol.
0: Data packet
’s PID is DATA0
1: Data packet
’s PID is DATA1
15
EPACT
Endpoint active
This bit controls whether this endpoint is active. If an endpoint is not active, it ignores
all tokens and doesn
’t make any response.
14:11
Reserved
Must be kept at reset value.
10:0
MPL[10:0]
This field defines the maximum packet length in bytes.
Device OUT endpoint 0 control register (USBFS_DOEP0CTL)
Address offset: 0x0B00
Reset value: 0x0000 8000
This register has to be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
EPEN
EPD
Rese
rve
d
.
S
NA
K
CN
A
K
Rese
rve
d
S
T
A
L
L
S
NOOP
E
P
T
Y
P
E
[1
:0
]
NA
K
S
Rese
rve
d
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...