/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public License, Version 1.1 (the "License"); you may not use this file * except in compliance with the License. * You may obtain a copy of the License at * * http://www.openairinterface.org/?page_id=698 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *------------------------------------------------------------------------------- * For more information about the OpenAirInterface (OAI) Software Alliance: * contact@openairinterface.org */ /*! \file PHY/NR_TRANSPORT/nr_sch_dmrs.c * \brief * \author * \date * \version * \company Eurecom * \email: * \note * \warning */ #include "nr_sch_dmrs.h" /*Table 7.4.1.1.2-1 and 7.4.1.1.2-2 38211 Columns: ap - CDM group - Delta - Wf(0) - Wf(1) - Wt(0) - Wt(1)*/ int8_t pdsch_dmrs_1[8][7] = {{0,0,0,1,1,1,1}, {1,0,0,1,-1,1,1}, {2,1,1,1,1,1,1}, {3,1,1,1,-1,1,1}, {4,0,0,1,1,1,-1}, {5,0,0,1,-1,1,-1}, {6,1,1,1,1,1,-1}, {7,1,1,1,-1,1,-1}}; int8_t pdsch_dmrs_2[12][7] = {{0,0,0,1,1,1,1}, {1,0,0,1,-1,1,1}, {2,1,2,1,1,1,1}, {3,1,2,1,-1,1,1}, {4,2,4,1,1,1,1}, {5,2,4,1,-1,1,1}, {6,0,0,1,1,1,-1}, {7,0,0,1,-1,1,-1}, {8,1,2,1,1,1,-1}, {9,1,2,1,-1,1,-1}, {10,2,4,1,1,1,-1}, {11,2,4,1,-1,1,-1}}; void get_l_prime(uint8_t *l_prime, uint8_t n_symbs) { for (int i=0; i