29.15.51 Otg Device Out Endpoint 0 Transfer Size Register; (Otg_Doeptsiz0) - ST STM32F412 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

USB on-the-go full-speed (OTG_FS)

29.15.51 OTG device OUT endpoint 0 transfer size register

(OTG_DOEPTSIZ0)

Address offset: 0xB10
Reset value: 0x0000 0000
The application must modify this register before enabling endpoint 0. Once endpoint 0 is
enabled using the endpoint enable bit in the OTG_DOEPCTL0 registers (EPENA bit in
OTG_DOEPCTL0), the core modifies this register. The application can only read this
register once the core has cleared the endpoint enable bit.
Nonzero endpoints use the registers for endpoints 1–5.
31
30
29
Res.
STUPCNT[1:0]
Res.
rw
rw
15
14
13
Res.
Res.
Res.
Res.
Bit 31 Reserved, must be kept at reset value.
Bits 30:29 STUPCNT[1:0]: SETUP packet count
Bits 28:20 Reserved, must be kept at reset value.
Bit 19 PKTCNT: Packet count
Bits 18:7 Reserved, must be kept at reset value.
Bits 6:0 XFRSIZ[6:0]: Transfer size
1058/1163
28
27
26
25
Res.
Res.
Res.
12
11
10
9
Res.
Res.
Res.
This field specifies the number of back-to-back SETUP data packets the endpoint can
receive.
01: 1 packet
10: 2 packets
11: 3 packets
This field is decremented to zero after a packet is written into the Rx FIFO.
Indicates the transfer size in bytes for endpoint 0. The core interrupts the application only
after it has exhausted the transfer size amount of data. The transfer size can be set to the
maximum packet size of the endpoint, to be interrupted at the end of each packet.
The core decrements this field every time a packet is read from the Rx FIFO and written to
the external memory.
24
23
22
Res.
Res.
Res.
8
7
6
Res.
Res.
rw
RM0402 Rev 6
21
20
19
18
Res.
Res.
Res.
rw
5
4
3
2
XFRSIZ[6:0]
rw
rw
rw
rw
RM0402
17
16
Res.
Res.
1
0
rw
rw

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F412 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF