merge develop-nr
This commit is contained in:
@@ -230,7 +230,7 @@ void phy_config_request(PHY_Config_t *phy_config) {
|
||||
|
||||
uint8_t Mod_id = phy_config->Mod_id;
|
||||
int CC_id = phy_config->CC_id;
|
||||
nfapi_config_request_t *cfg = phy_config->cfg;
|
||||
nfapi_nr_config_request_t *cfg = phy_config->cfg;
|
||||
|
||||
NR_DL_FRAME_PARMS *fp;
|
||||
PHICH_RESOURCE_t phich_resource_table[4]={oneSixth,half,one,two};
|
||||
@@ -345,7 +345,7 @@ void install_schedule_handlers(IF_Module_t *if_inst)
|
||||
/*void nr_phy_config_request(PHY_VARS_gNB *gNB)
|
||||
{
|
||||
NR_DL_FRAME_PARMS *fp = &gNB->frame_parms;
|
||||
nfapi_config_request_t *gNB_config = &gNB->gNB_config;
|
||||
nfapi_nr_config_request_t *gNB_config = &gNB->gNB_config;
|
||||
|
||||
//overwrite for new NR parameters
|
||||
gNB_config->nfapi_config.rf_bands.rf_band[0] = 22;
|
||||
|
||||
@@ -151,7 +151,7 @@ int nr_init_frame_parms(nfapi_nr_config_request_t* config,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int nr_init_frame_parms_ue(nfapi_config_request_t* config,
|
||||
int nr_init_frame_parms_ue(nfapi_nr_config_request_t* config,
|
||||
NR_DL_FRAME_PARMS *frame_parms)
|
||||
{
|
||||
|
||||
|
||||
@@ -375,7 +375,7 @@ void phy_config_request(PHY_Config_t *phy_config);
|
||||
int init_frame_parms(LTE_DL_FRAME_PARMS *frame_parms,uint8_t osf);
|
||||
void dump_frame_parms(LTE_DL_FRAME_PARMS *frame_parms);
|
||||
int nr_init_frame_parms(nfapi_nr_config_request_t* config, NR_DL_FRAME_PARMS *frame_parms);
|
||||
int nr_init_frame_parms_ue(nfapi_config_request_t* config, NR_DL_FRAME_PARMS *frame_parms);
|
||||
int nr_init_frame_parms_ue(nfapi_nr_config_request_t* config, NR_DL_FRAME_PARMS *frame_parms);
|
||||
void nr_dump_frame_parms(NR_DL_FRAME_PARMS *frame_parms);
|
||||
int phy_init_nr_gNB(PHY_VARS_gNB *gNB, unsigned char is_secondary_gNB, unsigned char abstraction_flag);
|
||||
void nr_phy_config_request(NR_PHY_Config_t *gNB);
|
||||
|
||||
@@ -130,7 +130,7 @@ uint8_t nr_generate_dci_top(NR_DCI_ALLOC_t dci_alloc,
|
||||
int32_t** txdataF,
|
||||
int16_t amp,
|
||||
NR_DL_FRAME_PARMS* frame_parms,
|
||||
nfapi_config_request_t* config)
|
||||
nfapi_nr_config_request_t* config)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -18,50 +18,13 @@
|
||||
* For more information about the OpenAirInterface (OAI) Software Alliance:
|
||||
* contact@openairinterface.org
|
||||
*/
|
||||
|
||||
#ifndef __PHY_NR_TRANSPORT_DCI__H
|
||||
#define __PHY_NR_TRANSPORT_DCI__H
|
||||
|
||||
#include "defs_gNB.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
nr_dci_format_0_0=0,
|
||||
nr_dci_format_0_1,
|
||||
nr_dci_format_2_0,
|
||||
nr_dci_format_2_1,
|
||||
nr_dci_format_2_2,
|
||||
nr_dci_format_2_3,
|
||||
nr_dci_format_1_0,
|
||||
nr_dci_format_1_1,
|
||||
} nr_dci_format_e;
|
||||
|
||||
typedef enum {
|
||||
nr_rnti_type_SI_RNTI=0,
|
||||
nr_rnti_type_RA_RNTI,
|
||||
nr_rnti_type_C_RNTI,
|
||||
nr_rnti_type_TC_RNTI,
|
||||
nr_rnti_type_CS_RNTI,
|
||||
nr_rnti_type_P_RNTI
|
||||
} nr_rnti_type_e;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/// Length of DCI in bits
|
||||
uint8_t size;
|
||||
/// Aggregation level
|
||||
uint8_t L;
|
||||
/// Position of first CCE of the dci
|
||||
int firstCCE;
|
||||
/// flag to indicate that this is a RA response
|
||||
boolean_t ra_flag;
|
||||
/// rnti
|
||||
nr_rnti_type_e rnti;
|
||||
/// Format
|
||||
DCI_format_t format;
|
||||
/// DCI pdu
|
||||
uint8_t dci_pdu[8];
|
||||
} NR_DCI_ALLOC_t;
|
||||
|
||||
typedef unsigned __int128 uint128_t;
|
||||
|
||||
uint8_t nr_get_dci_size(nr_dci_format_e format,
|
||||
nr_rnti_type_e rnti,
|
||||
@@ -72,6 +35,6 @@ uint8_t nr_generate_dci_top(NR_DCI_ALLOC_t dci_alloc,
|
||||
int32_t** txdataF,
|
||||
int16_t amp,
|
||||
NR_DL_FRAME_PARMS* frame_parms,
|
||||
nfapi_config_request_t* config)
|
||||
nfapi_nr_config_request_t* config)
|
||||
|
||||
#endif //__PHY_NR_TRANSPORT_DCI__H
|
||||
|
||||
@@ -212,6 +212,8 @@ int nr_generate_pbch(NR_gNB_PBCH *pbch,
|
||||
uint8_t idx=0;
|
||||
uint16_t M;
|
||||
uint8_t nushift;
|
||||
uint8_t *xbyte = pbch->pbch_a;
|
||||
memset((void*) xbyte, 0, 1);
|
||||
|
||||
LOG_I(PHY, "PBCH generation started\n");
|
||||
|
||||
@@ -223,13 +225,10 @@ int nr_generate_pbch(NR_gNB_PBCH *pbch,
|
||||
#ifdef DEBUG_PBCH_ENCODING
|
||||
printf("Byte endian fix:\n");
|
||||
for (int i=0; i<4; i++)
|
||||
printf("pbch_a[%d]: 0x%04x\n", i, pbch->pbch_a[i]);
|
||||
|
||||
printf("pbch_a[%d]: 0x%04x\n", i, pbch->pbch_a[i]);
|
||||
#endif
|
||||
|
||||
// Extra byte generation
|
||||
uint8_t *xbyte = pbch->pbch_a;
|
||||
//memset((void*) xbyte, 0, 1);
|
||||
for (int i=0; i<4; i++)
|
||||
(*xbyte) ^= ((sfn>>i)&1)<<i; // 4 lsb of sfn
|
||||
|
||||
|
||||
@@ -45,10 +45,10 @@
|
||||
#include "PHY/NR_REFSIG/refsig_defs_ue.h"
|
||||
|
||||
extern openair0_config_t openair0_cfg[];
|
||||
static nfapi_config_request_t config_t;
|
||||
static nfapi_config_request_t* config =&config_t;
|
||||
static nfapi_nr_config_request_t config_t;
|
||||
static nfapi_nr_config_request_t* config =&config_t;
|
||||
/* forward declarations */
|
||||
void set_default_frame_parms_single(nfapi_config_request_t *config, NR_DL_FRAME_PARMS *frame_parms);
|
||||
void set_default_frame_parms_single(nfapi_nr_config_request_t *config, NR_DL_FRAME_PARMS *frame_parms);
|
||||
|
||||
//#define DEBUG_INITIAL_SYNCH
|
||||
|
||||
@@ -164,7 +164,7 @@ int nr_initial_sync(PHY_VARS_NR_UE *ue, runmode_t mode)
|
||||
NR_DL_FRAME_PARMS *frame_parms = &ue->frame_parms;
|
||||
int ret=-1;
|
||||
int aarx,rx_power=0;
|
||||
//nfapi_config_request_t* config;
|
||||
//nfapi_nr_config_request_t* config;
|
||||
|
||||
/*offset parameters to be updated from higher layer */
|
||||
k_ssb =0;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#define __PHY_DEFS_NR_COMMON__H__
|
||||
|
||||
#include "defs_common.h"
|
||||
#include "nfapi_interface.h"
|
||||
#include "nfapi_nr_interface.h"
|
||||
#include "impl_defs_nr.h"
|
||||
#include "PHY/CODING/nrPolar_tools/nr_polar_defs.h"
|
||||
|
||||
|
||||
@@ -32,7 +32,8 @@
|
||||
#include "PHY_INTERFACE/phy_interface.h"
|
||||
#include "SCHED/sched_eNB.h"
|
||||
|
||||
nr_subframe_t nr_subframe_select(nfapi_nr_config_request_t *cfg,unsigned char subframe);
|
||||
|
||||
lte_subframe_t nr_subframe_select (nfapi_nr_config_request_t *cfg, unsigned char subframe);
|
||||
void nr_set_ssb_first_subcarrier(nfapi_nr_config_request_t *cfg, NR_DL_FRAME_PARMS *fp);
|
||||
void phy_procedures_gNB_TX(PHY_VARS_gNB *gNB, gNB_rxtx_proc_t *proc, int do_meas);
|
||||
void nr_init_feptx_thread(RU_t *ru,pthread_attr_t *attr_feptx);
|
||||
|
||||
Reference in New Issue
Block a user