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 17 NAKSTS: NAK status<br />

Indicates the following:<br />

0: The core is transmitting non-NAK h<strong>and</strong>shakes based on the FIFO status.<br />

1: The core is transmitting NAK h<strong>and</strong>shakes on this endpoint.<br />

When either the application or the core sets this bit, the core stops receiving data, even if there<br />

is space in the RxFIFO to accommodate the incoming packet. Irrespective of this bit’s setting,<br />

the core always responds to SETUP data packets with an ACK h<strong>and</strong>shake.<br />

Bit 16 Reserved<br />

Bit 15 USBAEP: USB active endpoint<br />

This bit is always set to 1, indicating that a control endpoint 0 is always active in all<br />

configurations <strong>and</strong> interfaces.<br />

Bits 14:2 Reserved<br />

Bits 1:0 MPSIZ: Maximum packet size<br />

The maximum packet size for control OUT endpoint 0 is the same as what is programmed in<br />

control IN endpoint 0.<br />

00: 64 bytes<br />

01: 32 bytes<br />

10: 16 bytes<br />

11: 8 bytes<br />

OTG_FS device endpoint-x control register (OTG_FS_DOEPCTLx) (x = 1..3,<br />

where x = Endpoint_number)<br />

Address offset for OUT endpoints: 0xB00 + (Endpoint_number × 0x20)<br />

Reset value: 0x0000 0000<br />

The application uses this register to control the behavior of each logical endpoint other than<br />

endpoint 0.<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 />

EPENA<br />

EPDIS<br />

SODDFRM<br />

SD0PID/SEVNFRM<br />

SNAK<br />

CNAK<br />

Reserved<br />

Stall<br />

SNPM<br />

EPTYP<br />

NAKSTS<br />

EONUM/DPID<br />

USBAEP<br />

Reserved<br />

MPSIZ<br />

rs rs w w w w<br />

rw/<br />

rs<br />

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

Bit 31 EPENA: Endpoint enable<br />

Applies to IN <strong>and</strong> OUT endpoints.<br />

The application sets this bit to start transmitting data on an endpoint.<br />

The core clears this bit before setting any of the following interrupts on this endpoint:<br />

– SETUP phase done<br />

– Endpoint disabled<br />

– Transfer completed<br />

Doc ID 13902 Rev 9 767/995

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

Saved successfully!

Ooh no, something went wrong!