⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

parse_configuration_descriptors

Function parse_configuration_descriptors 

Source
pub fn parse_configuration_descriptors(
    data: &[u8],
) -> Result<(XhciConfigDescriptor, Vec<InterfaceWithEndpoints>), KernelError>
Expand description

Parse all descriptors from a full configuration descriptor buffer.

Returns (config, interfaces_with_endpoints) where each interface is paired with its endpoints.