75 lines
3.0 KiB
C
75 lines
3.0 KiB
C
/*
|
|
* 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__H__
|
|
#define __NR_REFSIG__H__
|
|
|
|
#include "PHY/defs_gNB.h"
|
|
#include "openair1/PHY/NR_REFSIG/nr_refsig_common.h"
|
|
|
|
int nr_pusch_dmrs_delta(uint8_t dmrs_config_type, unsigned short p);
|
|
|
|
int nr_pusch_dmrs_rx(PHY_VARS_gNB *gNB,
|
|
unsigned int Ns,
|
|
const uint32_t *nr_gold_pusch,
|
|
c16_t *output,
|
|
unsigned short p,
|
|
unsigned char lp,
|
|
unsigned short nb_pusch_rb,
|
|
uint32_t re_offset,
|
|
uint8_t dmrs_type);
|
|
|
|
void nr_generate_csi_rs(const NR_DL_FRAME_PARMS *frame_parms,
|
|
int32_t **dataF,
|
|
const int16_t amp,
|
|
nr_csi_info_t *nr_csi_info,
|
|
const nfapi_nr_dl_tti_csi_rs_pdu_rel15_t *csi_params,
|
|
const int slot,
|
|
uint8_t *N_cdm_groups,
|
|
uint8_t *CDM_group_size,
|
|
uint8_t *k_prime,
|
|
uint8_t *l_prime,
|
|
uint8_t *N_ports,
|
|
uint8_t *j_cdm,
|
|
uint8_t *k_overline,
|
|
uint8_t *l_overline);
|
|
|
|
void init_scrambling_luts(void);
|
|
void nr_generate_modulation_table(void);
|
|
|
|
extern simde__m64 byte2m64_re[256];
|
|
extern simde__m64 byte2m64_im[256];
|
|
extern simde__m128i byte2m128i[256];
|
|
|
|
int nr_pusch_lowpaprtype1_dmrs_rx(PHY_VARS_gNB *gNB,
|
|
unsigned int Ns,
|
|
c16_t *dmrs_seq,
|
|
c16_t *output,
|
|
unsigned short p,
|
|
unsigned char lp,
|
|
unsigned short nb_pusch_rb,
|
|
uint32_t re_offset,
|
|
uint8_t dmrs_type);
|
|
|
|
#endif
|