UsbConfigurationDescriptor.SelfPowered 属性

定义

获取 USB 配置中 bmAttributes 字段的 D6 位。 此值指示设备是从本地源还是从总线获取电源。

public:
 property bool SelfPowered { bool get(); };
bool SelfPowered();
public bool SelfPowered { get; }
var boolean = usbConfigurationDescriptor.selfPowered;
Public ReadOnly Property SelfPowered As Boolean

属性值

Boolean

bool

如果设备从本地源供电,则为 True;false 表示设备仅从总线供电。

注解

如果 SelfPowered 为 true,则设备从本地源获取电源,以及从总线获取一些电源。 获取 MaxPowerMilliamps 属性值,以确定设备从总线中提取的功率量。

适用于