mac_proto.h 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

#ifndef __LAYER2_NR_MAC_PROTO_H__
#define __LAYER2_NR_MAC_PROTO_H__

#include "mac.h"
#include "PHY/defs_nr_common.h"

void mac_top_init_gNB(void);

int rrc_mac_config_req_gNB(module_id_t Mod_idP, 
                           int CC_id,
                           int p_gNB,
                           int eutra_bandP,
                           int dl_CarrierFreqP,
                           int dl_BandwidthP,
                           NR_BCCH_BCH_Message_t *mib,
                           NR_ServingCellConfigCommon_t *servingcellconfigcommon
                           );

WEI-TAI CHEN's avatar
WEI-TAI CHEN committed
20 21
int  is_nr_UL_sf(NR_COMMON_channels_t * ccP, sub_frame_t subframeP);

WEI-TAI CHEN's avatar
WEI-TAI CHEN committed
22 23 24
void clear_nr_nfapi_information(gNB_MAC_INST * gNB, 
                                int CC_idP,
                                frame_t frameP, 
WEI-TAI CHEN's avatar
WEI-TAI CHEN committed
25
                                sub_frame_t subframeP);
WEI-TAI CHEN's avatar
WEI-TAI CHEN committed
26

27 28 29 30
void gNB_dlsch_ulsch_scheduler(module_id_t module_idP, 
                               frame_t frameP,
                               sub_frame_t subframeP);

WEI-TAI CHEN's avatar
WEI-TAI CHEN committed
31 32
void schedule_nr_mib(module_id_t module_idP, frame_t frameP, sub_frame_t subframeP);

33
#endif /*__LAYER2_NR_MAC_PROTO_H__*/