USB-PD port status information – KBA236114
Community Manager
Aug 24, 2022
01:48 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Aug 24, 2022
01:48 AM
Community Translation: USB-PD ポートステータス情報 - KBA236114
Version: **
The Device Policy Manager interface layer in the CCGx PD stack maintains a status data structure that provides the complete status information about the USB Power Delivery (USB PD) port.
This structure can be retrieved using the dpm_get_info() API. The API returns a constant pointer to a dpm_status_t structure, which includes the following status fields:
- attach: Specifies whether the port is currently attached.
Connect: Port connected but not debounced yet.
1: Attached
0: Not attached
- cur_port_role: Specifies whether the port is currently a Source or a Sink
1: Source
0: Sink
- cur_port_type: Specifies whether the port is currently a DFP or an UFP
- polarity: Specifies the Type-C connection polarity (using CC1 or CC2)
0: CC1 used
1: CC2 used
- contract_exist: Specifies whether a PD contract exists
- contract: Specifies the current PD contract (voltage and current) information.
- emca_present: Specifies whether CCGx as DFP has detected a cable marker.
emca type: Passive=0, Active=1.
- src_sel_pdo: Specifies the PDO that CCGx as source used to establish PD contract
- snk_sel_pdo: Specifies the Source Cap that CCGx as sink accepted to establish PD contract
- src_rdo: Specifies the RDO that CCGx received for PD contract
- snk_rdo: Specifies the RDO that CCGx as Sink sent for PD contract.
- dpm_get_polarity: Get the current polarity of the Type-C connection.
0 if CC1 is connected; 1 if CC2 is connected
- dpm_typec_deassert_rp_rd: De-assert both Rp and Rd on the specified PD port. This function removes Rp and Rd from the specified CC channel. Returns CCG_STAT_SUCCESS if operation is successful, and CCG_STAT_BAD_PARAM if operation fails.
- dpm_get_pd_port_status: Get the current USB-PD port status: 32-bit PD port status value to be reported through HPI.
Labels
Rate this article: