![ARTERY AT32F435 Series Reference Manual Download Page 487](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592487.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 487
Rev 2.03
0: Stall all invalid tokens
1: Stall all valid tokens
Bit 20
Reserved
0x0
resd
Kept at its default value.
Bit 19: 18 EPTYPE
0x0
rw
Endpoint type
This is the transfer type supported by this logical endpoint.
00: Control
01: Synchronous
10: Bulk
11: Interrupt
Bit 17
NAKSTS
0x0
ro
NAK status
Indicates the following status:
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
to accommodate the incoming data packets.
–
For non-synchronous IN endpoints: the controller stops
transmitting data on the endpoint, even if there is data
pending in the transmit FIFO.
–
For synchronous IN endpoints: the controller sends a
zero-length data packet, even if there is space in the
transmit FIFO.
The controller always responds to SETUP data packets
with an ACK handshake, regardless of whether this bit is
set or not.
Bit 16
DPID/
EOFRNUM
0x0
ro
Endpoint data PID
Applies to interrupt/bulk IN endpoints only.
This bit contains the PID of the packet to be transmitted
on this endpoint. The application must program the PID of
the initial data packet to be received or transmitted on this
endpoint, after the endpoint is enabled. The application
programs DATA0 or DATA1 PID through the SetD1PID
and SetD0PID of this register.
0: DATA0
1: DATA1
Even/Odd frame
Applies to synchronous IN endpoints only.
Indicates the frame number in which the controller
transmits synchronous data on this endpoint. The
application must program the even/odd frame number in
which it tends to transmit or receive synchronous data
through the SETEVNFR and SETODDFR bits in this
register.
0: Even frame
1: Odd frame
Bit 15
USBACEPT
0x0
rw
USB active endpoint
Indicates whether this endpoint is active in the current
configuration and interface. The controller clears this bit
for all endpoints except for endpoint 0 after detecting a
USB reset. After receiving the SetConfiguration and
SetInterface commands, the application must program
the endpoint registers and set this bit.
0: Inactive
1: Active
Bit 14: 11 Reserved
0x0
resd
Kept at its default value.
Bit 10: 0
MPS
0x000
rw
Maximum packet size
The application uses this field to set the maximum packet
size for the current logical endpoint. The values are in
bytes.