/// Delete number of subframe allocation pattern available for MBSFN sync area
// #if defined(Rel10) || defined(Rel14)
/// Delete MBMS Flag
/// Delete Outgoing MCCH pdu for PHY
/// Delete MCCH active flag
/// Delete MCCH active flag
/// Delete MTCH active flag
/// Delete number of active MBSFN area
/// Delete MBSFN Area Info
/// Delete PMCH Config
/// Delete MBMS session info list
/// Delete Outgoing MCH pdu for PHY
// #endif
// #ifdef CBA
/// Delete number of CBA groups
/// Delete RNTI for each CBA group
/// Delete MCS for each CBA group
// #endif
}COMMON_channels_t_NB;
/*! \brief top level eNB MAC structure */
typedefstruct{
///
uint16_tNode_id;
...
...
@@ -932,39 +818,40 @@ typedef struct {
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];
///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
/// 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
/// processing time of eNB MCH scheduler
time_stats_tschedule_mch;
/// Delete processing time of eNB MCH scheduler
/// processing time of eNB ULSCH reception
time_stats_trx_ulsch_sdu;// include rlc_data_ind
}eNB_MAC_INST;
}eNB_MAC_INST_NB;
/*
* UE part
*/
/*
* UE part
*/
/*!\brief UE layer 2 status */
typedefenum{
...
...
@@ -972,7 +859,7 @@ typedef enum {
CONNECTION_LOST,
PHY_RESYNCH,
PHY_HO_PRACH
}UE_L2_STATE_t;
}UE_L2_STATE_t_NB;
/*!\brief UE scheduling info */
typedefstruct{
...
...
@@ -986,10 +873,10 @@ typedef struct {
uint16_tAll_lcid_buffer_size_lastTTI;
/// buffer status for each lcid
uint8_tLCID_status[MAX_NUM_LCID];
/// SR pending as defined in 36.321
uint8_tSR_pending;
/// SR_COUNTER as defined in 36.321
uint16_tSR_COUNTER;
/// Delete SR pending as defined in 36.321
/// Delete SR_COUNTER as defined in 36.321
/// logical channel group ide for each LCID
uint8_tLCGID[MAX_NUM_LCID];
/// retxBSR-Timer, default value is sf2560
...
...
@@ -1000,41 +887,42 @@ typedef struct {
uint16_tperiodicBSR_Timer;
/// periodicBSR_SF, number of subframe before triggering a periodic BSR
uint16_tperiodicBSR_SF;
/// 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;
/// 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 release
structDRX_Config*drx_config;
/// 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;
/// Delete phr_config in MAC_MainConfig, default value is release
///Delete timer before triggering a periodic PHR
///Delete timer before triggering a prohibit PHR
///DL Pathloss change value
uint16_tPathlossChange;
///number of subframe before triggering a periodic PHR
int16_tperiodicPHR_SF;
///number of subframe before triggering a prohibit PHR
int16_tprohibitPHR_SF;
///Delete number of subframe before triggering a periodic PHR
///Delete number of subframe before triggering a prohibit PHR
///DL Pathloss Change in db
uint16_tPathlossChange_db;
/// default value is false
uint16_textendedBSR_Sizes_r10;
/// default value is false
uint16_textendedPHR_r10;
/// 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
//Bj bucket usage per lcid
int16_tBj[MAX_NUM_LCID];
// Bucket size per lcid
int16_tbucket_size[MAX_NUM_LCID];
}UE_SCHEDULING_INFO;
}UE_SCHEDULING_INFO_NB;
/*!\brief Top level UE MAC structure */
typedefstruct{
uint16_tNode_id;
...
...
@@ -1048,8 +936,8 @@ typedef struct {
sub_frame_ttxSubframe;
/// C-RNTI of UE
uint16_tcrnti;
/// C-RNTI of UE before HO
rnti_tcrnti_before_ho;///user id (rnti) of connected UEs