29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

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

OTG_FS host channel-x transfer size register (OTG_FS_HCTSIZx) (x = 0..7,<br />

where x = Channel_number)<br />

Address offset: 0x510 + (Channel_number × 0x20)<br />

Reset value: 0x0000 0000<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 />

DPID PKTCNT XFRSIZ<br />

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

Bit 31 Reserved<br />

Bits 30:29 DPID: Data PID<br />

The application programs this field with the type of PID to use for the initial transaction. The<br />

host maintains this field for the rest of the transfer.<br />

00: DATA0<br />

01: DATA2<br />

10: DATA1<br />

11: MDATA (non-control)/SETUP (control)<br />

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

This field is programmed by the application with the expected number of packets to be<br />

transmitted (OUT) or received (IN).<br />

The host decrements this count on every successful transmission or reception of an OUT/IN<br />

packet. Once this count reaches zero, the application is interrupted to indicate normal<br />

completion.<br />

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

For an OUT, this field is the number of data bytes the host sends during the transfer.<br />

For an IN, this field is the buffer size that the application has reserved for the transfer. The<br />

application is expected to program this field as an integer multiple of the maximum packet size<br />

for IN transactions (periodic <strong>and</strong> non-periodic).<br />

Doc ID 13902 Rev 9 753/995

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

Saved successfully!

Ooh no, something went wrong!