embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

fetch_string

Function fetch_string 

Source
pub async fn fetch_string<P, const N: usize>(
    control_pipe: &mut P,
    index: u8,
) -> Result<String<N>, MidiError>
where P: UsbPipe<Control, InOut>,
Expand description

Read a string descriptor (such as a block name) as UTF-8 truncated to N bytes, in the device’s first language. Index 0 means no string and gives an empty one.