09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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.

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

● Reading the receive FIFO<br />

The application must ignore all packet statuses other than IN data packet (bx0010).<br />

Figure 385. Receive FIFO read task<br />

Unmask RXFLVL<br />

interrupt<br />

Read the received<br />

packet from the<br />

Receive FIFO<br />

Yes<br />

No<br />

Start<br />

RXFLVL<br />

interrupt ?<br />

Yes<br />

Mask RXFLVL<br />

interrupt<br />

Read<br />

OTG_FS_GRXSTSP<br />

PKTSTS<br />

0b0010?<br />

Yes<br />

BCNT > 0?<br />

Unmask RXFLVL<br />

interrupt<br />

● Bulk and control OUT/SETUP transactions<br />

A typical bulk or control OUT/SETUP pipelined transaction-level operation is shown in<br />

Figure 386. See channel 1 (ch_1). Two bulk OUT packets are transmitted. A control<br />

No<br />

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

No<br />

ai15674

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

Saved successfully!

Ooh no, something went wrong!