XU XUv0.13.1
EN

#embedded/chips/esp32/wifi_rx_layout

导入方式: #embedded/chips/esp32/wifi_rx_layout

公开 API: 1 函数, 0 方法, 1 类型, 0 常量, 0 方法集

标准库包 `#embedded/chips/esp32/wifi_rx_layout`。

struct Layout

XuAPI
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
}

用途

承载 valid、bounded、status、frame_offset、frame_length 等属性的结构体。

公开字段

valid bool // bounded layout and selected hardware status == 0
字段(bool // bounded layout and selected hardware status == 0)
bounded bool // selected frame and zero word padding fit exactly
字段(bool // selected frame and zero word padding fit exactly)
status int // selected hardware state; -1 if no safe selection exists
字段(int // selected hardware state; -1 if no safe selection exists)
frame_offset int
字段(int)
frame_length int // excludes the hardware-stripped FCS
字段(int // excludes the hardware-stripped FCS)
csi_length int // effective aligned CSI bytes; zero after bug case 2
字段(int // effective aligned CSI bytes; zero after bug case 2)
bug_case int // -1: no CSI; 0/1/2: native selection; 3: rejected bug
字段(int // -1: no CSI; 0/1/2: native selection; 3: rejected bug)

parse_owned_packet

XuAPI
pub fn parse_owned_packet(raw &string) Layout

用途

解析为 owned packet。

参数

raw &string
raw(只读借用,调用方仍持有原值;类型 &string)

返回值

Layout — 该类型的值