pub struct TxVector { /* private fields */ }
Expand description
Encapsulates parameters for transmitting a packet over a PHY.
MCS index is defined in
- HT: IEEE 802.11-2016 Table 19-27
- VHT: IEEE 802.11-2016 Table 21-30
We extend the definition of MCS index beyond IEEE 802.11-2016 as follows:
- For ERP/ERP-OFDM (WlanPhyType::Erp):
- 0: BPSK, 1/2 -> Data rate 6 Mbps
- 1: BPSK, 3/4 -> Data rate 9 Mbps
- 2: QPSK, 1/2 -> Data rate 12 Mbps
- 3: QPSK, 3/4 -> Data rate 18 Mbps
- 4: 16-QAM, 1/2 -> Data rate 24 Mbps
- 5: 16-QAM, 3/4 -> Data rate 36 Mbps
- 6: 64-QAM, 2/3 -> Data rate 48 Mbps
- 7: 64-QAM, 3/4 -> Data rate 54 Mbps
- For DSSS, HR/DSSS, and ERP-DSSS/CCK (WlanPhyType::Dsss and WlanPhyType::Cck):
- 0: 2 -> 1 Mbps DSSS
- 1: 4 -> 2 Mbps DSSS
- 2: 11 -> 5.5 Mbps CCK
- 3: 22 -> 11 Mbps CCK
Implementations§
Source§impl TxVector
impl TxVector
pub fn new( phy: WlanPhyType, gi: WlanGi, cbw: ChannelBandwidth, mcs_idx: u8, ) -> Result<Self, Error>
pub fn phy(&self) -> WlanPhyType
pub fn from_supported_rate(erp_rate: &SupportedRate) -> Result<Self, Error>
pub fn from_idx(idx: TxVecIdx) -> Self
pub fn to_idx(&self) -> TxVecIdx
pub fn to_fidl_tx_info( &self, tx_flags: WlanTxInfoFlags, minstrel_enabled: bool, ) -> WlanTxInfo
Trait Implementations§
impl StructuralPartialEq for TxVector
Auto Trait Implementations§
impl Freeze for TxVector
impl RefUnwindSafe for TxVector
impl Send for TxVector
impl Sync for TxVector
impl Unpin for TxVector
impl UnwindSafe for TxVector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more