embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module host

Module host 

Source
Expand description

USB MIDI 1.0 host class driver.

USB MIDI 1.0 transports one or more virtual MIDI cables over bulk endpoints. Each transfer consists of four-byte USB-MIDI event packets.

Modules§

raw
Advanced descriptor and endpoint-level USB-MIDI APIs.

Structs§

In
Marker for device-to-host ports.
Midi2Host
Friendly host driver for one USB MIDI 2.0 streaming function.
Midi2Receiver
Device-to-host half of a Midi2Host.
Midi2Sender
Host-to-device half of a Midi2Host.
Midi2Topology
Group Terminal Blocks of a MIDI 2.0 function and the groups each endpoint carries; empty for MIDI 1.0.
MidiEndpoint
A MIDI data endpoint and the jack or Group Terminal Block IDs it carries.
MidiHost
Friendly host driver for one USB MIDI 1.0 streaming interface.
MidiInfo
The USB MIDI function of a device, as plain Copy data: version, alternate setting and endpoints.
MidiMatcher
Matcher for the MIDI streaming interface.
MidiPort
A logical MIDI port discovered from a USB cable association; D is In or Out.
MidiReceiver
USB-MIDI device-to-host packet receiver.
MidiSender
USB-MIDI host-to-device packet sender.
Out
Marker for host-to-device ports.
ReceivedMidiPacket
One received USB-MIDI event packet and its logical input port.
ReceivedMidiPackets
Iterator over the logical MIDI packets in one received USB transfer.

Enums§

MidiError
USB MIDI host error.
MidiVersion
Which version of USB MIDI a streaming function speaks.

Functions§

fetch_group_terminal_blocks
Query the Group Terminal Blocks of an alternate setting: standard GET_DESCRIPTOR, with CS_GR_TRM_BLOCK and the alternate setting in wValue, and the interface in wIndex (§6).
fetch_string
Read a string descriptor (such as a block name) as UTF-8 truncated to N bytes, in the device’s first language. Index 0 means no string and gives an empty one.

Type Aliases§

MidiInputPort
A logical device-to-host MIDI port discovered from a USB cable association.
MidiOutputPort
A logical host-to-device MIDI port discovered from a USB cable association.