refsig_defs_ue.h 2.82 KB
Newer Older
Hongzhi Wang's avatar
Hongzhi Wang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/*
 * 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
 */

/* Definitions for LTE Reference signals */
/* Author R. Knopp / EURECOM / OpenAirInterface.org */
#ifndef __NR_REFSIG_DEFS__H__
#define __NR_REFSIG_DEFS__H__
26

Hongzhi Wang's avatar
Hongzhi Wang committed
27
#include "PHY/defs_nr_UE.h"
28
#include "PHY/LTE_REFSIG/lte_refsig.h"
Hongzhi Wang's avatar
Hongzhi Wang committed
29 30 31 32 33


/*!\brief This function generates the NR Gold sequence (38-211, Sec 5.2.1) for the PBCH DMRS.
@param PHY_VARS_NR_UE* ue structure provides configuration, frame parameters and the pointers to the 32 bits sequence storage tables
 */
34
int nr_pbch_dmrs_rx(int dmrss,
yilmazt's avatar
yilmazt committed
35 36
                    unsigned int *nr_gold_pbch,
                    int32_t *output);
Hongzhi Wang's avatar
Hongzhi Wang committed
37

38 39 40 41
/*!\brief This function generates the NR Gold sequence (38-211, Sec 5.2.1) for the PDCCH DMRS.
@param PHY_VARS_NR_UE* ue structure provides configuration, frame parameters and the pointers to the 32 bits sequence storage tables
 */
int nr_pdcch_dmrs_rx(PHY_VARS_NR_UE *ue,
42 43 44 45 46 47
                     uint8_t eNB_offset,
                     unsigned int Ns,
                     unsigned int *nr_gold_pdcch,
                     int32_t *output,
                     unsigned short p,
                     unsigned short nb_rb_corset);
48 49

int nr_pdsch_dmrs_rx(PHY_VARS_NR_UE *ue,
50 51 52 53 54 55
                     unsigned int Ns,
                     unsigned int *nr_gold_pdsch,
                     int32_t *output,
                     unsigned short p,
                     unsigned char lp,
                     unsigned short nb_pdsch_rb);
Hongzhi Wang's avatar
Hongzhi Wang committed
56

Hongzhi Wang's avatar
Hongzhi Wang committed
57 58
void nr_gold_pbch(PHY_VARS_NR_UE* ue);

59
void nr_gold_pdcch(PHY_VARS_NR_UE* ue,
60 61
                   unsigned short n_idDMRS,
                   unsigned short length_dmrs);
62

Hongzhi Wang's avatar
Hongzhi Wang committed
63
void nr_gold_pdsch(PHY_VARS_NR_UE* ue,
64
                   unsigned char ns,
65
                   unsigned short *n_idDMRS);
Hongzhi Wang's avatar
Hongzhi Wang committed
66

67
void nr_init_pusch_dmrs(PHY_VARS_NR_UE* ue,
yilmazt's avatar
yilmazt committed
68 69
                        uint16_t *N_n_scid,
                        uint8_t n_scid);
Hongzhi Wang's avatar
Hongzhi Wang committed
70

Hongzhi Wang's avatar
Hongzhi Wang committed
71
#endif