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

OTG_HS device all endpoints interrupt register (OTG_HS_DAINT)<br />

Address offset: 0x818<br />

Reset value: 0x0000 0000<br />

When a significant event occurs on an endpoint, a device all endpoints interrupt register<br />

interrupts the application using the Device OUT endpoints interrupt bit or Device IN<br />

endpoints interrupt bit of the Core interrupt register (OEPINT or IEPINT in<br />

OTG_HS_GINTSTS, respectively). There is one interrupt bit per endpoint, up to a maximum<br />

of 16 bits for OUT endpoints and 16 bits for IN endpoints. For a bidirectional endpoint, the<br />

corresponding IN and OUT interrupt bits are used. Bits in this register are set and cleared<br />

when the application sets and clears bits in the corresponding Device Endpoint-x interrupt<br />

register (OTG_HS_DIEPINTx/OTG_HS_DOEPINTx).<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 />

OEPINT IEPINT<br />

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

Bits 31:16 OEPINT: OUT endpoint interrupt bits<br />

One bit per OUT endpoint:<br />

Bit 16 for OUT endpoint 0, bit 31 for OUT endpoint 15<br />

Bits 15:0 IEPINT: IN endpoint interrupt bits<br />

One bit per IN endpoint:<br />

Bit 0 for IN endpoint 0, bit 15 for endpoint 15<br />

OTG_HS all endpoints interrupt mask register (OTG_HS_DAINTMSK)<br />

Address offset: 0x81C<br />

Reset value: 0x0000 0000<br />

The device endpoint interrupt mask register works with the device endpoint interrupt register<br />

to interrupt the application when an event occurs on a device endpoint. However, the device<br />

all endpoints interrupt (OTG_HS_DAINT) register bit corresponding to that interrupt is still<br />

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

OEPM IEPM<br />

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

Bits 31:16 OEPM: OUT EP interrupt mask bits<br />

One per OUT endpoint:<br />

Bit 16 for OUT EP 0, bit 18 for OUT EP 3<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

Bits 15:0 IEPM: IN EP interrupt mask bits<br />

One bit per IN endpoint:<br />

Bit 0 for IN EP 0, bit 3 for IN EP 3<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

1223/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!