nr_dci.h 2.38 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
typedef unsigned __int128 uint128_t;
29

yilmazt's avatar
yilmazt committed
30
uint16_t nr_get_dci_size(nfapi_nr_dci_format_e format,
Guy De Souza's avatar
Guy De Souza committed
31
                        nfapi_nr_rnti_type_e rnti_type,
Guy De Souza's avatar
Guy De Souza committed
32
                        uint16_t N_RB,
Guy De Souza's avatar
Guy De Souza committed
33
                        nfapi_nr_config_request_t* config);
34

35
uint8_t nr_generate_dci_top(NR_gNB_PDCCH pdcch_vars,
Guy De Souza's avatar
Guy De Souza committed
36
                            t_nrPolar_paramsPtr *nrPolar_params,
Guy De Souza's avatar
Guy De Souza committed
37
                            uint32_t **gold_pdcch_dmrs,
Guy De Souza's avatar
Guy De Souza committed
38 39
                            int32_t** txdataF,
                            int16_t amp,
40
                            NR_DL_FRAME_PARMS frame_parms,
41
                            nfapi_nr_config_request_t config);
42

43
void nr_pdcch_scrambling(uint32_t *in,
Hongzhi's avatar
Hongzhi committed
44
                         uint16_t size,
45 46
                         uint32_t Nid,
                         uint32_t n_RNTI,
47
                         uint32_t* out);
48

Guy De Souza's avatar
Guy De Souza committed
49 50 51
void nr_fill_dci_and_dlsch(PHY_VARS_gNB *gNB,
                           int frame,
                           int subframe,
Wang Tsu-Han's avatar
Wang Tsu-Han committed
52
                           gNB_L1_rxtx_proc_t *proc,
Guy De Souza's avatar
Guy De Souza committed
53 54 55 56 57 58
                           NR_gNB_DCI_ALLOC_t *dci_alloc,
                           nfapi_nr_dl_config_request_pdu_t *pdu);

void nr_fill_cce_list(NR_gNB_DCI_ALLOC_t* dci_alloc, uint16_t n_shift, uint8_t m);


59
#endif //__PHY_NR_TRANSPORT_DCI__H