embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module midi

Module midi 

Source
Expand description

USB MIDI 1.0 class.

Modules§

device
MIDI class implementation.
host
USB MIDI 1.0 host class driver.

Structs§

MidiPacket
Packet containing the encoded event.
MidiPacketReader
Reader for iterating over MIDI packets in a USB bulk transfer.
MidiPacketWriter
Writer for accumulating MIDI packets in a USB bulk transfer buffer.

Enums§

MidiJackType
Whether a MIDI jack is inside the USB device or connected externally (USB-MIDI 1.0 Table A-3).
MidiPacketError
Packet errors.

Constants§

MAX_MIDI_JACKS
Maximum jacks or virtual cables per MIDIStreaming endpoint (4-bit cable number).
MIDI_PACKET_SIZE
Size of one event packet in bytes.
USB_AUDIO_CLASS
This should be used as device_class when building the UsbDevice.