UCSI_SET_NOTIFICATION_ENABLE_COMMAND union (ucmucsispec.h)

在 SET_NOTIFICATION_ENABLE 命令中使用。 请参阅 UCSI 规范版本 1.2 中的表 4-9

语法

typedef union _UCSI_SET_NOTIFICATION_ENABLE_COMMAND {
  UINT64 AsUInt64;
  struct {
    UINT8 Command;
    UINT8 DataLength;
    union {
      UINT16 NotificationEnable;
      struct {
        UINT16 CommandCompleteNotificationEnable : 1;
        UINT16 ExternalSupplyChangeNotificationEnable : 1;
        UINT16 PowerOperationModeChangeNotificationEnable : 1;
        UINT16 SupportedProviderCapabilitiesChangeNotificationEnable : 1;
        UINT16 NegotiatedPowerLevelChangeNotificationEnable : 1;
        UINT16 PdResetNotificationEnable : 1;
        UINT16 SupportedCamChangeNotificationEnable : 1;
        UINT16 BatteryChargingStatusChangeNotificationEnable : 1;
        UINT16 DataRoleSwapCompletedNotificationEnable : 1;
        UINT16 PowerRoleSwapCompletedNotificationEnable : 1;
        UINT16 ConnectChangeNotificationEnable : 1;
        UINT16 ErrorNotificationEnable : 1;
      };
    };
  };
} UCSI_SET_NOTIFICATION_ENABLE_COMMAND, *PUCSI_SET_NOTIFICATION_ENABLE_COMMAND;

成员

AsUInt64

Command

DataLength

NotificationEnable

CommandCompleteNotificationEnable

ExternalSupplyChangeNotificationEnable

PowerOperationModeChangeNotificationEnable

SupportedProviderCapabilitiesChangeNotificationEnable

NegotiatedPowerLevelChangeNotificationEnable

PdResetNotificationEnable

SupportedCamChangeNotificationEnable

BatteryChargingStatusChangeNotificationEnable

DataRoleSwapCompletedNotificationEnable

PowerRoleSwapCompletedNotificationEnable

ConnectChangeNotificationEnable

ErrorNotificationEnable

要求

要求
最低 KMDF 版本 1.27
最低 UMDF 版本 不可用
标头 ucmucsispec.h (包括 UcmUcsiCx.h)