Calculate HE PSDU length



psduLength = getPSDULength(cfgHE) calculates psduLength, the PSDU length specified by cfgHE, a high-efficiency (HE) format configuration object.


collapse all

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

Input Arguments

collapse all

HE format configuration object, specified as an object of type wlanHEMUConfig, wlanHESUConfig, or wlanHETBConfig.

Output Arguments

collapse all

PSDU length for the HE configuration, in bytes, returned as a positive integer or 1-by-NumUsers vector, where NumUsers is an integer in the interval [1,74]. For more information about NumUsers, see ruInfo.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2018b