nr_sch_dmrs.h 1.69 KB
Newer Older
Guy De Souza's avatar
Guy De Souza committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * 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
 */

22
/*! \file PHY/NR_TRANSPORT/nr_sch_dmrs.h
Guy De Souza's avatar
Guy De Souza committed
23 24 25 26 27 28 29 30 31 32
* \brief
* \author
* \date
* \version
* \company Eurecom
* \email:
* \note
* \warning
*/

33
#include "PHY/defs_nr_common.h"
Guy De Souza's avatar
Guy De Souza committed
34 35 36 37

#define NR_PDSCH_DMRS_ANTENNA_PORT0 1000
#define NR_PDSCH_DMRS_NB_ANTENNA_PORTS 12

Guy De Souza's avatar
Guy De Souza committed
38 39 40 41
void get_l_prime(uint8_t *l_prime, uint8_t n_symbs);

void get_antenna_ports(uint8_t *ap, uint8_t n_symbs, uint8_t config);

42
void get_Wt(int8_t *Wt, uint8_t ap, uint8_t config);
Guy De Souza's avatar
Guy De Souza committed
43

44
void get_Wf(int8_t *Wf, uint8_t ap, uint8_t config);
Guy De Souza's avatar
Guy De Souza committed
45 46 47

uint8_t get_delta(uint8_t ap, uint8_t config);

Francesco Mani's avatar
Francesco Mani committed
48
uint16_t get_dmrs_freq_idx(uint16_t n, uint8_t k_prime, uint8_t delta, uint8_t dmrs_type);
Khalid Ahmed's avatar
Khalid Ahmed committed
49

50
uint8_t get_l0(uint8_t mapping_type, uint8_t dmrs_typeA_position);