/**\brief primitive from RRC layer to MAC layer for configuration L1/L2, now supported 4 rrc messages: MIB, cell_group_config for MAC/PHY, spcell_config(serving cell config)
constint32_ttable_38213_13_10_c3[16]={1,1,2,2,1,1,1,1,reserved,reserved,reserved,reserved,reserved,reserved,reserved,reserved};// index 08-15 reserved
constint32_ttable_38213_13_10_c4[16]={0,8,0,8,-41,25,-41,49,reserved,reserved,reserved,reserved,reserved,reserved,reserved,reserved};// index 08-15 reserved, condition A as default
// 1. TODO: Call RRC for link status return to PHY
// 2. TODO: Perform SR/BSR procedures for scheduling feedback
// 3. TODO: Perform PHR procedures
NR_UE_L2_STATE_tnr_ue_scheduler(
constmodule_id_tmodule_id,
constuint8_tgNB_index,
constintcc_id,
constframe_trx_frame,
constslot_trx_slot,
constint32_tssb_index,
constframe_ttx_frame,
constslot_ttx_slot){
constslot_ttx_slot){
uint32_tsearch_space_mask=0;
NR_UE_MAC_INST_t*mac=get_mac_inst(module_id);
// check type0 from 38.213 13
if(ssb_index!=-1){
if(mac->type0_pdcch_ss_mux_pattern==1){
// now bigO and bigM use floating point implementation, after can optimize to use fixed point implementation by change mac_vars table and operation 'multiple'