Versions in this module Expand all Collapse all v0 v0.3.0 Aug 28, 2025 Changes in this version + const ClassHIDTypeLen + const TransferTypeBulk + const TransferTypeControl + const TransferTypeInterrupt + const TransferTypeIsochronous + const TypeClassHID + const TypeClassSpecific + const TypeClassSpecificEndpoint + const TypeConfiguration + const TypeDevice + const TypeDeviceQualifier + const TypeEndpoint + const TypeHIDReport + const TypeInterface + const TypeInterfaceAssociation + const TypeString + var CDC = Descriptor + var CDCHID = Descriptor + var CDCJoystick = Descriptor + var CDCMIDI = Descriptor + var ClassHID = ClassHIDType + var ClassHIDJoystick = ClassHIDType + var ClassSpecificAudioInterface = ClassSpecificType + var ClassSpecificCDCACM = ClassSpecificType + var ClassSpecificCDCCallManagement = ClassSpecificType + var ClassSpecificCDCHeader = ClassSpecificType + var ClassSpecificCDCUnion = ClassSpecificType + var ClassSpecificMIDIHeader = ClassSpecificType + var ClassSpecificMIDIInEndpoint = ClassSpecificType + var ClassSpecificMIDIInJack1 = ClassSpecificType + var ClassSpecificMIDIInJack2 = ClassSpecificType + var ClassSpecificMIDIOutEndpoint = ClassSpecificType + var ClassSpecificMIDIOutJack1 = ClassSpecificType + var ClassSpecificMIDIOutJack2 = ClassSpecificType + var ConfigurationCDC = ConfigurationType + var ConfigurationCDCHID = ConfigurationType + var ConfigurationCDCJoystick = ConfigurationType + var ConfigurationCDCMIDI = ConfigurationType + var ConfigurationMSC = ConfigurationType + var DeviceCDC = DeviceType + var DeviceJoystick = DeviceType + var EndpointEP1IN = EndpointType + var EndpointEP2OUT = EndpointType + var EndpointEP3IN = EndpointType + var EndpointEP4IN = EndpointType + var EndpointEP5OUT = EndpointType + var EndpointEP6IN = EndpointType + var EndpointEP7OUT = EndpointType + var EndpointMSCIN = EndpointType + var EndpointMSCOUT = EndpointType + var HIDCollectionApplication = HIDCollection(0x01) + var HIDCollectionEnd = []byte + var HIDCollectionPhysical = HIDCollection(0x00) + var HIDInputConstVarAbs = HIDInput(0x03) + var HIDInputDataAryAbs = HIDInput(0x00) + var HIDInputDataVarAbs = HIDInput(0x02) + var HIDInputDataVarRel = HIDInput(0x06) + var HIDOutputConstVarAbs = HIDOutput(0x03) + var HIDOutputDataVarAbs = HIDOutput(0x02) + var HIDUsageConsumerControl = HIDUsage(0x01) + var HIDUsageConsumerGraphicEqualizer = HIDUsage(0x06) + var HIDUsageConsumerHeadphone = HIDUsage(0x05) + var HIDUsageConsumerMicrophone = HIDUsage(0x04) + var HIDUsageConsumerNumericKeypad = HIDUsage(0x02) + var HIDUsageConsumerProgrammableButtons = HIDUsage(0x03) + var HIDUsageDesktopAssistive = HIDUsage(0x10) + var HIDUsageDesktopCallState = HIDUsage(0x13) + var HIDUsageDesktopChassis = HIDUsage(0x0B) + var HIDUsageDesktopCountedBuffer = HIDUsage(0x3A) + var HIDUsageDesktopDial = HIDUsage(0x37) + var HIDUsageDesktopDock = HIDUsage(0x11) + var HIDUsageDesktopDockable = HIDUsage(0x12) + var HIDUsageDesktopGamepad = HIDUsage(0x05) + var HIDUsageDesktopHatSwitch = HIDUsage(0x39) + var HIDUsageDesktopJoystick = HIDUsage(0x04) + var HIDUsageDesktopKeyboard = HIDUsage(0x06) + var HIDUsageDesktopKeypad = HIDUsage(0x07) + var HIDUsageDesktopMouse = HIDUsage(0x02) + var HIDUsageDesktopMultiaxis = HIDUsage(0x08) + var HIDUsageDesktopPointer = HIDUsage(0x01) + var HIDUsageDesktopPortable = HIDUsage(0x0D) + var HIDUsageDesktopRx = HIDUsage(0x33) + var HIDUsageDesktopRy = HIDUsage(0x34) + var HIDUsageDesktopRz = HIDUsage(0x35) + var HIDUsageDesktopSlider = HIDUsage(0x36) + var HIDUsageDesktopSpatial = HIDUsage(0x0F) + var HIDUsageDesktopSystemMultiaxis = HIDUsage(0x0E) + var HIDUsageDesktopTablet = HIDUsage(0x09) + var HIDUsageDesktopWaterCooling = HIDUsage(0x0A) + var HIDUsageDesktopWheel = HIDUsage(0x38) + var HIDUsageDesktopWireless = HIDUsage(0x0C) + var HIDUsageDesktopX = HIDUsage(0x30) + var HIDUsageDesktopY = HIDUsage(0x31) + var HIDUsageDesktopZ = HIDUsage(0x32) + var HIDUsagePageArcade = HIDUsagePage(0x91) + var HIDUsagePageAuxDisplay = HIDUsagePage(0x14) + var HIDUsagePageBarcodeScanner = HIDUsagePage(0x8C) + var HIDUsagePageBatterySystem = HIDUsagePage(0x85) + var HIDUsagePageBrailleDisplay = HIDUsagePage(0x41) + var HIDUsagePageButton = HIDUsagePage(0x09) + var HIDUsagePageCameraControl = HIDUsagePage(0x90) + var HIDUsagePageConsumer = HIDUsagePage(0x0C) + var HIDUsagePageDigitizers = HIDUsagePage(0x0D) + var HIDUsagePageEyeHeadTrackers = HIDUsagePage(0x12) + var HIDUsagePageGameControls = HIDUsagePage(0x05) + var HIDUsagePageGaming = HIDUsagePage(0x92) + var HIDUsagePageGenericControls = HIDUsagePage(0x06) + var HIDUsagePageGenericDesktop = HIDUsagePage(0x01) + var HIDUsagePageHaptics = HIDUsagePage(0x0E) + var HIDUsagePageKeyboard = HIDUsagePage(0x07) + var HIDUsagePageLED = HIDUsagePage(0x08) + var HIDUsagePageLighting = HIDUsagePage(0x59) + var HIDUsagePageMagneticStripe = HIDUsagePage(0x8E) + var HIDUsagePageMedicalInstrument = HIDUsagePage(0x40) + var HIDUsagePageMonitor = HIDUsagePage(0x80) + var HIDUsagePageMonitorEnum = HIDUsagePage(0x81) + var HIDUsagePageOrdinal = HIDUsagePage(0x0A) + var HIDUsagePagePhysicalInput = HIDUsagePage(0x0F) + var HIDUsagePagePower = HIDUsagePage(0x84) + var HIDUsagePageScales = HIDUsagePage(0x8D) + var HIDUsagePageSensors = HIDUsagePage(0x20) + var HIDUsagePageSimulationControls = HIDUsagePage(0x02) + var HIDUsagePageSoC = HIDUsagePage(0x11) + var HIDUsagePageSportControls = HIDUsagePage(0x04) + var HIDUsagePageTelephony = HIDUsagePage(0x0B) + var HIDUsagePageUnicode = HIDUsagePage(0x10) + var HIDUsagePageVESA = HIDUsagePage(0x82) + var HIDUsagePageVRControls = HIDUsagePage(0x03) + var InterfaceAssociationCDC = InterfaceAssociationType + var InterfaceAssociationMIDI = InterfaceAssociationType + var InterfaceAssociationMSC = InterfaceAssociationType + var InterfaceAudio = InterfaceType + var InterfaceCDCControl = InterfaceType + var InterfaceCDCData = InterfaceType + var InterfaceHID = InterfaceType + var InterfaceHIDJoystick = InterfaceType + var InterfaceMIDIStreaming = InterfaceType + var InterfaceMSC = InterfaceType + var JoystickDefaultHIDReport = Append([][]byte{ ... }) + var MSC = Descriptor + func Append[T any](slices [][]T) []T + func HIDCollection(id uint32) []byte + func HIDInput(flags uint32) []byte + func HIDLogicalMaximum(max int) []byte + func HIDLogicalMinimum(min int) []byte + func HIDOutput(flags uint32) []byte + func HIDPhysicalMaximum(max int) []byte + func HIDPhysicalMinimum(min int) []byte + func HIDReportCount(count int) []byte + func HIDReportID(id int) []byte + func HIDReportSize(size int) []byte + func HIDUnit(unit uint32) []byte + func HIDUnitExponent(exp int) []byte + func HIDUsage(id uint32) []byte + func HIDUsageMaximum(max int) []byte + func HIDUsageMinimum(min int) []byte + func HIDUsagePage(id uint16) []byte + type ClassHIDType struct + func FindClassHIDType(des, class []byte) (ClassHIDType, error) + func (d ClassHIDType) Bytes() []byte + func (d ClassHIDType) ClassLength(v uint16) + func (d ClassHIDType) ClassType(v uint8) + func (d ClassHIDType) CountryCode(v uint8) + func (d ClassHIDType) HID(v uint16) + func (d ClassHIDType) Length(v uint8) + func (d ClassHIDType) NumDescriptors(v uint8) + func (d ClassHIDType) Type(v uint8) + type ClassSpecificType struct + func (d ClassSpecificType) Bytes() []byte + func (d ClassSpecificType) Length(v uint8) + type ConfigurationType struct + func (d ConfigurationType) Attributes(v uint8) + func (d ConfigurationType) Bytes() []byte + func (d ConfigurationType) Configuration(v uint8) + func (d ConfigurationType) ConfigurationValue(v uint8) + func (d ConfigurationType) Length(v uint8) + func (d ConfigurationType) MaxPower(v uint8) + func (d ConfigurationType) NumInterfaces(v uint8) + func (d ConfigurationType) TotalLength(v uint16) + func (d ConfigurationType) Type(v uint8) + type Descriptor struct + Configuration []byte + Device []byte + HID map[uint16][]byte + func (d *Descriptor) Configure(idVendor, idProduct uint16) + type Device struct + DeviceDescBank [2]DeviceDescBank + type DeviceDescBank struct + ADDR volatile.Register32 + EXTREG volatile.Register16 + PCKSIZE volatile.Register32 + STATUS_BK volatile.Register8 + type DeviceType struct + func (d DeviceType) Bytes() []byte + func (d DeviceType) Device(v uint16) + func (d DeviceType) DeviceClass(v uint8) + func (d DeviceType) DeviceProtocol(v uint8) + func (d DeviceType) DeviceSubClass(v uint8) + func (d DeviceType) Length(v uint8) + func (d DeviceType) Manufacturer(v uint8) + func (d DeviceType) MaxPacketSize0(v uint8) + func (d DeviceType) NumConfigurations(v uint8) + func (d DeviceType) Product(v uint8) + func (d DeviceType) ProductID(v uint16) + func (d DeviceType) SerialNumber(v uint8) + func (d DeviceType) Type(v uint8) + func (d DeviceType) USB(v uint16) + func (d DeviceType) VendorID(v uint16) + type EndpointType struct + func (d EndpointType) Attributes(v uint8) + func (d EndpointType) Bytes() []byte + func (d EndpointType) EndpointAddress(v uint8) + func (d EndpointType) GetMaxPacketSize() uint16 + func (d EndpointType) Interval(v uint8) + func (d EndpointType) Length(v uint8) + func (d EndpointType) MaxPacketSize(v uint16) + func (d EndpointType) Type(v uint8) + type InterfaceAssociationType struct + func (d InterfaceAssociationType) Bytes() []byte + func (d InterfaceAssociationType) FirstInterface(v uint8) + func (d InterfaceAssociationType) Function(v uint8) + func (d InterfaceAssociationType) FunctionClass(v uint8) + func (d InterfaceAssociationType) FunctionProtocol(v uint8) + func (d InterfaceAssociationType) FunctionSubClass(v uint8) + func (d InterfaceAssociationType) InterfaceCount(v uint8) + func (d InterfaceAssociationType) Length(v uint8) + func (d InterfaceAssociationType) Type(v uint8) + type InterfaceType struct + func (d InterfaceType) AlternateSetting(v uint8) + func (d InterfaceType) Bytes() []byte + func (d InterfaceType) Interface(v uint8) + func (d InterfaceType) InterfaceClass(v uint8) + func (d InterfaceType) InterfaceNumber(v uint8) + func (d InterfaceType) InterfaceProtocol(v uint8) + func (d InterfaceType) InterfaceSubClass(v uint8) + func (d InterfaceType) Length(v uint8) + func (d InterfaceType) NumEndpoints(v uint8) + func (d InterfaceType) Type(v uint8)