gusucode.com > wlan工具箱matlab源码程序 > wlan/wlan/+wlan/+internal/s1gDSTF.m

    function y = s1gDSTF(cfgS1G)
%s1gDSTF S1G Beamchangeable Short Training Field (S1G-DSTF)
% 
%   Y = s1gDSTF(CFGS1G) generates the S1G Beamchangeable Short Training
%   Field (S1G-DSTF) time-domain signal for the S1G transmission format.
%
%   Y is the time-domain DSTF signal. It is a complex matrix of size
%   Ns-by-Nt where Ns represents the number of time-domain samples and Nt
%   represents the number of transmit antennas.
%
%   CFGS1G is the format configuration object of type <a href="matlab:help('wlanS1GConfig')">wlanS1GConfig</a> which
%   specifies the parameters for the S1G format.

%   Copyright 2016 The MathWorks, Inc.

%#codegen

% Generate D-STF as per IEEE P802.11ah/D5.0 Section 24.3.8.2.2.2.3

validateattributes(cfgS1G,{'wlanS1GConfig'},{'scalar'},mfilename,'S1G format configuration object');

% Get OFDM parameters
numSTSTotal = sum(cfgS1G.NumSpaceTimeStreams);    
cfgOFDM = wlan.internal.s1gOFDMConfig(cfgS1G.ChannelBandwidth, ...
    'Long','DSTF',numSTSTotal);

% Get cyclic shift per space-time stream
csh = wlan.internal.getCyclicShiftVal('S1G',numSTSTotal, ...
    wlan.internal.cbwStr2Num(cfgS1G.ChannelBandwidth));

% Generate time-domain STF
y = wlan.internal.vhtSTF(cfgOFDM,csh,cfgS1G.NumTransmitAntennas, ...
    cfgS1G.SpatialMapping,cfgS1G.SpatialMappingMatrix);

end