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 等属性的结构体。
公开字段
validbool // bounded layout and selected hardware status == 0- 字段(bool // bounded layout and selected hardware status == 0)
boundedbool // selected frame and zero word padding fit exactly- 字段(bool // selected frame and zero word padding fit exactly)
statusint // selected hardware state; -1 if no safe selection exists- 字段(int // selected hardware state; -1 if no safe selection exists)
frame_offsetint- 字段(int)
frame_lengthint // excludes the hardware-stripped FCS- 字段(int // excludes the hardware-stripped FCS)
csi_lengthint // effective aligned CSI bytes; zero after bug case 2- 字段(int // effective aligned CSI bytes; zero after bug case 2)
bug_caseint // -1: no CSI; 0/1/2: native selection; 3: rejected bug- 字段(int // -1: no CSI; 0/1/2: native selection; 3: rejected bug)