www.geehy.com Page 487
Field
Name
R/W
Description
15
USBAEP
R
USB Active Endpoint
This bit indicates whether the endpoint is activated in the current
configuration and interface.
This bit is always set to 1.
16
Reserved
17
NAKSTS
R
NAK Status
0: The module replies non-NAK handshake signal according to the FIFO
state
1: The module replies the NAK handshake signal on this endpoint. At this
time, even if there is space in RXFIFO, the module will still stop receiving
data.
19:18 EPTYPE
R
Endpoint Type
This bit is set to 00 by hardware, indicating control type of the endpoint.
20
SNMEN
R/W
Snoop Mode Enable
In snoop mode, the correctness of OUT data packets is not checked before
they are transmitted to the storage area.
21
STALLH
R/S
STALL Handshake
The program can only set this bit to 1 and when the endpoint receives the
SETUP token, this bit will be cleared to 0. The priority of STALL is higher
than that of NAK.
25:22
Reserved
26
NAKCLR
W
NAK Clear
When performing write operation to this bit, the NAK bit of the endpoint 0
will be cleared to 0.
27
NAKSET
W
NAK Set
When performing write operation to this bit, the NAK bit will be set to 1.
29:28
Reserved
30
EPDIS
R
Endpoint Disable
Data transmission on the endpoint can be stopped by setting this bit to 1.
This bit needs to be cleared to 0 before the endpoint disable interrupt bit
is set to 1; this bit can only be set to 1 after EPEN is set to 1.
31
EPEN
W
Endpoint Enable
After this bit is set to 1, the endpoint will start to transmit data.
When any of the following interrupts is triggered, this bit will be cleared to
0:
SETUP completed
Disable endpoint
Transmission completed
Full-speed OTG device OUT endpoint x control register
(OTG_FS_DOEPCTRLx) (x=1~3, endpoint number)
Offset address: 0xB00+0x20x
Reset value: 0x0000 0000