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.

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

Figure 389. Bulk/control IN transactions - Slave mode<br />

The sequence of operations is as follows:<br />

a) Initialize channel 2.<br />

b) Set the CHENA bit in HCCHAR2 to write an IN request to the nonperiodic request<br />

queue.<br />

c) The core attempts to send an IN token after completing the current OUT<br />

transaction.<br />

d) The core generates an RXFLVL interrupt as soon as the received packet is written<br />

to the receive FIFO.<br />

e) In response to the RXFLVL interrupt, mask the RXFLVL interrupt and read the<br />

received packet status to determine the number of bytes received, then read the<br />

1269/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!