Commit 777a4500 authored by Ben Wojtowicz's avatar Ben Wojtowicz

Fixed license statement and bug in find_pss_and_fine_timing

parent 22846ac2
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: cmn_bin2dec % Function: cmn_bin2dec
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
% Spec: N/A % Spec: N/A
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created % Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [dec] = cmn_bin2dec(array, num_bits) function [dec] = cmn_bin2dec(array, num_bits)
[num_array, junk] = size(array); [num_array, junk] = size(array);
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: cmn_conv_encode % Function: cmn_conv_encode
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
% Spec: N/A % Spec: N/A
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created % Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [out] = cmn_conv_encode(in, k, r, g, tail_bit) function [out] = cmn_conv_encode(in, k, r, g, tail_bit)
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: cmn_dec2bin % Function: cmn_dec2bin
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
% Spec: N/A % Spec: N/A
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created % Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [array] = cmn_dec2bin(dec, num_bits) function [array] = cmn_dec2bin(dec, num_bits)
[junk, num_dec] = size(dec); [junk, num_dec] = size(dec);
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: cmn_oct2bin % Function: cmn_oct2bin
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
% Spec: N/A % Spec: N/A
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 11/22/2011 Created % Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [array] = cmn_oct2bin(oct, num_bits) function [array] = cmn_oct2bin(oct, num_bits)
[junk, num_oct] = size(oct); [junk, num_oct] = size(oct);
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: cmn_viterbi_decode % Function: cmn_viterbi_decode
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
% Spec: N/A % Spec: N/A
% Notes: Currently only supports hard bits % Notes: Currently only supports hard bits
% Rev History: Ben Wojtowicz 11/22/2011 Created % Rev History: Ben Wojtowicz 11/22/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [out] = cmn_viterbi_decode(in, k, r, g) function [out] = cmn_viterbi_decode(in, k, r, g)
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_bch_channel_decode % Function: lte_bch_channel_decode
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0 % Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 11/12/2011 Created % Rev History: Ben Wojtowicz 11/12/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [mib, N_ant] = lte_bch_channel_decode(bch_bits) function [mib, N_ant] = lte_bch_channel_decode(bch_bits)
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_bch_channel_encode % Function: lte_bch_channel_encode
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0 % Spec: 3GPP TS 36.212 section 5.3.1 v10.1.0
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 10/30/2011 Created % Rev History: Ben Wojtowicz 10/30/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [bch_bits] = lte_bch_channel_encode(mib, N_ant) function [bch_bits] = lte_bch_channel_encode(mib, N_ant)
% Check mib % Check mib
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_calc_crc % Function: lte_calc_crc
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.1.1 v10.1.0 % Spec: 3GPP TS 36.212 section 5.1.1 v10.1.0
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 11/18/2011 Created % Rev History: Ben Wojtowicz 11/18/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [crc_bits] = lte_calc_crc(in_bits, crc_type) function [crc_bits] = lte_calc_crc(in_bits, crc_type)
% Check crc_type % Check crc_type
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_cfi_channel_decode % Function: lte_cfi_channel_decode
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0 % Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 12/26/2011 Created % Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [cfi] = lte_cfi_channel_decode(cfi_bits) function [cfi] = lte_cfi_channel_decode(cfi_bits)
% Calculate the number of bit errors for each CFI % Calculate the number of bit errors for each CFI
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_cfi_channel_encode % Function: lte_cfi_channel_encode
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
% Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0 % Spec: 3GPP TS 36.212 section 5.3.4 v10.1.0
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 12/26/2011 Created % Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [cfi_bits] = lte_cfi_channel_encode(cfi) function [cfi_bits] = lte_cfi_channel_encode(cfi)
% Check cfi % Check cfi
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_fdd_dl_receive % Function: lte_fdd_dl_receive
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
% Spec: N/A % Spec: N/A
% Notes: Only supports normal cyclic prefix % Notes: Only supports normal cyclic prefix
% Rev History: Ben Wojtowicz 12/26/2011 Created % Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement and bug
% with find_pss_and_fine_timing
% %
function [] = lte_fdd_dl_receive(input_samps) function [] = lte_fdd_dl_receive(input_samps)
% DEFINES % DEFINES
...@@ -269,7 +271,7 @@ function [fine_start, N_id_2, pss_symb, pss_thresh] = find_pss_and_fine_timing(i ...@@ -269,7 +271,7 @@ function [fine_start, N_id_2, pss_symb, pss_thresh] = find_pss_and_fine_timing(i
fine_start(6) = pss_timing_idx + (2048+144)*5 + 2048+160 - 15360; fine_start(6) = pss_timing_idx + (2048+144)*5 + 2048+160 - 15360;
fine_start(7) = pss_timing_idx + (2048+144)*6 + 2048+160 - 15360; fine_start(7) = pss_timing_idx + (2048+144)*6 + 2048+160 - 15360;
while(fine_start(1) < 1) while(fine_start(1) < 1)
fine_start = fine_start + 15360; fine_start = fine_start + 307200;
endwhile endwhile
endfunction endfunction
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_fdd_dl_transmit % Function: lte_fdd_dl_transmit
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
% Spec: N/A % Spec: N/A
% Notes: Only supports normal cyclic prefix % Notes: Only supports normal cyclic prefix
% Rev History: Ben Wojtowicz 12/26/2011 Created % Rev History: Ben Wojtowicz 12/26/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [output_samps] = lte_fdd_dl_transmit(bandwidth, N_frames, N_id_2, N_id_1, N_ant) function [output_samps] = lte_fdd_dl_transmit(bandwidth, N_frames, N_id_2, N_id_1, N_ant)
% DEFINES % DEFINES
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_generate_crs % Function: lte_generate_crs
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
% Spec: 3GPP TS 36.211 section 6.10.1.1 v10.1.0 % Spec: 3GPP TS 36.211 section 6.10.1.1 v10.1.0
% Notes: Currently only handles normal CP % Notes: Currently only handles normal CP
% Rev History: Ben Wojtowicz 10/28/2011 Created % Rev History: Ben Wojtowicz 10/28/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [r] = lte_generate_crs(N_s, L, N_id_cell) function [r] = lte_generate_crs(N_s, L, N_id_cell)
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
% %
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>. % along with this program. If not, see <http://www.gnu.org/licenses/>.
% %
% Function: lte_generate_prs_c % Function: lte_generate_prs_c
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
% Spec: 3GPP TS 36.211 section 7.2 v10.1.0 % Spec: 3GPP TS 36.211 section 7.2 v10.1.0
% Notes: None % Notes: None
% Rev History: Ben Wojtowicz 10/28/2011 Created % Rev History: Ben Wojtowicz 10/28/2011 Created
% Ben Wojtowicz 01/29/2012 Fixed license statement
% %
function [c] = lte_generate_prs_c(c_init, seq_len) function [c] = lte_generate_prs_c(c_init, seq_len)
% Initialize the m-sequences % Initialize the m-sequences
......
% %
% Copyright 2011 Ben Wojtowicz % Copyright 2011-2012 Ben Wojtowicz
% %
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by % it under the terms of the GNU Affero General Public License as published by
% the Free Software Foundation, either version 3 of the License, or % the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version. % (at your option) any later version.
% %
% This program is distributed in the hope that it will be useful, % This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of % but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details. % GNU Affero General Public License for more details.
%