getPSDULength
Calculate HE or WUR PSDU length
Description
calculates the PSDU length for high-efficiency (HE) or wake-up radio (WUR) transmission
parameters psduLength
= getPSDULength(cfg
)cfg
.
Examples
Get PSDU Length for HE Configuration Objects
Get the PSDU length of HE single-user (HE SU) and HE multi-user (HE MU) configuration objects.
Get HE SU PSDU Length
Create an HE SU configuration object. Get and display the PSDU length for the configured transmission.
cfgHESU = wlanHESUConfig; psduLength = getPSDULength(cfgHESU)
psduLength = 100
Get HE MU PSDU Lengths
Create an HE MU configuration object with the allocation index set to 5
, which configures a transmission with seven users. Get and display the PSDU lengths for the configured transmission.
cfgHEMU = wlanHEMUConfig(5); psduLength = getPSDULength(cfgHEMU)
psduLength = 1×7
100 100 202 100 100 100 202
Get PSDU Length for WUR Configuration
Create a wake-up radio (WUR) configuration object for a transmission with four subchannels and four transmit antennas.
cfgWUR = wlanWURConfig(4,NumTransmitAntennas=4);
Calculate the PSDU lengths for the transmission and display the result.
psduLength = getPSDULength(cfgWUR)
psduLength = 1×4
8 8 8 8
Input Arguments
cfg
— HE or WUR transmission parameters
wlanHESUConfig
object | wlanHEMUConfig
object | wlanHETBConfig
object | wlanHERecoveryConfig
object | wlanWURConfig
object
HE or WUR transmission parameters, specified as one of these objects: wlanHEMUConfig
,
wlanHESUConfig
,
wlanHETBConfig
, wlanHERecoveryConfig
, or
wlanWURConfig
.
Output Arguments
psduLength
— PSDU length
positive integer | vector
PSDU length, in bytes, returned as a positive integer or row vector of size 1-by-N, where N is the number of users in the transmission. For an HE transmission, N is an integer in the interval [1, 74]. For WUR transmissions, N is 1, 2, 3, or 4.
For more information about N in HE transmissions, see the
ruInfo
function. The NumUsers
field of the info
output corresponds to N.
Data Types: double
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2018b
See Also
Objects
Functions
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)