embassy-usb-host

Crates

git

Versions

default

Flavors

InterfaceDescriptorChain

Type Alias InterfaceDescriptorChain 

Source
pub type InterfaceDescriptorChain<'a> = DescriptorChain<'a, InterfaceDescriptor>;
Expand description

The chain of descriptors of a InterfaceDescriptor.

A ConfigurationDescriptorChain provides one or more interface descriptors (USB 2.0 §9.6.5). Each interface chain includes endpoint descriptors, and possibly other descriptors.

The buffer goes up to the next interface descriptor.

Aliased Type§

pub struct InterfaceDescriptorChain<'a> {
    pub descriptor: InterfaceDescriptor,
    pub buffer: &'a [u8],
}

Fields§

§descriptor: InterfaceDescriptor

The current descriptor.

§buffer: &'a [u8]

The raw bytes following the descriptor.

Implementations§

Source§

impl<'a> InterfaceDescriptorChain<'a>

Source

pub fn iter_descriptors(&self) -> RawDescriptorIterator<'_>

Iterate over raw descriptors inside this interface.

Source

pub fn iter_endpoints(&'a self) -> EndpointIterator<'a>

Iterate over endpoint descriptors inside this interface.