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 full-speed (OTG_FS) <strong>RM0090</strong><br />

Bits 31:20 Reserved, must be kept at reset value.<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 and host modes.<br />

Bits 15:12 Reserved, must be kept at reset value.<br />

Bit 11 DHNPEN: Device HNP enabled<br />

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

command 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 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_FS_GOTGINT register (HNSSCHG bit in OTG_FS_GOTGINT) is set. The<br />

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

0: No HNP request<br />

1: HNP request<br />

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

1047/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!