AT32F425
Series Reference Manual
2022.03.30
Page 411
Ver 2.01
responds to SETUP data packets, regardless of whether
this bit is set or not.
Bit 20
SNP
0x0
rw
Snoop mode
This bit configures the endpint to Snoop mode. In this
mode, the controller does not check the correctness of
OUT packets before transmitting OUT packets to the
application memory.
Bit 19: 18 EPTYPE
0x0
ro
Endpoint type
Hardware sets this bit to 0 to control endpoint type.
Bit 17
NAKSTS
0x0
ro
NAK status
Indicates the followins:
0: The controller is sending non-NAK handshakes based
on the FIFO status
1: The controller is sending NAK handshakes
–
When this bit is set (either by the application or the
controller), the controller stops receiving any data on an
OUT endpoint, even if there is space in the receive FIFO.
The controller always responds to SETUP data packets
with an ACK handshake, regardless of whether this bit is
set or not.
Bit 16
Reserved
0x0
resd
Kept at its default value.
Bit 15
USBACEPT
0x1
ro
USB active endpoint
This bit is always set to 1, indicating that a control endpoint
0 is always active in all configurations and interfaces.
Bit 14: 2
Reserved
0x0000
resd
Kept at its default value.
Bit 1: 0
MPS
0x0
ro
Maximum packet size
The maximum packet size of the control OUT endpoint 0
is the same as that of the control IN endpoint 0.
00: 64 bytes
01: 32 bytes
10: 16 bytes
;
11: 8 bytes
。
20.6.5.12
OTGFS device control OUT endpoint -x control register
(OTGFS_DOEPCTLx) (x= x=1
…
7, where x if endpoint number)
This application uses this register to control the behavior of all endpoints other than endpoint 0.
Bit
Register
Reset value
Type
Description
Bit 31
EPTENA
0x0
rw1s
Endpoint enable
Indicates that the descriptor structure and data buffer for
data reception has been configured. The controller clears
this bit before setting any one of the following interrupts on
this endpoint:
–
SETUP stage done
–
Endpoint disabled
–
Transfer completed
Bit 30
EPTDIS
0x0
ro
Endpoint disable
The application sets this bit to stop transmitting data on an
endpoint, even if the transfer on that endpint is incomplete.
The application must wait for the endpoint disabled
interrupt before treating the endpoint as disabled. The
controller clears this bit before setting the endpoint
disabled interrupt. The application must set this bit only
when the endpoint enabled set.
0: No effect
1: Endpoint disabled
Bit 29
SETD1PID/
SETODDFR
0x0
rw
Set DATA1 PID
Applies to interrupt/bulk OUT endpoints only. Writing to this
bit sets the endpoint data PID bit in this register to DATA1.
Set odd frame
Applies to synchronous OUT endpoints only. Writing to this
bit sets the Even/Odd frame to odd frame.
0: Disabled Set DATA1 PID disabled or Do not force odd