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

Bit 9 BIM: BNA interrupt mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

Bit 8 OPEM: OUT packet error mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

Bits 7:3 Reserved, must be kept at reset value.<br />

Bit 2 AHBERRM: AHB error mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

Bit 1 EPDM: Endpoint disabled interrupt mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

Bit 0 XFRCM: Transfer completed interrupt mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

OTG device endpoint-x control register (OTG_HS_DIEPCTLx) (x = 0..7, where<br />

x = Endpoint_number)<br />

Address offset: 0x900 + (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 />

TXFNUM<br />

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

Stall<br />

rs rs w w w w rw rw rw rw rw/<br />

rs<br />

Reserved<br />

EPTYP<br />

NAKSTS<br />

EONUM/DPID<br />

USBAEP<br />

Reserved<br />

MPSIZ<br />

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

Bit 31 EPENA: Endpoint enable<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 />

Bit 30 EPDIS: Endpoint disable<br />

The application sets this bit to stop transmitting/receiving data on an endpoint, even before<br />

the transfer for that endpoint is complete. The application must wait for the Endpoint<br />

disabled interrupt before treating the endpoint as disabled. The core clears this bit before<br />

setting the Endpoint disabled interrupt. The application must set this bit only if Endpoint<br />

enable is already set for this endpoint.

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

Saved successfully!

Ooh no, something went wrong!