Commit 40d63793 authored by Francesco Mani's avatar Francesco Mani

MAC function to schedule CSI-RS

parent 0768dda2
......@@ -456,9 +456,11 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
// This schedule SR
// TODO
// This schedule CSI measurement reporting
if (UE_info->active[UE_id])
// This schedule CSI-RS transmission and measurement reporting
if (UE_info->active[UE_id]){
nr_csirs_scheduling(module_idP, UE_id, frame, slot, slots_per_frame[*scc->ssbSubcarrierSpacing]);
nr_csi_meas_reporting(module_idP, UE_id, frame, slot, num_slots_per_tdd, nr_ulmix_slots, slots_per_frame[*scc->ssbSubcarrierSpacing]);
}
// This schedule RA procedure if not in phy_test mode
// Otherwise already consider 5G already connected
......
......@@ -201,6 +201,12 @@ void nr_schedule_pucch(int Mod_idP,
frame_t frameP,
sub_frame_t slotP);
void nr_csirs_scheduling(int Mod_idP,
int UE_id,
frame_t frame,
sub_frame_t slot,
int n_slots_frame);
void nr_csi_meas_reporting(int Mod_idP,
int UE_id,
frame_t frameP,
......@@ -209,6 +215,10 @@ void nr_csi_meas_reporting(int Mod_idP,
int ul_slots,
int n_slots_frame);
void csi_period_offset(NR_CSI_ReportConfig_t *csirep,
NR_NZP_CSI_RS_Resource_t *nzpcsi,
int *period, int *offset);
void nr_acknack_scheduling(int Mod_idP,
int UE_id,
frame_t frameP,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment