pub struct CSIDataPacket {Show 25 fields
pub mac: [u8; 6],
pub rssi: i32,
pub timestamp: u32,
pub rate: u32,
pub sgi: u32,
pub secondary_channel: u32,
pub channel: u32,
pub bandwidth: u32,
pub antenna: u32,
pub sig_mode: u32,
pub mcs: u32,
pub smoothing: u32,
pub not_sounding: u32,
pub aggregation: u32,
pub stbc: u32,
pub fec_coding: u32,
pub ampdu_cnt: u32,
pub noise_floor: i32,
pub rx_state: u32,
pub sig_len: u32,
pub date_time: Option<DateTime>,
pub sequence_number: u16,
pub data_format: RxCSIFmt,
pub csi_data_len: u16,
pub csi_data: Vec<i8, 612>,
}Expand description
CSI Received Packet w/ Radio Metadata
Fields§
§mac: [u8; 6]MAC address of the sender.
rssi: i32Received Signal Strength Indicator.
timestamp: u32Local Timestamp of Recieved Packet (microseconds) .
rate: u32PHY rate encoding of the packet. Only valid for non HT(11bg) packet.
sgi: u32Short Guide Interval (SGI). 0: Long GI; 1: Short GI.
secondary_channel: u32Secondary Channel on which the Packet was Received. 0: none; 1: above; 2: below.
channel: u32Primary channel on which the Packet was Received.
bandwidth: u32Channel Bandwidth of the packet. 0: 20MHz; 1: 40MHz.
antenna: u32Antenna number from which this packet is received. 0: WiFi antenna 0; 1: WiFi antenna 1.
sig_mode: u32Protocol of the received packet. 0: non HT(11bg) packet; 1: HT(11n) packet; 3: VHT(11ac) packet.
mcs: u32Modulation Coding Scheme. If Packet is HT(11n) packet, shows the modulation, range from 0 to 76(MSC0 ~ MCS76).
smoothing: u32Set to 1 indicates that channel estimate smoothing is recommended. Set to 0 indicates that only per-carrier independent (unsmoothed) channel estimate is recommended.
not_sounding: u32Sounding PPDU is used for channel estimation by the request receiver. Set to 0 indicates that PPDU is a sounding PPDU. Set to 1 indicates that the PPDU is not a sounding PPDU.
aggregation: u32Aggregation. 0: MPDU packet; 1: AMPDU packet
stbc: u32Space-Time Block Coding. 0: non STBC packet; 1: STBC packet.
fec_coding: u32Forward Error Correction (FEC). Flag is set for 11n packets which are LDPC.
ampdu_cnt: u32The number of subframes aggregated in AMPDU.
noise_floor: i32Noise floor of Radio Frequency Module(RF). unit: dBm.
rx_state: u32RX state. 0: no error; others: error numbers which are not public.
sig_len: u32Length of packet including Frame Check Sequence(FCS).
date_time: Option<DateTime>Optional NTP-based Timestamp Indicating the Time CSI Captured.
sequence_number: u16Sequence Number Associated with the ICMP Echo Request Packet that triggered a CSI capture.
data_format: RxCSIFmtData format of the recieved CSI. RxCSIFmt is a Compact Representation of the Different Recieved CSI Data Format Options as defined in the ESP WiFi Driver.
csi_data_len: u16Length of CSI data.
csi_data: Vec<i8, 612>Raw CSI data, largest case size is 612 bytes.
Implementations§
Source§impl CSIDataPacket
impl CSIDataPacket
Sourcepub fn print_csi_w_metadata(&self)
pub fn print_csi_w_metadata(&self)
Prints Recieved CSI Data Packet with it’s Metadata
pub fn csi_fmt_from_params(&mut self)
pub fn mac(&self) -> &[u8; 6]
pub fn rssi(&self) -> i32
pub fn timestamp(&self) -> u32
pub fn rate(&self) -> u32
pub fn sgi(&self) -> u32
pub fn secondary_channel(&self) -> u32
pub fn channel(&self) -> u32
pub fn bandwidth(&self) -> u32
pub fn antenna(&self) -> u32
pub fn sig_mode(&self) -> u32
pub fn mcs(&self) -> u32
pub fn smoothing(&self) -> u32
pub fn not_sounding(&self) -> u32
pub fn aggregation(&self) -> u32
pub fn stbc(&self) -> u32
pub fn fec_coding(&self) -> u32
pub fn ampdu_cnt(&self) -> u32
pub fn noise_floor(&self) -> i32
pub fn rx_state(&self) -> u32
pub fn sig_len(&self) -> u32
pub fn date_time(&self) -> Option<&DateTime>
pub fn sequence_number(&self) -> u16
pub fn data_format(&self) -> RxCSIFmt
pub fn csi_data_len(&self) -> u16
pub fn csi_data(&self) -> &[i8]
Trait Implementations§
Source§impl Clone for CSIDataPacket
impl Clone for CSIDataPacket
Source§fn clone(&self) -> CSIDataPacket
fn clone(&self) -> CSIDataPacket
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more