pub struct RxPacketAttrib {Show 25 fields
pub pkt_len: u16,
pub physt: bool,
pub drvinfo_sz: u8,
pub shift_sz: u8,
pub qos: bool,
pub priority: u8,
pub mdata: bool,
pub seq_num: u16,
pub frag_num: u8,
pub mfrag: bool,
pub bdecrypted: bool,
pub encrypt: u8,
pub crc_err: bool,
pub icv_err: bool,
pub tsfl: u32,
pub data_rate: u8,
pub bw: u8,
pub stbc: u8,
pub ldpc: u8,
pub sgi: u8,
pub scrambler: u8,
pub rssi: [u8; 4],
pub snr: [i8; 4],
pub evm: [i8; 4],
pub pkt_rpt_type: RxPacketType,
}Expand description
Parsed metadata from a Realtek USB RX descriptor.
Fields§
§pkt_len: u16Number of payload bytes following descriptor, PHY status, and shift bytes.
physt: boolWhether PHY status bytes are present after the descriptor.
drvinfo_sz: u8Driver-info/PHY-status byte count.
shift_sz: u8Extra alignment shift before payload bytes.
qos: boolWhether the original 802.11 frame had QoS metadata.
priority: u8Realtek priority field.
mdata: boolMore-data bit from the descriptor.
seq_num: u16802.11 sequence number reported by the descriptor.
frag_num: u8802.11 fragment number reported by the descriptor.
mfrag: boolMore-fragments bit from the descriptor.
bdecrypted: boolWhether the chip reports the packet as decrypted.
encrypt: u8Realtek encryption type field.
crc_err: boolHardware-reported CRC/FCS failure.
icv_err: boolHardware-reported ICV failure.
tsfl: u32TSF low timestamp from the descriptor.
data_rate: u8Realtek data-rate code.
bw: u8Realtek bandwidth code.
stbc: u8STBC flag from PHY status.
ldpc: u8LDPC flag from PHY status.
sgi: u8Short guard interval flag from PHY status.
scrambler: u8Scrambler seed from PHY status.
rssi: [u8; 4]Per-path raw RSSI readings when available.
snr: [i8; 4]Per-path raw SNR readings when available.
evm: [i8; 4]Per-path raw EVM readings when available.
pkt_rpt_type: RxPacketTypeWhether this descriptor carries a received frame or a C2H report.
Trait Implementations§
Source§impl Clone for RxPacketAttrib
impl Clone for RxPacketAttrib
Source§fn clone(&self) -> RxPacketAttrib
fn clone(&self) -> RxPacketAttrib
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RxPacketAttrib
Source§impl Debug for RxPacketAttrib
impl Debug for RxPacketAttrib
Source§impl Default for RxPacketAttrib
impl Default for RxPacketAttrib
impl Eq for RxPacketAttrib
Source§impl PartialEq for RxPacketAttrib
impl PartialEq for RxPacketAttrib
Source§fn eq(&self, other: &RxPacketAttrib) -> bool
fn eq(&self, other: &RxPacketAttrib) -> bool
self and other values to be equal, and is used by ==.