usb_protocol.types.descriptors.midi2 module

Descriptors for USB MIDI Class Devices

[Midi20] refers to “Universal Serial Bus Device Class Definition for MIDI Devices”, Release 2.0, May 5, 2020

class usb_protocol.types.descriptors.midi2.MidiStreamingEndpointDescriptorSubtypes(value)[source]

Bases: IntEnum

An enumeration.

DESCRIPTOR_UNDEFINED = 0
MS_GENERAL = 1
MS_GENERAL_2_0 = 2
class usb_protocol.types.descriptors.midi2.MidiStreamingInterfaceDescriptorSubtypes(value)[source]

Bases: IntEnum

An enumeration.

ELEMENT = 4
MIDI_IN_JACK = 2
MIDI_OUT_JACK = 3
MS_DESCRIPTOR_UNDEFINED = 0
MS_HEADER = 1
class usb_protocol.types.descriptors.midi2.MidiStreamingInterfaceDescriptorTypes(value)[source]

Bases: IntEnum

An enumeration.

CS_CONFIGURATION = 34
CS_DEVICE = 33
CS_ENDPOINT = 37
CS_GR_TRM_BLOCK = 38
CS_INTERFACE = 36
CS_STRING = 35
CS_UNDEFINED = 32
class usb_protocol.types.descriptors.midi2.MidiStreamingInterfaceHeaderClassRevision(value)[source]

Bases: IntEnum

An enumeration.

MS_MIDI_1_0 = 256
MS_MIDI_2_0 = 512
class usb_protocol.types.descriptors.midi2.MidiStreamingJackTypes(value)[source]

Bases: IntEnum

An enumeration.

EMBEDDED = 1
EXTERNAL = 2
JACK_TYPE_UNDEFINED = 0