Expand description
USB MIDI 2.0 Group Terminal Block (GTB) definitions and serialization.
Structs§
- Group
Terminal Block - A parsed or constructed Group Terminal Block descriptor entity.
- Group
Terminal Block Config - Configuration for declaring a Group Terminal Block on a device.
Enums§
- Group
Terminal Block Type - Group Terminal Block Type (USB-MIDI 2.0 Table 5-6).
- GtbError
- Group Terminal Block error.
- Midi
Protocol - Default MIDI Protocol for a Group Terminal Block (USB-MIDI 2.0 Table 5-6).
Constants§
- CS_
GR_ TRM_ BLOCK - Class-specific Group Terminal Block descriptor type (USB-MIDI 2.0 Table 5-1).
- GR_
TRM_ BLOCK - Group Terminal Block descriptor subtype (USB-MIDI 2.0 Table 5-6).
- GR_
TRM_ BLOCK_ HEADER - Group Terminal Block Header descriptor subtype (USB-MIDI 2.0 Table 5-5).
- GR_
TRM_ BLOCK_ HEADER_ LEN - Length of the Group Terminal Block Header descriptor in bytes.
- GR_
TRM_ BLOCK_ LEN - Length of a single Group Terminal Block descriptor in bytes.
- MAX_
GROUPS_ PER_ BLOCK - Maximum number of member group terminals per block.
- MAX_
GTBS - Maximum number of Group Terminal Blocks: at most 16 per endpoint (§5.3.2), and one IN and one OUT endpoint.
- MIDI2_
VERSION - USB-MIDI specification release 2.0, in binary-coded decimal.
- MS_
GENERAL_ 2_ 0 - Class-specific endpoint descriptor subtype for MIDI 2.0 (USB-MIDI 2.0 Table 5-4).
Functions§
- parse_
gtb_ descriptors - Parse a raw buffer containing the Group Terminal Block Header and Block descriptors.
- serialize_
gtb_ descriptors - Serialize a list of Group Terminal Blocks into the complete descriptor block (Header descriptor followed by all Block descriptors).