mcarrierscrambler.m
来自「OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有」· M 代码 · 共 53 行
M
53 行
%***************************************************************************
% 802.16-2004 OFDMA PHY - mCarrierScrambler function
%
% Description: Carrier scrambling function that receives data
% subcarriers at logical locations and outputs
% the data subcarriers at physical locations
%
% Input:
% ZoneConfig: Data Structure that contains zone configuration
% params, including number of carriers, number of
% used carriers, maximum number of subchanels, etc.
% For details please see WiMAX Integration Framework
% Specification document
% OFDMA_MappedSymbols: 2 OFDMA symbols with data values mapped.
% Structured in 2 columns each contains data of OFDMA
% symbol.
% DlCarrierMap: Map for data carriers within OFDMA symbol, that
% enables translation of logical carrier number to
% physical.
% Output:
% ScrambledPayLoad: The output is two OFDMA symbols conaining
% only data carriers which are organized in physical
% carrier order.
%
% Functions:
% N/A
%
% Data Files:
% N/A
%
%***************************************************************************
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Property of Freescale
% Freescale Confidential Proprietary
% Freescale Copyright (C) 2005 All rights reserved
% ----------------------------------------------------------------------------
% $RCSfile: mCarrierScrambler.m.rca $
% $Revision: 1.5 $
% $Date: Fri Dec 8 06:11:28 2006 $
% Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [ScrambledPayLoad] = mCarrierScrambler(ZoneConfig, OFDMA_MappedSymbols, DlCarrierMap)
ScrambledPayLoad = zeros(ZoneConfig.MaxSubch*ZoneConfig.CarrierPerSubch,ZoneConfig.ZoneType,class(OFDMA_MappedSymbols));
%DlCarrierMap in physical order with corresponding logical index
ScrambledPayLoad(:,:) = OFDMA_MappedSymbols(DlCarrierMap+1,:);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?