Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1.     void simulate_ul_pwr_meas_resp()
  2.     {
  3.  
  4.         // prepare response msg
  5.         pwr_resp.numOfPuschUe = UE_COUNT;
  6.         pwr_resp.numOfUeResp = UE_COUNT;
  7.         pwr_resp.numOfRssiRows = 1;
  8.         pwr_resp.numOfSinrRows = 1;
  9.  
  10.  
  11.         float* pusch_sinr_ptr = phydata::GetPuschUeSinrArray(pwr_resp);
  12.         float* pusch_rssi_ptr = phydata::GetPuschUeRssiArray(pwr_resp);
  13.  
  14.         set_m_configuration();
  15.         for (int cell_idx = 0; cell_idx < CELL_COUNT; cell_idx ++)
  16.         {
  17.             // fill all ue responses
  18.             for (int ue_idx = 0; ue_idx < UE_COUNT; ue_idx ++)
  19.             {
  20.                 pusch_sinr_ptr[ue_idx] = rssi[cell_idx][ue_idx];
  21.                 pusch_rssi_ptr[ue_idx] = sinr[cell_idx][ue_idx];
  22.             }
  23.             pwr_resp.lnCelId = cell_idx + 1;
  24.             // pass response msg to tested object
  25.             m_tput_handler->process_ul_pwr_meas_resp(pwr_resp);
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement