Use Class for classes in usbid.

This commit is contained in:
Sebastian Zagrodzki
2017-04-09 18:29:16 +02:00
parent af00028b97
commit d3428d9b35
7 changed files with 36 additions and 23 deletions

View File

@@ -218,4 +218,14 @@ func (s DeviceSpeed) String() string {
return deviceSpeedDescription[s]
}
const (
// SelfPoweredMask is the bitmask for "self powered" field of configuration
// descriptor bmAttributes.
SelfPoweredMask = 0x40
// RemoteWakeupMask is the bitmask for "supports remote wakeup" field of
// configuration descriptor bmAttributes.
RemoteWakeupMask = 0x20
)
// Milliamperes is a unit of electric current consumption.
type Milliamperes uint