///Delete subband bitmap configuration, no related CQI report
SBMAP_CONFsbmap_conf;
/// CCE table used to build DCI scheduling information
// / Modify CCE table used to build DCI scheduling information
intCCE_table[MAX_NUM_CCs][800];
intCCE_table[MAX_NUM_CCs][12];//180 khz for Anchor carrier
/// active flag for Other lcid
/// active flag for Other lcid
uint8_tlcid_active[NB_RB_MAX];
uint8_tlcid_active[NB_RB_MAX];
/// eNB stats
/// eNB stats
...
@@ -955,12 +842,12 @@ typedef struct {
...
@@ -955,12 +842,12 @@ typedef struct {
time_stats_tschedule_dlsch_preprocessor;
time_stats_tschedule_dlsch_preprocessor;
/// processing time of eNB DLSCH scheduler
/// processing time of eNB DLSCH scheduler
time_stats_tschedule_dlsch;// include rlc_data_req + MAC header + preprocessor
time_stats_tschedule_dlsch;// include rlc_data_req + MAC header + preprocessor
/// processing time of eNB MCH scheduler
/// Delete processing time of eNB MCH scheduler
time_stats_tschedule_mch;
/// processing time of eNB ULSCH reception
/// processing time of eNB ULSCH reception
time_stats_trx_ulsch_sdu;// include rlc_data_ind
time_stats_trx_ulsch_sdu;// include rlc_data_ind
}eNB_MAC_INST;
}eNB_MAC_INST_NB;
/*
/*
* UE part
* UE part
...
@@ -972,7 +859,7 @@ typedef enum {
...
@@ -972,7 +859,7 @@ typedef enum {
CONNECTION_LOST,
CONNECTION_LOST,
PHY_RESYNCH,
PHY_RESYNCH,
PHY_HO_PRACH
PHY_HO_PRACH
}UE_L2_STATE_t;
}UE_L2_STATE_t_NB;
/*!\brief UE scheduling info */
/*!\brief UE scheduling info */
typedefstruct{
typedefstruct{
...
@@ -986,10 +873,10 @@ typedef struct {
...
@@ -986,10 +873,10 @@ typedef struct {
uint16_tAll_lcid_buffer_size_lastTTI;
uint16_tAll_lcid_buffer_size_lastTTI;
/// buffer status for each lcid
/// buffer status for each lcid
uint8_tLCID_status[MAX_NUM_LCID];
uint8_tLCID_status[MAX_NUM_LCID];
/// SR pending as defined in 36.321
/// Delete SR pending as defined in 36.321
uint8_tSR_pending;
/// SR_COUNTER as defined in 36.321
/// Delete SR_COUNTER as defined in 36.321
uint16_tSR_COUNTER;
/// logical channel group ide for each LCID
/// logical channel group ide for each LCID
uint8_tLCGID[MAX_NUM_LCID];
uint8_tLCGID[MAX_NUM_LCID];
/// retxBSR-Timer, default value is sf2560
/// retxBSR-Timer, default value is sf2560
...
@@ -1000,41 +887,42 @@ typedef struct {
...
@@ -1000,41 +887,42 @@ typedef struct {
uint16_tperiodicBSR_Timer;
uint16_tperiodicBSR_Timer;
/// periodicBSR_SF, number of subframe before triggering a periodic BSR
/// periodicBSR_SF, number of subframe before triggering a periodic BSR
uint16_tperiodicBSR_SF;
uint16_tperiodicBSR_SF;
/// default value is 0: not configured
/// Delete sr_ProhibitTimer in MAC_MainConfig, default value is 0: not configured
uint16_tsr_ProhibitTimer;
/// sr ProhibitTime running
/// Delete sr ProhibitTime running
uint8_tsr_ProhibitTimer_Running;
/// default value to n5
/// Delete maxHARQ_Tx in MAC_MainConfig, default value to n5
uint16_tmaxHARQ_Tx;
/// default value is false
/// delete ttiBundling in MAC_MainConfig, default value is false
uint16_tttiBundling;
/// default value is release
/// default value is release
structDRX_Config*drx_config;
structDRX_Config*drx_config;
/// default value is release
/// Delete phr_config in MAC_MainConfig, default value is release
structMAC_MainConfig__phr_Config*phr_config;
///timer before triggering a periodic PHR
///Delete timer before triggering a periodic PHR
uint16_tperiodicPHR_Timer;
///timer before triggering a prohibit PHR
///Delete timer before triggering a prohibit PHR
uint16_tprohibitPHR_Timer;
///DL Pathloss change value
///DL Pathloss change value
uint16_tPathlossChange;
uint16_tPathlossChange;
///number of subframe before triggering a periodic PHR
///Delete number of subframe before triggering a periodic PHR
int16_tperiodicPHR_SF;
///number of subframe before triggering a prohibit PHR
///Delete number of subframe before triggering a prohibit PHR
int16_tprohibitPHR_SF;
///DL Pathloss Change in db
///DL Pathloss Change in db
uint16_tPathlossChange_db;
uint16_tPathlossChange_db;
/// default value is false
/// Delete extendedBSR_Sizes_r10, default value is false, only support short BSR
uint16_textendedBSR_Sizes_r10;
/// default value is false
uint16_textendedPHR_r10;
//Bj bucket usage per lcid
/// Delete extendedPHR_r10, default value is false
int16_tBj[MAX_NUM_LCID];
// Bucket size per lcid
int16_tbucket_size[MAX_NUM_LCID];
//For NB-IoT in TS 36.321, prioritisedBitRate, bucketSizeDuration and the corresponding steps of the Logical Channel Prioritisation procedure (i.e., Step 1 and Step 2 below) are not applicable.
}UE_SCHEDULING_INFO;
//Delete Bj bucket usage per lcid,
//Delete Bucket size per lcid
}UE_SCHEDULING_INFO_NB;
/*!\brief Top level UE MAC structure */
/*!\brief Top level UE MAC structure */
typedefstruct{
typedefstruct{
uint16_tNode_id;
uint16_tNode_id;
...
@@ -1048,8 +936,8 @@ typedef struct {
...
@@ -1048,8 +936,8 @@ typedef struct {
sub_frame_ttxSubframe;
sub_frame_ttxSubframe;
/// C-RNTI of UE
/// C-RNTI of UE
uint16_tcrnti;
uint16_tcrnti;
/// C-RNTI of UE before HO
/// Delete C-RNTI of UE before HO
rnti_tcrnti_before_ho;///user id (rnti) of connected UEs