embassy-usb-host

Crates

git

Versions

default

Flavors

Skip to main content

Module midi

Module midi 

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§

MidiHost
Friendly host driver for one USB MIDI 1.0 streaming interface.
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.
ReceivedMidiPacket
One received USB-MIDI event packet and its logical input port.
ReceivedMidiPackets
Iterator over the logical MIDI packets in one received USB transfer.
Receiver
USB-MIDI device-to-host packet receiver.
Sender
USB-MIDI host-to-device packet sender.
UsbMidiEventPacket
One USB-MIDI 1.0 event packet.

Enums§

MidiError
USB MIDI host error.
MidiPacketError
Error constructing a USB-MIDI 1.0 event packet from MIDI bytes.

Constants§

EVENT_PACKET_SIZE
USB-MIDI event packet size.

Functions§

event_packets
Iterate over complete USB-MIDI event packets in a transfer.