USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS_INIT function (usbpmapi.h)

Initializes a USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS structure. The client driver must call this function before calling UsbPm_AssignConnectorPowerLevel.

Syntax

void USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS_INIT(
  [Out] PUSBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS Params,
  [In]  USBC_POWER_ROLE                            PowerRole,
  [In]  USBPM_ASSIGN_POWER_LEVEL_PARAMS_FORMAT     Format
);

Parameters

[Out] Params

A pointer to a USBPM_ASSIGN_CONNECTOR_POWER_LEVEL_PARAMS structure to initialize.

[In] PowerRole

The USB Type-C power role of the connector to set. The values are defined in the USBC_POWER_ROLE enumeration.

[In] Format

The USB Type-C format, defined in USBPM_ASSIGN_POWER_LEVEL_PARAMS_FORMAT

Return value

None

Requirements

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