function SimParams = hdlcoder_commqpsktx_init
% Set simulation parameters

% Copyright 2014 The MathWorks, Inc.

% General simulation parameters
SimParams.Upsampling =4; % Upsampling factor for root raised cosine transmit filter
SimParams.Fs = 2e5; % Sample rate
SimParams.Ts = 1/SimParams.Fs; % Sample time
SimParams.PacketSize = 100; % Number of modulated symbols per packet

% Tx parameters
SimParams.BarkerLength = 13; % Number of Barker code symbols
SimParams.DataLength = (SimParams.PacketSize - SimParams.BarkerLength)*2; % Number of data payload bits per packet
SimParams.PreambleLength = (SimParams.BarkerLength *2); % Number of preamble bits per packet
SimParams.RCGroupDelay = 5; % Group delay for the root raised cosine receive filter

load ('hdlcoder_commqpsktx_data', 'data');
SimParams.data = data;
load ('hdlcoder_commqpsktx_data', 'preamble');
SimParams.preamble = preamble;
load ('hdlcoder_commqpsktx_data', 'rcRxFilt');
SimParams.rcRxFilt = rcRxFilt;
load ('hdlcoder_commqpsktx_data', 'rcTxFilt');
SimParams.rcTxFilt = rcTxFilt;