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

Bit 0 XFRC: Transfer completed interrupt<br />

This field indicates that the programmed transfer is complete on the AHB as well as on the<br />

USB, for this endpoint.<br />

OTG_FS device endpoint-x interrupt register (OTG_FS_DOEPINTx) (x = 0..3,<br />

where x = Endpoint_number)<br />

Address offset: 0xB08 + (Endpoint_number × 0x20)<br />

Reset value: 0x0000 0080<br />

This register indicates the status of an endpoint with respect to USB- <strong>and</strong> AHB-related<br />

events. It is shown in Figure 268. The application must read this register when the OUT<br />

Endpoints Interrupt bit of the Core interrupt register (OEPINT bit in OTG_FS_GINTSTS) is<br />

set. Before the application can read this register, it must first read the Device all endpoints<br />

interrupt (OTG_FS_DAINT) register to get the exact endpoint number for the Device<br />

Endpoint-x interrupt register. The application must clear the appropriate bit in this register to<br />

clear the corresponding bits in the OTG_FS_DAINT <strong>and</strong> OTG_FS_GINTSTS registers.<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 />

Reserved<br />

B2BSTUP<br />

rc_<br />

w1<br />

/rw<br />

Reserved<br />

OTEPDIS<br />

rc_<br />

w1<br />

STUP<br />

rc_<br />

w1<br />

Reserved<br />

EPDISD<br />

rc_<br />

w1<br />

XFRC<br />

rc_<br />

w1<br />

Bits 31:7 Reserved<br />

Bit 6 B2BSTUP: Back-to-back SETUP packets received<br />

Applies to Control OUT endpoints only.<br />

This bit indicates that the core has received more than three back-to-back SETUP packets for<br />

this particular endpoint.<br />

Bit 5 Reserved<br />

Bit 4 OTEPDIS: OUT token received when endpoint disabled<br />

Applies only to control OUT endpoints.<br />

Indicates that an OUT token was received when the endpoint was not yet enabled. This<br />

interrupt is asserted on the endpoint for which the OUT token was received.<br />

Bit 3 STUP: SETUP phase done<br />

Applies to control OUT endpoints only.<br />

Indicates that the SETUP phase for the control endpoint is complete <strong>and</strong> no more back-toback<br />

SETUP packets were received for the current control transfer. On this interrupt, the<br />

application can decode the received SETUP data packet.<br />

Bit 2 Reserved<br />

Bit 1 EPDISD: Endpoint disabled interrupt<br />

This bit indicates that the endpoint is disabled per the application’s request.<br />

Bit 0 XFRC: Transfer completed interrupt<br />

This field indicates that the programmed transfer is complete on the AHB as well as on the<br />

USB, for this endpoint.<br />

Doc ID 13902 Rev 9 771/995

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

Saved successfully!

Ooh no, something went wrong!