Main Content

wlanHTSIG

Generate HT-SIG waveform

Description

y = wlanHTSIG(cfg) generates an HT-SIG1 time-domain waveform for an HT-mixed transmission parameterized by cfg.

example

[y,bits] = wlanHTSIG(cfg) also returns the information bits that comprise the HT-SIG field.

example

[___] = wlanHTSIG(cfg,OversamplingFactor=osf) generates an oversampled HT-SIG waveform with the specified oversampling factor. For more information about oversampling, see FFT-Based Oversampling.

Examples

collapse all

Generate an HT-SIG waveform for a single transmit antenna.

Create an HT configuration object. Specify a 40 MHz channel bandwidth.

cfg = wlanHTConfig;
cfg.ChannelBandwidth = 'CBW40'
cfg = 
  wlanHTConfig with properties:

       ChannelBandwidth: 'CBW40'
    NumTransmitAntennas: 1
    NumSpaceTimeStreams: 1
         SpatialMapping: 'Direct'
                    MCS: 0
          GuardInterval: 'Long'
          ChannelCoding: 'BCC'
             PSDULength: 1024
         AggregatedMPDU: 0
     RecommendSmoothing: 1

Generate the HT-SIG waveform. Determine the size of the waveform.

y = wlanHTSIG(cfg);
size(y)
ans = 1×2

   320     1

The function returns a waveform having a complex output of 320 samples corresponding to two 160-sample OFDM symbols.

Generate an HT-SIG waveform and display the MCS information. Change the MCS and display the updated information.

Create a wlanHTConfig object having two spatial streams and two transmit antennas. Specify an MCS value of 8, corresponding to BPSK modulation and a coding rate of 1/2.

cfg = wlanHTConfig('NumSpaceTimeStreams',2,'NumTransmitAntennas',2,'MCS',8);

Generate the information bits from the HT-SIG waveform.

[~,sigBits] = wlanHTSIG(cfg);

Extract the MCS field from sigBits and convert it to its decimal equivalent. The MCS information is contained in bits 1-7.

mcsBits = sigBits(1:7);
bit2int(mcsBits,7,false)
ans = int8

8

The MCS matches the specified value.

Change the MCS to 13, which corresponds to 64-QAM modulation with a 2/3 coding rate. Generate the HT-SIG waveform.

cfg.MCS = 13;
[~,sigBits] = wlanHTSIG(cfg);

Verify that the MCS bits are the binary equivalent of 13.

mcsBits = sigBits(1:7);
bit2int(mcsBits,7,false)
ans = int8

13

Input Arguments

collapse all

Transmission parameters, specified as a wlanHTConfig object.

Oversampling factor, specified as a scalar greater than or equal to 1. The oversampled cyclic prefix length must be an integer number of samples.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Output Arguments

collapse all

HT-SIG waveform, returned as an NS-by-NT matrix. NS is the number of time-domain samples, and NT is the number of transmit antennas.

Data Types: double
Complex Number Support: Yes

HT-SIG information bits, returned as a 48-by-1 vector.

Data Types: int8

More About

collapse all

Algorithms

collapse all

References

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

Extended Capabilities

expand all

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

Version History

Introduced in R2015b


1 IEEE Std 802.11-2012 Adapted and reprinted with permission from IEEE. Copyright IEEE 2012. All rights reserved.