Use Protocol type for USB interface protocol.
This commit is contained in:
@@ -19,6 +19,7 @@ package usb
|
||||
import "C"
|
||||
import "strconv"
|
||||
|
||||
// Class represents a USB-IF class or subclass code.
|
||||
type Class uint8
|
||||
|
||||
const (
|
||||
@@ -58,6 +59,14 @@ func (c Class) String() string {
|
||||
return strconv.Itoa(int(c))
|
||||
}
|
||||
|
||||
// Protocol is the interface class protocol, qualified by the values
|
||||
// of interface class and subclass.
|
||||
type Protocol uint8
|
||||
|
||||
func (p Protocol) String() string {
|
||||
return strconv.Itoa(int(p))
|
||||
}
|
||||
|
||||
type DescriptorType uint8
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user