📄 paprparam.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Property of Freescale
% Freescale Confidential Proprietary
% Freescale Copyright (C) 2005 All rights reserved
% ----------------------------------------------------------------------------
% $RCSfile: PAPRparam.m.rca $
% $Revision: 1.2 $
% $Date: Tue Sep 26 11:57:16 2006 $
% Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [SubframeD,ZoneConfig,AsyncPhyControl,ZoneD,DLBurstD,TPparam] = DLparam()
%test case parameters
%%%%%%%%%%%%%%%%%%%%%%
%System Descriptor
%typedef struct {
%unsigned short aucPreambleIQ[1024][2];
%unsigned char ucStartOfCdmaCodes;
%unsigned char ucInitRngCodes;
%unsigned char ucPeriodicRngCodes;
%unsigned char ucHoCodes;
%unsigned char ucBWReqCodes;
%unsigned char ucCellId;
%unsigned char ucSubChBitMAPDL;
%unsigned char ucSubChBitMAPUL;
%unsigned char ucRTG;
%unsigned char ucTTG;
%unsigned char ucRatioG;
%unsigned short usiFftSize;
%unsigned char ucWindowingRolloff;
%unsigned char ucTxGainFactor;
%unsigned char aucReserved[17];
%} stIF1SysD;
SysD = ...
struct( 'aucPreambleIQ', 0,... %To be modified to array if needed
'ucStartOfCdmaCodes', 0,... %Not used by this module
'ucInitRngCodes', 0,... %Not used by this module
'ucPeriodicRngCodes', 0,... %usage of groups in segments
'ucHoCodes', 0,... %number of zones in subframe (1,2,...)
'ucBWReqCodes', 0,...
'ucCellId', 0,... %
'ucSubChBitMAPDL', 63,... %
'ucSubChBitMAPUL', 63,... %
'ucRTG', 0,... %Not used by this module
'ucTTG', 0,... %Not used by this module
'ucRatioG', 0,... %Not used by this module
'usiFftSize', 512,... %Not used by this module
'ucWindowingRolloff', 0,... %Not used by this module
'ucTxGainFactor', 0,... %Not used by this module
'aucReserved', 0,... %To be modified to array if needed
);
%Subframe Descriptor
%typedef struct {
%unsigned long uliFrameNumber;
%unsigned char ucNumSym;
%unsigned char ucNumZones;
%unsigned char aucReserved[10];
%} stIF1FrD;
SubframeD = ...
struct( 'uliFrameNumber', 0,... %Not used by this module
'ucNumSym', 0,... %Not used by this module
'NumSym', 0,... %Not used by this module
'ucNumZones', 0,... %Not used by this module, To be modified to array if needed
'aucReserved', 0,... %Not used by this module
);
%zone configuration for DL-PUSC FFT-512 (static)
% // DL PUSC Init
% {
% 512, // usiNFFT
% 421, // usiNFFTUsed (including DC)
% 2, // usiZoneType
% 256, // usiDCIndex
% 15, // usiMaxSubChan
% 28, // usiCarrierPerSubChan
% 46, // usiLGuard
% 45, // usiRGuard
% 30, // usiNClusters
% 2 // usiSymbolsPerSlot
% },
DLZoneConfig = ...
struct( 'usiNFFT', 512,...
'usiNFFTUsed', 421,...
'usiZoneType', 2,...
'usiDCIndex', 256,...
'usiMaxSubChan', 15,...
'usiCarrierPerSubChan', 28,...
'usiLGuard', 46,...
'usiRGuard', 45,...
'usiNClusters', 30,...
'usiSymbolsPerSlot', 2 ...
);
%
%typedef struct {
% t_stDLZoneConfig* pstDLZoneConfig;
% unsigned char ucUseAllScIndicator;
% unsigned char ucUsedSubChanBitMap;
% unsigned char ucDLPermBase;
% unsigned char ucIdCell;
% unsigned char ucSegNb;
% unsigned char ucPrbsId;
% unsigned char ucReserved[2];
%} t_stFPDLZoneStartMgrCtrl;
DLZoneStartMgrCtrl = ...
struct( 'pstDLZoneConfig', 2,...
'ucUseAllScIndicator', 1,...
'ucUsedSubChanBitMap', 63,...
'ucDLPermBase', -1,... %-1 means that the value has be read from table value below
'ucIdCell', 0,...
'ucSegNb', 0,...
'ucPrbsId', 0,...
'ucReserved', 0,...
);
%constants (-1 = not implemented)
ucDLPermBase = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,...
10,11,12,13,14,15,16,17,18,19,...
20,21,22,23,24,25,26,27,28,29,...
30,31]; % possible values for DL perm basevalue
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -