parse_phy_lines

Function parse_phy_lines 

Source
pub fn parse_phy_lines(
    lines: &[String],
    direction: Direction,
) -> Option<PHYInfos>
Expand description

Parse a PHY layer trace line and extract RB & HARQ information Accepts all lines of a PHY trace (first line + optional indented continuation lines for PDCCH). Extracts frame/slot, PRB, symbol, HARQ, and channel-specific data.

Example trace formats:

  • 5G PDSCH: 10:32:34.715 [PHY] DL 0001 01 4601 431.16 PDSCH: harq=0 prb=50 symb=1:13 k1=12...
  • 4G PDSCH: 10:37:50.654 [PHY] DL 0001 01 003d 421.0 PDSCH: harq=0 k1=4 prb=23:2... (no symb)

§Arguments

  • lines - All lines of the PHY trace (first line + indented fields)
  • direction - Direction (UL/DL) parsed from the trace header

§Returns

  • Some(PHYInfos) for handled channels (PDCCH, PDSCH, PUSCH, PUCCH, PRACH)
  • None for other PHY channels or if parsing fails