📄 ms_interleaver_initialization.m
字号:
%=====================================================
%MS_Interleaver_Initialization
%=====================================================
%根据无线配置设置交织器的信号重复因子,信号抽取向量以及交织长度
%只支持RC3,RC4
switch xRC
case 3
%根据原始数据帧的长度设置的信号重复因子,信号抽取向量以及交织器的长度
switch xFrameLength
case 6120
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=12288;
case 3048
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=12288;
case 1512
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=6144;
case 744
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=3072;
case 360
xRepetitionCount=1;
xPunctureVector=[1];
xInterleaverSize=1536;
case 172
xRepetitionCount=2;
xPunctureVector=[1];
xInterleaverSize=1536;
case 80
xRepetitionCount=4;
xPunctureVector=[1];
xInterleaverSize=1536;
case 40
xRepetitionCount=8;
xPunctureVector=[1 1 1 1 1 1 1 1 0];
xInterleaverSize=1536;
case 16
xRepetitionCount=16;
xPunctureVector=[1 1 1 1 0];
xInterleaverSize=1536;
case 6120
xRepetitionCount=2;
xPunctureVector=[1];
xInterleaverSize=384;
otherwise
error('Error:Invalid Frame Length for the Radio Configuration 3 in cdma2000 MS block<Interleaver>');
end
case 4
switch xFrameLength
case 4584
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=12288;
case 2280
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=6144;
case 1128
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=3072;
case 552
xRepetitionCount=1;
xPunctureVector=[1 1 0 1 1 0 0 1 1 0 1 1];
xInterleaverSize=1536;
case 267
xRepetitionCount=2;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 125
xRepetitionCount=4;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 55
xRepetitionCount=8;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 21
xRepetitionCount=16;
xPunctureVector=[1 1 1 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0];
xInterleaverSize=1536;
case 24
xRepetitionCount=2;
xPunctureVector=[1];
xInterleaverSize=384;
otherwise
error('Error :Invalid Frame Length for the Radio Configuration 4 in cdma2000 MS block<Interleaver>');
end
end
%end program
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -