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

/*
Guy De Souza's avatar
Guy De Souza committed
23
  \author Guy De Souza
Guy De Souza's avatar
Guy De Souza committed
24
  \company EURECOM
Guy De Souza's avatar
Guy De Souza committed
25
  \email desouza@eurecom.fr
Guy De Souza's avatar
Guy De Souza committed
26 27 28 29 30
*/

#ifndef __openair_SCHED_NR_DEFS_H__
#define __openair_SCHED_NR_DEFS_H__

31 32 33
#include "PHY/defs_gNB.h"
#include "PHY_INTERFACE/phy_interface.h"
#include "SCHED/sched_eNB.h"
34
#include "PHY/NR_TRANSPORT/nr_dci.h"
Guy De Souza's avatar
Guy De Souza committed
35

Guy De Souza's avatar
Guy De Souza committed
36

37
nr_slot_t nr_slot_select (nfapi_nr_config_request_t *cfg, unsigned char slot);
WEI-TAI CHEN's avatar
WEI-TAI CHEN committed
38
void nr_set_ssb_first_subcarrier(nfapi_nr_config_request_t *cfg, NR_DL_FRAME_PARMS *fp);
39 40 41
void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB, int frame_tx, int slot_tx, int do_meas);
void phy_procedures_gNB_common_RX(PHY_VARS_gNB *gNB, gNB_L1_rxtx_proc_t *proc);
void phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, gNB_L1_rxtx_proc_t *proc, uint8_t symbol_start, uint8_t symbol_end);
42
void nr_common_signal_procedures (PHY_VARS_gNB *gNB,int frame, int slot);
43 44 45
void nr_feptx_ofdm(RU_t *ru,int frame_tx,int tti_tx);
void nr_feptx_ofdm_2thread(RU_t *ru,int frame_tx,int tti_tx);
void nr_feptx0(RU_t *ru,int tti_tx,int first_symbol, int num_symbols);
Laurent's avatar
Laurent committed
46
void nr_init_feptx_thread(RU_t *ru);
47
void fep_full(RU_t *ru,int slot);
48
void feptx_prec(RU_t *ru,int frame_tx,int tti_tx);
laurent's avatar
laurent committed
49
int nr_phy_init_RU(RU_t *ru);
Guy De Souza's avatar
Guy De Souza committed
50

51 52 53 54 55 56
void nr_configure_css_dci_initial(nfapi_nr_dl_config_pdcch_parameters_rel15_t* pdcch_params,
				  nr_scs_e scs_common,
				  nr_scs_e pdcch_scs,
				  nr_frequency_range_e freq_range,
				  uint8_t rmsi_pdcch_config,
				  uint8_t ssb_idx,
57 58 59
          uint8_t k_ssb,
          uint16_t sfn_ssb,
          uint8_t n_ssb,
60 61
				  uint16_t nb_slots_per_frame,
				  uint16_t N_RB);
62

Guy De Souza's avatar
Guy De Souza committed
63
#endif