Main Content

scramblerRange

Get scrambler initialization range

Description

example

[range,numBits] = scramblerRange(cfg)returnsrange, the scrambler initialization range, andnumBits, the number of pseudorandom bits required for scrambler initialization in a non-high-throughput (non-HT) transmission with parameterscfg.

Examples

collapse all

Configure transmission parameters by creating awlanNonHTConfigobject, specifying a channel bandwidth of 80 MHz and static bandwidth operation.

cfg = wlanNonHTConfig('ChannelBandwidth','CBW80','SignalChannelBandwidth',true,...'BandwidthOperation','Static');

Generate a random PSDU of the appropriate length.

psdu = randi([0 1],8*cfg.PSDULength,1,'int8');

Generate the initial pseudorandom scrambler sequence.

[range,numBits] = scramblerRange(cfg); scramInit = randi(range);

Generate the non-HT Data field signal.

y = wlanNonHTData(psdu,cfg,scramInit);

Input Arguments

collapse all

Non-HT transmission parameters, specified as awlanNonHTConfigobject.

Output Arguments

collapse all

Scrambler initialization range, returned as an integer-valued row vector of the form [minmax]. The values ofminandmaxrepresent the minimum and maximum values, respectively, of pseudorandom bits required for scrambler initialization in a non-HT transmission.

Data Types:double

Number of bits required by thewlanWaveformGeneratororwlanNonHTDatafunction for scrambler initialization in a non-HT transmission, returned as4,5, or7. The value of this output depends on whether the transmission signals bandwidth operation in accordance with theSignalChannelBandwidthandBandwidthOperationproperty values of thecfginput. For more information, see Table 17-7 of[1].

Data Types:double

References

[1] IEEE Std 802.11™-2020 (Revision of IEEE Std 802.11-2016). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.” IEEE Standard for Information technology — Telecommunications and information exchange between systems. Local and metropolitan area networks — Specific requirements.

Extended Capabilities

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

Version History

Introduced in R2020b