struct Layout
pub struct Layout {
pub valid bool // bounded layout and selected hardware status == 0
pub bounded bool // selected frame and zero word padding fit exactly
pub status int // selected hardware state; -1 if no safe selection exists
pub frame_offset int
pub frame_length int // excludes the hardware-stripped FCS
pub csi_length int // effective aligned CSI bytes; zero after bug case 2
pub bug_case int // -1: no CSI; 0/1/2: native selection; 3: rejected bug
}Purpose
Decode one completed, owned ESP32 Wi-Fi RX DMA snapshot. The caller must already have checked descriptor ownership/completion, capacity, RX buffer identity and sentinels. This helper performs no MMIO and allocates no packet storage. It models the measured DMA profile that strips the four-byte FCS.
Public fields
validbool // bounded layout and selected hardware status == 0- field (bool // bounded layout and selected hardware status == 0)
boundedbool // selected frame and zero word padding fit exactly- field (bool // selected frame and zero word padding fit exactly)
statusint // selected hardware state; -1 if no safe selection exists- field (int // selected hardware state; -1 if no safe selection exists)
frame_offsetint- field (int)
frame_lengthint // excludes the hardware-stripped FCS- field (int // excludes the hardware-stripped FCS)
csi_lengthint // effective aligned CSI bytes; zero after bug case 2- field (int // effective aligned CSI bytes; zero after bug case 2)
bug_caseint // -1: no CSI; 0/1/2: native selection; 3: rejected bug- field (int // -1: no CSI; 0/1/2: native selection; 3: rejected bug)