embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

fetch_group_terminal_blocks

Function fetch_group_terminal_blocks 

Source
pub async fn fetch_group_terminal_blocks<P, const N: usize>(
    control_pipe: &mut P,
    interface_number: u8,
    alternate_setting: u8,
    buffer: &mut [u8],
) -> Result<Vec<GroupTerminalBlock, N>, MidiError>
where P: UsbPipe<Control, InOut>,
Expand description

Query the Group Terminal Blocks of an alternate setting: standard GET_DESCRIPTOR, with CS_GR_TRM_BLOCK and the alternate setting in wValue, and the interface in wIndex (§6).