UCSI_POWER_DIRECTION_ROLE列舉 (ucmucsispec.h)
用於 SET_PDR 命令。 SET_PDR命令可用來設定目前連線的 OS 原則管理員 (OPM) 所指定的電源方向。
語法
typedef enum _UCSI_POWER_DIRECTION_ROLE {
UcsiPowerDirectionRoleProvider = 0x1,
UcsiPowerDirectionRoleConsumer = 0x2,
UcsiPowerDirectionRoleAcceptSwap = 0x4,
UcsiPowerDirectionRoleProviderAcceptSwap = 0x5,
UcsiPowerDirectionRoleConsumerAcceptSwap = 0x6
} UCSI_POWER_DIRECTION_ROLE;
常數
UcsiPowerDirectionRoleProvider 值:0x1 如果尚未以來源的形式運作,連接器會起始交換至來源。 |
UcsiPowerDirectionRoleConsumer 值:0x2 如果尚未以接收的形式運作,連接器會起始交換至接收。 |
UcsiPowerDirectionRoleAcceptSwap 值:0x4 連接器接受來自埠夥伴的電源方向交換要求。 如果清除此位,連接器會拒絕來自埠夥伴的電源方向交換要求。 |
UcsiPowerDirectionRoleProviderAcceptSwap 值:0x5 此欄位結合了 UcsiPowerDirectionRoleProvider 和 UcsiPowerDirectionRoleAcceptSwap 值。 |
UcsiPowerDirectionRoleConsumerAcceptSwap 值:0x6 此欄位結合了 UcsiPowerDirectionRoleConsumer 和 UcsiPowerDirectionRoleAcceptSwap 值。 |
言論
如需詳細資訊,請參閱 UCSI 規格 1.2 版中的 4.5.10 節。
要求
要求 | 價值 |
---|---|
最低 KMDF 版本 | 1.27 |
最低 UMDF 版本 | N/A |
標頭 | ucmucsispec.h (包括 UcmUcsiCx.h) |