Main Content

getNumPostFECPaddingBits

Calculate required number of post-FEC padding bits

Description

example

n= getNumPostFECPaddingBits(cfg)calculates the required number of post-FEC padding bitsnin a high-efficiency (HE) transmission parameterized bycfg.

Examples

collapse all

This example shows how to calculate the required number of post-forward-error-correction (post-FEC) padding bits for high-efficiency (HE) WLAN transmissions.

Calculate Number of Post-FEC Padding Bits for HE SU Transmission

Parameterize an HE single-user (HE SU) transmission by creating awlanHESUConfigobject.

cfgHESU = wlanHESUConfig('ChannelBandwidth','CBW80','MCS',7);

Calculate the number of post-FEC padding bits required for waveform generation.

n = getNumPostFECPaddingBits(cfgHESU)
n = 3000

Calculate Number of Post-FEC Padding Bits for HE MU Transmission

Parameterize an HE multi-user (HE MU) transmission by creating awlanHEMUConfigobject.

cfgHEMU = wlanHEMUConfig(40);

Calculate the number of post-FEC padding bits required for waveform generation.

n = getNumPostFECPaddingBits(cfgHEMU)
n =1×518 18 36 18 78

Calculate Number of Post-FEC Padding Bits for HE TB Transmission

Parameterize an HE trigger-based (HE TB) transmission by creating awlanHETBConfigobject.

cfgHETB = wlanHETBConfig('ChannelBandwidth','CBW40','MCS',6,...'NumTransmitAntennas',4,'PreFECPaddingFactor',3);

Calculate the number of post-FEC padding bits required for waveform generation.

n = getNumPostFECPaddingBits(cfgHETB)
n = 324

Input Arguments

collapse all

HE transmission parameters specified as one of these objects.

Output Arguments

collapse all

Required number of post-FEC padding bits, returned as one of these values.

  • A binary-valued scalar for single-user transmissions

  • A binary-valued column vector of lengthNusersfor multi-user transmissions, whereNusersis the number of users in the transmission. In this case, thekth entry is the required number of post-FEC padding bits for thek用户的传输。

Data Types:double|int8

Extended Capabilities

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

Version History

Introduced in R2020b