GadgetAttributes enum
USB configuration attributes (bmAttributes field).
Specifies power source and wakeup capability of the device.
Values
- busPowered → const GadgetAttributes
-
Device is powered from the USB bus only (default).
Maximum power draw is limited by bMaxPower (typically 500 mA for USB 2.0).
const GadgetAttributes(0x80) - selfPowered → const GadgetAttributes
-
Device has an external power source.
Can draw more power than USB provides. The device may or may not also draw power from the bus.
const GadgetAttributes(0xC0) - remoteWakeup → const GadgetAttributes
-
Device supports remote wakeup.
Can signal the host to exit suspend mode. Requires host approval.
const GadgetAttributes(0xA0)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
Raw bmAttributes byte value.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
GadgetAttributes> - A constant List of the values in this enum, in order of their declaration.