![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 492](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630492.webp)
www.geehy.com Page 491
Field
Name
R/W
Description
31
Reserved
Full-speed OTG device OUT endpoint x transmission size
register (OTG_FS_DOEPTRS) (x=1~3, endpoint number)
Offset address: 0xB10+0x20m; m=1~3
Reset value: 0x0000 0000
This register can be modified only after EPEN bit of OTG_FS_DOEPCTRLx
register is set to 1; this register can be read only after EPEN bit of
OTG_FS_DOEPCTRLx register is cleared to 0
Field
Name
R/W
Description
18:0
EPTRS
R/W
Endpoint Transfer Size
This bit indicates the data size contained by endpoint x in
one data transmission (in byte).
28:19
EPPCNT
R/W
Endpoint Packet Count
This bit indicates the number of data packets contained by
endpoint x in one data transmission.
30:29
PID_SPCNT
R/W
Receive Data PID or SETUP Packet Count
For synchronous OUT endpoints, this bit indicates the
PID of the last received data packet.
00
:
DATA0
01
:
DATA2
10
:
DATA1
11
:
MDATA
For the control OUT endpoint, this bit indicates the
number of SETUP data packets that the endpoint can
continuously receive.
01: 1
10: 2
11: 3
31
Reserved
Full-speed OTG power and clock gating control register
(OTG_FS_PCGCTRL)
Offset address: 0xE00
Reset value: 0x0000 0000
This register is applicable to both master mode and device mode.
Field
Name
R/W
Description
0
PCLKSTOP
R/W
PHY Clock Stop
0: The PHY clock is enabled to start when the USB
communication is restored or the session is restarted
1: Stop the PHY clock when USB communication is
suspended, the session is invalid, or the device is
disconnected