// usbpmapi.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
Describes the parameters for the UsbPm_AssignConnectorPowerLevel function. Initialize this structure by calling USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS_INIT.
PowerRoleThe USB Type-C power role of the connector, defined in the USBC_POWER_ROLE enumeration.
FormatThe power level format, defined in the USBPM_ASSIGN_POWER_LEVEL_PARAMS_FORMAT enumeration.
UcsiDescription for the USCI inner structure.
Ucsi.MaximumPdPowerIn500mWMaximum power in 500mW unit for the connector to provide/consume.
Ucsi.MaximumTypeCCurrentMaximum current for the connector to provide/consume, defined in the USBC_UCSI_SET_POWER_LEVEL_C_CURRENT enumeration.
RdoDescription for the RDO inner structure.
Rdo.RdoThe PD Request Data Object that has sent to the port partner of this connector. See USBC_PD_REQUEST_DATA_OBJECT.