Files
tinygo/src/machine/usb/descriptor/classspecific.go
T
2023-04-28 15:15:54 +02:00

18 lines
247 B
Go

package descriptor
const (
classSpecificTypeLen = 5
)
type ClassSpecificType struct {
data []byte
}
func (d ClassSpecificType) Bytes() []byte {
return d.data[:d.data[0]]
}
func (d ClassSpecificType) Length(v uint8) {
d.data[0] = byte(v)
}