www.pudn.com > WCDMA.rar > NextCallback.m


%************************************************************ 
% 
% Copyright 2002 The Mobile and Portable Radio Research Group 
% 
% Part of GUI for downlink simulator. 
% Invokes the appropriate menu when the NEXT button  
% of the Transmitter Configuration menu is pressed 
% 
%************************************************************ 
global DesiredDPCHformatHandle NumDPCCHforCPCHhandle NumDPCHhandle NumS_CPICHhandle PDSCHformatHandle STTDhandle S_CCPCHformatHandle 
global NumDPCHcalls DPCHremainder CallNumber LastCallChannelCount 
 
SimConfig.S_CCPCHformatID = get(S_CCPCHformatHandle,'value')-1; 
SimConfig.PDSCHformatID = get(PDSCHformatHandle,'value')-1; 
 
FormatIDs = [0 3 5 8 11 14 17 20 23 26 29 32 35 38 41 44 47]; 
SimConfig.DesiredDPCHformatID = FormatIDs(get(DesiredDPCHformatHandle ,'value')); 
 
X30=0:30; 
SimConfig.Num_DPCH = X30(get(NumDPCHhandle,'value')); 
 
X10=0:10; 
SimConfig.NumDPCCHforCPCH = X10(get(NumDPCCHforCPCHhandle,'value')); 
SimConfig.NumS_CPICH = X10(get(NumS_CPICHhandle,'value')); 
 
SimConfig.STTD = get(STTDhandle,'value'); 
 
close 
if SimConfig.Num_DPCH == 0 
   SimConfig.OtherDPCHformatID = []; 
   ModulatorMenu; 
else 
   NumDPCHcalls = ceil(SimConfig.Num_DPCH / 4); 
   DPCHremainder = rem(SimConfig.Num_DPCH,4); 
   if DPCHremainder ==0, DPCHremainder = 4; end 
   CallNumber = 1; 
   LastCallChannelCount = DPCHremainder; 
   SimConfig.OtherDPCHformatID = []; 
   DPCHMenu(SimConfig); 
end