![ARTERY AT32F435 Series Скачать руководство пользователя страница 485](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592485.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 485
Rev 2.03
–
Endpoint disabled
–
Transfer completed.
Bit 30
EPTDIS
0x0
ro
Endpoint disable
The application sets this bit to stop data transmission on
an endpoint. 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 is enabled.
Bit 29: 28 Reserved
0x0
resd
Kept at its default value.
Bit 27
SNAK
0x0
wo
Set NAK
A write to this bit sets the NAK bit of the endpoint. The
application can use this bit to control the transmission of
NAK handshakes on the endpoint. The controller also sets
this bit when a SETUP data packet is received on the
endpoint.
Bit 26
CNAK
0x0
wo
Clear NAK
A write to this bit clears the NAK bit for the endpoint.
Bit 25: 22 TXFNUM
0x0
rw
TxFIFO number
The endpoint 0 can only use FIFO0.
Bit 21
STALL
0x0
rw1s
STALL handshake
The application sets this bit, and the controller clears this
bit when a SETUP token is received. If a NAK bit, a global
non-periodic IN NAK or global OUT NAK bit is set along
with this bit, the STALL bit has priority.
Bit 20
Reserved
0x0
resd
Kept at its default value.
Bit 19: 18 EPTYPE
0x0
ro
Endpoint type
Set to 0 by hardware for control endpoints.
Bit 17
NAKSTS
0x0
ro
NAK status
Indicates the following:
0: The controller is transmitting non-NAK handshakes
based on the FIFO status
1: The controller is transmitting NAK handshakes on this
endpoint
When this bit is set, either by the application or controller,
the controller stops transmitting data, even if there are
space available in the receive FIFO. The controller always
responds to SETUP data packets with an ACK
handshake, irrespective of this bit’s setting.
Bit 16
Reserved
0x0
resd
Kept at its default value.
Bit 15
USBACEPT
0x0
ro
USB active endpoint
This bit is always set to 1, indicating that the 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
rw
Applies to IN and OUT endpoints
The application uses this bit to program the maximum
packet size for the current logical endpoint.
00: 64 bytes
01: 32 bytes
10: 16 bytes
11: 8 bytes