embassy-usb-host

Crates

git

Versions

default

Flavors

Skip to main content

Module raw

Module raw 

Source
Expand description

Advanced descriptor and endpoint-level USB-MIDI APIs.

Re-exports§

pub use super::UsbMidiEventPacket;
pub use super::event_packets;

Structs§

MidiDescriptorIterator
Iterator over recognized descriptors in one USB-MIDI 1.0 interface.
MidiEndpointDescriptor
One physical USB bulk endpoint and its ordered virtual-cable jack IDs.
MidiEndpointJackAssociations
Jack IDs associated with a class-specific MIDIStreaming endpoint descriptor.
MidiInJack
MIDI IN jack descriptor.
MidiInputPipe
Device-to-host USB-MIDI bulk transport.
MidiJackSource
Source pin feeding a MIDI OUT jack.
MidiOutJack
MIDI OUT jack descriptor.
MidiOutputPipe
Host-to-device USB-MIDI bulk transport.
MidiStreamingHeader
Class-specific MIDIStreaming header descriptor.
MidiStreamingInterface
Parsed USB-MIDI 1.0 streaming interface and its jack topology.

Enums§

MidiDescriptor
A recognized descriptor within one USB-MIDI 1.0 streaming interface.
MidiDescriptorError
USB-MIDI class-specific descriptor parsing error.
MidiJackType
Whether a MIDI jack is inside the USB device or connected externally.

Constants§

MAX_MIDI_ENDPOINTS
Maximum physical bulk endpoints described by one MIDIStreaming interface.
MAX_MIDI_INTERFACES
Maximum MIDIStreaming interfaces described by one configuration.
MAX_MIDI_JACKS
Maximum jacks or cables described by one MIDIStreaming interface.
MAX_MIDI_JACK_SOURCES
Maximum input pins feeding one MIDI OUT jack.

Functions§

parse_midi_interfaces
Parse all USB-MIDI 1.0 streaming interfaces in a configuration descriptor.
parse_midi_interfaces_for_device
Parse USB-MIDI interfaces, including recognized vendor-specific device layouts.