Main Content

getNumPostFECPaddingBits

Calculate required number of post-FEC padding bits

Description

example

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

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 a wlanHESUConfig object.

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 a wlanHEMUConfig object.

cfgHEMU = wlanHEMUConfig(40);

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

n = getNumPostFECPaddingBits(cfgHEMU)
n = 1×5

    18    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 a wlanHETBConfig object.

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 length Nusers for multi-user transmissions, where Nusers is the number of users in the transmission. In this case, the kth entry is the required number of post-FEC padding bits for the kth user in the transmission.

Data Types: double | int8

Extended Capabilities

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

Introduced in R2020b