USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS structure (usbpmapi.h)

Describes the parameters for the UsbPm_AssignConnectorPowerLevel function. Initialize this structure by calling USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS_INIT.

Syntax

typedef struct _USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS {
  USBC_POWER_ROLE                        PowerRole;
  USBPM_ASSIGN_POWER_LEVEL_PARAMS_FORMAT Format;
  union {
    struct {
      UINT8                               MaximumPdPowerIn500mW;
      USBC_UCSI_SET_POWER_LEVEL_C_CURRENT MaximumTypeCCurrent;
    } Ucsi;
    struct {
      USBC_PD_REQUEST_DATA_OBJECT Rdo;
    } Rdo;
  };
} USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS, *PUSBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS;

Members

PowerRole

The USB Type-C power role of the connector, defined in the USBC_POWER_ROLE enumeration.

Format

The power level format, defined in the USBPM_ASSIGN_POWER_LEVEL_PARAMS_FORMAT enumeration.

Ucsi

Description for the USCI inner structure.

Ucsi.MaximumPdPowerIn500mW

Maximum power in 500mW unit for the connector to provide/consume.

Ucsi.MaximumTypeCCurrent

Maximum current for the connector to provide/consume, defined in the USBC_UCSI_SET_POWER_LEVEL_C_CURRENT enumeration.

Rdo

Description for the RDO inner structure.

Rdo.Rdo

The PD Request Data Object that has sent to the port partner of this connector. See USBC_PD_REQUEST_DATA_OBJECT.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Minimum KMDF version 1.27
Minimum UMDF version 2.27
Header usbpmapi.h