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 19 BSVLD: B-session valid<br />

Indicates the Device mode transceiver status.<br />

0: B-session is not valid.<br />

1: B-session is valid.<br />

In OTG mode, you can use this bit to determine if the device is connected or disconnected.<br />

Note: Only accessible in Device mode.<br />

Bit 18 ASVLD: A-session valid<br />

Indicates the Host mode transceiver status.<br />

0: A-session is not valid<br />

1: A-session is valid<br />

Note: Only accessible in Host mode.<br />

Bit 17 DBCT: Long/short debounce time<br />

Indicates the debounce time of a detected connection.<br />

0: Long debounce time, used for physical connections (100 ms + 2.5 µs)<br />

1: Short debounce time, used for soft connections (2.5 µs)<br />

Note: Only accessible in Host mode.<br />

Bit 16 CIDSTS: Connector ID status<br />

Indicates the connector ID status on a connect event.<br />

0: The OTG_FS controller is in A-Device mode<br />

1: The OTG_FS controller is in B-Device mode<br />

Note: Accessible in both Device <strong>and</strong> Host modes.<br />

Bits 15:12 Reserved<br />

Bit 11 DHNPEN: Device HNP enabled<br />

The application sets this bit when it successfully receives a SetFeature.SetHNPEnable<br />

comm<strong>and</strong> from the connected USB host.<br />

0: HNP is not enabled in the application<br />

1: HNP is enabled in the application<br />

Note: Only accessible in Device mode.<br />

Bit 10 HSHNPEN: Host set HNP enable<br />

The application sets this bit when it has successfully enabled HNP (using the<br />

SetFeature.SetHNPEnable comm<strong>and</strong>) on the connected device.<br />

0: Host Set HNP is not enabled<br />

1: Host Set HNP is enabled<br />

Note: Only accessible in Host mode.<br />

Bit 9 HNPRQ: HNP request<br />

The application sets this bit to initiate an HNP request to the connected USB host. The<br />

application can clear this bit by writing a 0 when the host negotiation success status change bit<br />

in the OTG interrupt register (HNSSCHG bit in OTG_FS_GOTGINT) is set. The core clears this<br />

bit when the HNSSCHG bit is cleared.<br />

0: No HNP request<br />

1: HNP request<br />

Note: Only accessible in Device mode.<br />

Doc ID 13902 Rev 9 723/995

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

Saved successfully!

Ooh no, something went wrong!