// ucmucsispec.h
typedef enum _UCSI_POWER_DIRECTION_ROLE {
UcsiPowerDirectionRoleProvider = 0x1,
UcsiPowerDirectionRoleConsumer = 0x2,
UcsiPowerDirectionRoleAcceptSwap = 0x4,
UcsiPowerDirectionRoleProviderAcceptSwap = 0x5,
UcsiPowerDirectionRoleConsumerAcceptSwap = 0x6
} UCSI_POWER_DIRECTION_ROLE;
View the official Windows Driver Kit DDI referenceNo description available.
Used in the SET_PDR command. The SET_PDR command is used to set the power direction dictated by the OS Policy Manager (OPM), for the current connection.
UcsiPowerDirectionRoleProvider:0x1The connector initiates swap to source, if not already operating as source.
UcsiPowerDirectionRoleConsumer:0x2The connector initiates swap to sink, if not already operating as sink.
UcsiPowerDirectionRoleAcceptSwap:0x4The connector accepts power direction swap requests from the port partner. If this bit is cleared, the connector rejects power direction swap requests from the port partner.
UcsiPowerDirectionRoleProviderAcceptSwap:0x5This field combines the UcsiPowerDirectionRoleProvider and UcsiPowerDirectionRoleAcceptSwap values.
UcsiPowerDirectionRoleConsumerAcceptSwap:0x6This field combines the UcsiPowerDirectionRoleConsumer and UcsiPowerDirectionRoleAcceptSwap values.
For more information, see section 4.5.10 in the UCSI spec version 1.2.