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

22 23 24
#ifndef __PHY_NR_TRANSPORT_DCI__H
#define __PHY_NR_TRANSPORT_DCI__H

25
#include "PHY/defs_gNB.h"
26
#include "PHY/NR_REFSIG/nr_refsig.h"
27

yilmazt's avatar
yilmazt committed
28
uint16_t nr_get_dci_size(nfapi_nr_dci_format_e format,
29
                         nfapi_nr_rnti_type_e rnti_type,
30
                         uint16_t N_RB);
31

Raymond Knopp's avatar
Raymond Knopp committed
32
uint8_t nr_generate_dci_top(nfapi_nr_dl_tti_pdcch_pdu *pdcch_vars,
Guy De Souza's avatar
Guy De Souza committed
33
                            uint32_t **gold_pdcch_dmrs,
34
                            int32_t *txdataF,
Guy De Souza's avatar
Guy De Souza committed
35
                            int16_t amp,
36
                            NR_DL_FRAME_PARMS frame_parms);
37

38
void nr_pdcch_scrambling(uint32_t *in,
39
                         uint32_t size,
40 41
                         uint32_t Nid,
                         uint32_t n_RNTI,
42
                         uint32_t *out);
43

44 45
void nr_fill_dci(PHY_VARS_gNB *gNB,
                 int frame,
46
                 int slot);
Guy De Souza's avatar
Guy De Souza committed
47

Raymond Knopp's avatar
Raymond Knopp committed
48
void nr_fill_cce_list(PHY_VARS_gNB *gNB, uint8_t m);
Guy De Souza's avatar
Guy De Souza committed
49

50
void get_coreset_rballoc(uint8_t *FreqDomainResource,int *n_rb,int *rb_offset);
Guy De Souza's avatar
Guy De Souza committed
51

52
#endif //__PHY_NR_TRANSPORT_DCI__H