![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 536](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630536.webp)
www.geehy.com Page 535
Field
Name
R/W
Description
29
OFSET
W
Odd Frame Set
When performing write operation to this bit, EOF bit of
synchronous OUT endpoint 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
High-speed OTG device OUT endpoint x interrupt register
(OTG_HS1_DOEPINTx) ( (x=0~7, endpoint number)
Offset address: 0xB08+0x20m; m=0~7
Reset value: 0x0000 0080
OTG_HS1_ Read this register when ONEP bit of GCINT register is set to 1;
Read OTG_HS1_DAEPINTx 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
OTH_HS1_DAEPINT register and OTG_HS1_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
3
SETPCMP
RC_W1
SETUP Phase Complete Interrupt
This bit is only applicable to the control OUT endpoint, indicating
that the SETUP phase has been completed. After an interrupt is
generated, the received SETUP data can be decoded.
4
RXOTDIS
RC_W1
Receive OUT Token Disable Interrupt
This bit is only applicable to the control OUT endpoint, indicating
that the OUT token is received without enabling the endpoint.
5
Reserved
6
RXBSP
RC_W1
Receive Back-to-Back SETUP Packet Interrupt
This bit is only applicable to the control OUT endpoint, indicating
that the endpoint has received more than three consecutive
SETUP data packets.