Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

USB-PD port status information – KBA236114

USB-PD port status information – KBA236114

IFX_Publisher1
Community Manager
Community Manager
Community Manager
250 sign-ins First comment on KBA 250 replies posted

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:

  1. attach: Specifies whether the port is currently attached.
    Connect: Port connected but not debounced yet.
    1: Attached
    0: Not attached
  1. cur_port_role: Specifies whether the port is currently a Source or a Sink
    1: Source
    0: Sink
  1. cur_port_type: Specifies whether the port is currently a DFP or an UFP
  2. polarity: Specifies the Type-C connection polarity (using CC1 or CC2)
    0: CC1 used
    1: CC2 used
  1. contract_exist: Specifies whether a PD contract exists
  2. contract: Specifies the current PD contract (voltage and current) information.
  3. emca_present: Specifies whether CCGx as DFP has detected a cable marker.
    emca type: Passive=0, Active=1.
  1. src_sel_pdo: Specifies the PDO that CCGx as source used to establish PD contract
  2. snk_sel_pdo: Specifies the Source Cap that CCGx as sink accepted to establish PD contract
  3. src_rdo: Specifies the RDO that CCGx received for PD contract
  4. snk_rdo: Specifies the RDO that CCGx as Sink sent for PD contract.
  5. dpm_get_polarity: Get the current polarity of the Type-C connection.
    0 if CC1 is connected; 1 if CC2 is connected
  1. 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.
  2. dpm_get_pd_port_status: Get the current USB-PD port status: 32-bit PD port status value to be reported through HPI.
0 Likes
266 Views