From 46ca52104282edb073581ba0f7ba522e421498ab Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Thu, 25 Jul 2024 15:55:19 +0200 Subject: [PATCH] nr_pdc/sch_dmrs_rx(): make non-changing input parameter const ptr --- openair1/PHY/NR_REFSIG/nr_dmrs_rx.c | 8 ++++---- openair1/PHY/NR_REFSIG/refsig_defs_ue.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openair1/PHY/NR_REFSIG/nr_dmrs_rx.c b/openair1/PHY/NR_REFSIG/nr_dmrs_rx.c index 4f8d86762f..3352c5d3a6 100644 --- a/openair1/PHY/NR_REFSIG/nr_dmrs_rx.c +++ b/openair1/PHY/NR_REFSIG/nr_dmrs_rx.c @@ -120,9 +120,9 @@ int nr_pusch_dmrs_rx(PHY_VARS_gNB *gNB, return(0); } -int nr_pdsch_dmrs_rx(PHY_VARS_NR_UE *ue, +int nr_pdsch_dmrs_rx(const PHY_VARS_NR_UE *ue, unsigned int Ns, - unsigned int *nr_gold_pdsch, + const unsigned int *nr_gold_pdsch, c16_t *output, unsigned short p, unsigned char lp, @@ -170,9 +170,9 @@ int nr_pdsch_dmrs_rx(PHY_VARS_NR_UE *ue, return(0); } -int nr_pdcch_dmrs_rx(PHY_VARS_NR_UE *ue, +int nr_pdcch_dmrs_rx(const PHY_VARS_NR_UE *ue, unsigned int Ns, - unsigned int *nr_gold_pdcch, + const unsigned int *nr_gold_pdcch, c16_t *output, unsigned short p, unsigned short nb_rb_coreset) diff --git a/openair1/PHY/NR_REFSIG/refsig_defs_ue.h b/openair1/PHY/NR_REFSIG/refsig_defs_ue.h index 21d5a116d1..ffd16722cc 100644 --- a/openair1/PHY/NR_REFSIG/refsig_defs_ue.h +++ b/openair1/PHY/NR_REFSIG/refsig_defs_ue.h @@ -35,16 +35,16 @@ void nr_pbch_dmrs_rx(int dmrss, const unsigned int *nr_gold_pbch, c16_t *output, /*!\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, +int nr_pdcch_dmrs_rx(const PHY_VARS_NR_UE *ue, unsigned int Ns, - unsigned int *nr_gold_pdcch, + const unsigned int *nr_gold_pdcch, c16_t *output, unsigned short p, unsigned short nb_rb_corset); -int nr_pdsch_dmrs_rx(PHY_VARS_NR_UE *ue, +int nr_pdsch_dmrs_rx(const PHY_VARS_NR_UE *ue, unsigned int Ns, - unsigned int *nr_gold_pdsch, + const unsigned int *nr_gold_pdsch, c16_t *output, unsigned short p, unsigned char lp,