29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RM0008<br />

USB on-the-go full-speed (OTG_FS)<br />

OTG_FS device OUT endpoint 0 transfer size register (OTG_FS_DOEPTSIZ0)<br />

Address offset: 0xB10<br />

Reset value: 0x0000 0000<br />

The application must modify this register before enabling endpoint 0. Once endpoint 0 is<br />

enabled using the Endpoint enable bit in the Device control endpoint 0 control registers<br />

(EPENA bit in OTG_FS_DOEPCTL0), the core modifies this register. The application can<br />

only read this register once the core has cleared the Endpoint enable bit.<br />

Nonzero endpoints use the registers for endpoints 1–15.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

STUPC<br />

NT<br />

Reserved<br />

PKTCNT<br />

Reserved<br />

XFRSIZ<br />

rw rw rw rw rw rw rw rw rw rw<br />

Bit 31 Reserved<br />

Bits 30:29 STUPCNT: SETUP packet count<br />

This field specifies the number of back-to-back SETUP data packets the endpoint can receive.<br />

01: 1 packet<br />

10: 2 packets<br />

11: 3 packets<br />

Bits 28:20 Reserved<br />

Bit 19 PKTCNT: Packet count<br />

This field is decremented to zero after a packet is written into the RxFIFO.<br />

Bits 18:7 Reserved<br />

Bits 6:0 XFRSIZ: Transfer size<br />

Indicates the transfer size in bytes for endpoint 0. The core interrupts the application only after<br />

it has exhausted the transfer size amount of data. The transfer size can be set to the maximum<br />

packet size of the endpoint, to be interrupted at the end of each packet.<br />

The core decrements this field every time a packet is read from the RxFIFO <strong>and</strong> written to the<br />

external memory.<br />

Doc ID 13902 Rev 9 773/995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!