![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 485](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630485.webp)
www.geehy.com Page 484
Field
Name
R/W
Description
27
NAKSET
W
NAK Set
When performing write operation to this bit, the NAK bit of the
endpoint will be set to 1.
This bit can control the transmission of NAK handshake signal.
28
DPIDSET
W
DATA0 PID Set
Used for interrupt/batch IN endpoints:
When performing write operation to this bit, PID will be set to
DATA0.
Even Frame Set
Used for synchronous IN endpoints:
When performing write operation to this bit, EOF will be set to
even frame.
29
OFSET
W
Odd Frame Set
It is used for synchronous IN endpoints. When performing write
operation to this bit, EOF will be set to odd frame.
30
EPDIS
R/S
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
R/S
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 IN endpoint x interrupt register
(OTG_FS_DIEPINTx) (x=0~3, endpoint number)
Offset address: 0x908+0x20x; m=0~3
Reset value: 0x0000 0080
Read this register when ONEP bit of OTG_FS_GCINT register is set to 1;
Read OTG_FS_DAEPINT register to obtain the accurate endpoint number of
the device endpoint x interrupt register, and then read the register; only when
the corresponding bit of the register is cleared to 0, can the corresponding bit of
OTG_FS_DAEPINT register and OTG_FS_GCINT register be cleared to 0.
Field
Name
R/W
Description
0
TSFCMP
RC_W1
Transfer Complete Interrupt
This bit indicates that the transmission on the endpoint has been
completed.
1
EPDIS
RC_W1
Endpoint Interrupt Disable
This bit means that the endpoint is disabled.
2
Reserved