09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

USB on-the-go high-speed (OTG_HS) <strong>RM0090</strong><br />

OTG_HS device IN endpoint 0 transfer size register (OTG_HS_DIEPTSIZ0)<br />

Address offset: 0x910<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 in OTG_HS_DIEPCTL0), the core modifies this register. The application can only<br />

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 />

Bits 31:21 Reserved, must be kept at reset value.<br />

1239/1416 Doc ID 018909 Rev 3<br />

PKTCNT<br />

XFRSIZ<br />

Reserved<br />

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

Bits 20:19 PKTCNT: Packet count<br />

Indicates the total number of USB packets that constitute the Transfer Size amount of data<br />

for endpoint 0.<br />

This field is decremented every time a packet (maximum size or short packet) is read from<br />

the TxFIFO.<br />

Bits 18:7 Reserved, must be kept at reset value.<br />

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

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

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

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

The core decrements this field every time a packet from the external memory is written to<br />

the TxFIFO.

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

Saved successfully!

Ooh no, something went wrong!