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

OTG_FS host all channels interrupt mask register (OTG_FS_HAINTMSK)<br />

Address offset: 0x418<br />

Reset value: 0x0000 0000<br />

The host all channel interrupt mask register works with the host all channel interrupt register<br />

to interrupt the application when an event occurs on a channel. There is one interrupt mask<br />

bit per channel, up to a maximum of 16 bits.<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 />

HAINTM<br />

Reserved<br />

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

Bits 31:16 Reserved<br />

Bits 15:0 HAINTM: Channel interrupt mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

One bit per channel: Bit 0 for channel 0, bit 15 for channel 15<br />

OTG_FS host port control <strong>and</strong> status register (OTG_FS_HPRT)<br />

Address offset: 0x440<br />

Reset value: 0x0000 0000<br />

This register is available only in Host mode. Currently, the OTG Host supports only one port.<br />

A single register holds USB port-related information such as USB reset, enable, suspend,<br />

resume, connect status, <strong>and</strong> test mode for each port. It is shown in Figure 268. The rc_w1<br />

bits in this register can trigger an interrupt to the application through the Host port interrupt<br />

bit of the core interrupt register (HPRTINT bit in OTG_FS_GINTSTS). On a Port Interrupt,<br />

the application must read this register <strong>and</strong> clear the bit that caused the interrupt. For the<br />

rc_w1 bits, the application must write a 1 to the bit to clear the interrupt.<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 />

PSPD<br />

PTCTL<br />

PPWR<br />

r r rw rw rw rw rw r r rw rs rw rc_<br />

w1<br />

PLSTS<br />

Reserved<br />

PRST<br />

PSUSP<br />

PRES<br />

POCCHNG<br />

POCA<br />

r<br />

PENCHNG<br />

rc_<br />

w1<br />

PENA<br />

rc_<br />

w0<br />

PCDET<br />

rc_<br />

w1<br />

PCSTS<br />

r<br />

Bits 31:19 Reserved<br />

Bits 18:17 PSPD: Port speed<br />

Indicates the speed of the device attached to this port.<br />

01: Full speed<br />

10: Low speed<br />

11: Reserved<br />

Doc ID 13902 Rev 9 747/995

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

Saved successfully!

Ooh no, something went wrong!