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.
- Midi2
Host - Friendly host driver for one USB MIDI 2.0 streaming function.
- Midi2
Receiver - Device-to-host half of a
Midi2Host. - Midi2
Sender - Host-to-device half of a
Midi2Host. - Midi2
Topology - Group Terminal Blocks of a MIDI 2.0 function and the groups each endpoint carries; empty for MIDI 1.0.
- Midi
Endpoint - A MIDI data endpoint and the jack or Group Terminal Block IDs it carries.
- Midi
Host - Friendly host driver for one USB MIDI 1.0 streaming interface.
- Midi
Info - The USB MIDI function of a device, as plain
Copydata: version, alternate setting and endpoints. - Midi
Matcher - Matcher for the MIDI streaming interface.
- Midi
Port - A logical MIDI port discovered from a USB cable association;
DisInorOut. - Midi
Receiver - USB-MIDI device-to-host packet receiver.
- Midi
Sender - USB-MIDI host-to-device packet sender.
- Out
- Marker for host-to-device ports.
- Received
Midi Packet - One received USB-MIDI event packet and its logical input port.
- Received
Midi Packets - Iterator over the logical MIDI packets in one received USB transfer.
Enums§
- Midi
Error - USB MIDI host error.
- Midi
Version - 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, withCS_GR_TRM_BLOCKand the alternate setting inwValue, and the interface inwIndex(§6). - fetch_
string - Read a string descriptor (such as a block name) as UTF-8 truncated to
Nbytes, in the device’s first language. Index 0 means no string and gives an empty one.
Type Aliases§
- Midi
Input Port - A logical device-to-host MIDI port discovered from a USB cable association.
- Midi
Output Port - A logical host-to-device MIDI port discovered from a USB cable association.