embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module gtb

Module gtb 

Source
Expand description

USB MIDI 2.0 Group Terminal Block (GTB) definitions and serialization.

Structs§

GroupTerminalBlock
A parsed or constructed Group Terminal Block descriptor entity.
GroupTerminalBlockConfig
Configuration for declaring a Group Terminal Block on a device.

Enums§

GroupTerminalBlockType
Group Terminal Block Type (USB-MIDI 2.0 Table 5-6).
GtbError
Group Terminal Block error.
MidiProtocol
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).