Skip to main content

parse_rx_aggregate

Function parse_rx_aggregate 

Source
pub fn parse_rx_aggregate(
    buf: &[u8],
) -> Result<Vec<RealtekRxPacket<'_>>, AggregateError>
Expand description

Split a Realtek USB bulk-IN transfer into packet descriptors and payloads.

Realtek devices aggregate one or more RX descriptors into each USB transfer. Each returned packet borrows from buf, so callers can parse metadata without copying frame bytes.