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 10 HSHNPEN: Host set HNP enable<br />

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

SetFeature.SetHNPEnable command) 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<br />

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

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

0: No HNP request<br />

1: HNP request<br />

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

Bit 8 HNGSCS: Host negotiation success<br />

The core sets this bit when host negotiation is successful. The core clears this bit when the<br />

HNP Request (HNPRQ) bit in this register is set.<br />

0: Host negotiation failure<br />

1: Host negotiation success<br />

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

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

Bit 1 SRQ: Session request<br />

The application sets this bit to initiate a session request on the USB. The application can<br />

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

Interrupt register (HNSSCHG bit in OTG_HS_GOTGINT) is set. The core clears this bit when<br />

the HNSSCHG bit is cleared.<br />

If you use the USB 1.1 full-speed serial transceiver interface to initiate the session request,<br />

the application must wait until V BUS discharges to 0.2 V, after the B-Session Valid bit in this<br />

register (BSVLD bit in OTG_HS_GOTGCTL) is cleared. This discharge time varies between<br />

different PHYs and can be obtained from the PHY vendor.<br />

0: No session request<br />

1: Session request<br />

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

Bit 0 SRQSCS: Session request success<br />

The core sets this bit when a session request initiation is successful.<br />

0: Session request failure<br />

1: Session request success<br />

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

1181/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!