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

Figure 387. Normal bulk/control OUT/SETUP and bulk/control IN transactions - Slave<br />

mode<br />

The channel-specific interrupt service routine for bulk and control OUT/SETUP<br />

transactions in Slave mode is shown in the following code samples.<br />

● Interrupt service routine for bulk/control OUT/SETUP and bulk/control IN<br />

transactions<br />

a) Bulk/Control OUT/SETUP<br />

Unmask (NAK/TXERR/STALL/XFRC)<br />

if (XFRC)<br />

{<br />

Reset Error Count<br />

1265/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!