///Delete subband bitmap configuration, no related CQI report
// / Modify CCE table used to build DCI scheduling information
intCCE_table[MAX_NUM_CCs][12];//180 khz for Anchor carrier
COMMON_channels_tcommon_channels[MAX_NUM_CCs];
UE_list_tUE_list;
///subband bitmap configuration
SBMAP_CONFsbmap_conf;
/// CCE table used to build DCI scheduling information
intCCE_table[MAX_NUM_CCs][800];
/// active flag for Other lcid
uint8_tlcid_active[NB_RB_MAX];
/// eNB stats
eNB_STATSeNB_stats[MAX_NUM_CCs];
// MAC function execution peformance profiler
/// processing time of eNB scheduler
/// processing time of eNB scheduler
time_stats_teNB_scheduler;
/// processing time of eNB scheduler for SI
/// processing time of eNB scheduler for SI
time_stats_tschedule_si;
/// processing time of eNB scheduler for Random access
time_stats_tschedule_ra;
/// processing time of eNB ULSCH scheduler
/// processing time of eNB ULSCH scheduler
time_stats_tschedule_ulsch;
/// processing time of eNB DCI generation
time_stats_tfill_DLSCH_dci;
/// processing time of eNB MAC 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
/// Delete processing time of eNB MCH scheduler
/// processing time of eNB MCH scheduler
time_stats_tschedule_mch;
/// processing time of eNB ULSCH reception
time_stats_trx_ulsch_sdu;// include rlc_data_ind
}eNB_MAC_INST_NB;
}eNB_MAC_INST;
/*
* UE part
*/
/*
* UE part
*/
/*!\brief UE layer 2 status */
typedefenum{
...
...
@@ -870,7 +972,7 @@ typedef enum {
CONNECTION_LOST,
PHY_RESYNCH,
PHY_HO_PRACH
}UE_L2_STATE_t_NB;
}UE_L2_STATE_t;
/*!\brief UE scheduling info */
typedefstruct{
...
...
@@ -884,10 +986,10 @@ typedef struct {
uint16_tAll_lcid_buffer_size_lastTTI;
/// buffer status for each lcid
uint8_tLCID_status[MAX_NUM_LCID];
/// Delete SR pending as defined in 36.321
/// Delete SR_COUNTER as defined in 36.321
/// SR pending as defined in 36.321
uint8_tSR_pending;
/// SR_COUNTER as defined in 36.321
uint16_tSR_COUNTER;
/// logical channel group ide for each LCID
uint8_tLCGID[MAX_NUM_LCID];
/// retxBSR-Timer, default value is sf2560
...
...
@@ -898,42 +1000,41 @@ typedef struct {
uint16_tperiodicBSR_Timer;
/// periodicBSR_SF, number of subframe before triggering a periodic BSR
uint16_tperiodicBSR_SF;
/// Delete sr_ProhibitTimer in MAC_MainConfig, default value is 0: not configured
/// Delete sr ProhibitTime running
/// Delete maxHARQ_Tx in MAC_MainConfig, default value to n5
/// delete ttiBundling in MAC_MainConfig, default value is false
/// default value is 0: not configured
uint16_tsr_ProhibitTimer;
/// sr ProhibitTime running
uint8_tsr_ProhibitTimer_Running;
/// default value to n5
uint16_tmaxHARQ_Tx;
/// default value is false
uint16_tttiBundling;
/// default value is release
structDRX_Config*drx_config;
/// Delete phr_config in MAC_MainConfig, default value is release
///Delete timer before triggering a periodic PHR
///Delete timer before triggering a prohibit PHR
/// default value is release
structMAC_MainConfig__phr_Config*phr_config;
///timer before triggering a periodic PHR
uint16_tperiodicPHR_Timer;
///timer before triggering a prohibit PHR
uint16_tprohibitPHR_Timer;
///DL Pathloss change value
uint16_tPathlossChange;
///Delete number of subframe before triggering a periodic PHR
///Delete number of subframe before triggering a prohibit PHR
///number of subframe before triggering a periodic PHR
int16_tperiodicPHR_SF;
///number of subframe before triggering a prohibit PHR
int16_tprohibitPHR_SF;
///DL Pathloss Change in db
uint16_tPathlossChange_db;
/// Delete extendedBSR_Sizes_r10, default value is false, only support short BSR
/// Delete extendedPHR_r10, default value is false
//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.
//Delete Bj bucket usage per lcid,
//Delete Bucket size per lcid
/// default value is false
uint16_textendedBSR_Sizes_r10;
/// default value is false
uint16_textendedPHR_r10;
}UE_SCHEDULING_INFO_NB;
//Bj bucket usage per lcid
int16_tBj[MAX_NUM_LCID];
// Bucket size per lcid
int16_tbucket_size[MAX_NUM_LCID];
}UE_SCHEDULING_INFO;
/*!\brief Top level UE MAC structure */
typedefstruct{
uint16_tNode_id;
...
...
@@ -947,36 +1048,36 @@ typedef struct {
sub_frame_ttxSubframe;
/// C-RNTI of UE
uint16_tcrnti;
/// Delete C-RNTI of UE before HO
/// C-RNTI of UE before HO
rnti_tcrnti_before_ho;///user id (rnti) of connected UEs