-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/fix_sched_ue_rem' into fix_sched…
…_ue_rem
- Loading branch information
Showing
51 changed files
with
723 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* | ||
* Copyright 2021-2024 Software Radio Systems Limited | ||
* | ||
* By using this file, you agree to the terms and conditions set | ||
* forth in the LICENSE file which can be found at the top level of | ||
* the distribution. | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "srsran/ran/slot_point.h" | ||
#include "srsran/ran/subcarrier_spacing.h" | ||
|
||
namespace srsran { | ||
|
||
/// Measurement Gap Repetition Period (MGRP) in msec, as per TS 38.331. | ||
enum class meas_gap_repetition_period : uint8_t { ms20 = 20, ms40 = 40, ms80 = 80, ms160 = 160 }; | ||
|
||
/// Measurement Gap Length (MGL) in msec, as per TS 38.331. | ||
enum class meas_gap_length : uint8_t { ms1dot5, ms3, ms3dot5, ms4, ms5dot5, ms6 }; | ||
|
||
/// Configuration of a Measurement Gap as per TS 38.331, GapConfig. | ||
struct meas_gap_config { | ||
/// Gap offset of the pattern in msec. Value must be between 0 and gap repetition period - 1. | ||
unsigned offset; | ||
/// Measurement Gap Length (MGL). | ||
meas_gap_length mgl; | ||
/// Measurement Gap Repetition Period (MGRP). | ||
meas_gap_repetition_period mgrp; | ||
}; | ||
|
||
/// Convert measurement gap length into a float in milliseconds. | ||
inline unsigned meas_gap_length_to_msec(meas_gap_length len) | ||
{ | ||
constexpr static std::array<float, 6> vals{1.5, 3, 3.5, 4, 5.5, 6}; | ||
return vals[static_cast<unsigned>(len)]; | ||
} | ||
|
||
/// Determines whether a slot is inside the measurement gap. | ||
inline bool is_inside_meas_gap(const meas_gap_config& gap, slot_point sl) | ||
{ | ||
unsigned period_slots = static_cast<uint8_t>(gap.mgrp) * sl.nof_slots_per_subframe(); | ||
unsigned length_slots = meas_gap_length_to_msec(gap.mgl) * sl.nof_slots_per_subframe(); | ||
unsigned slot_mod = sl.to_uint() % period_slots; | ||
return slot_mod <= length_slots; | ||
} | ||
|
||
} // namespace srsran |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# Copyright 2021-2024 Software Radio Systems Limited | ||
# | ||
# By using this file, you agree to the terms and conditions set | ||
# forth in the LICENSE file which can be found at the top level of | ||
# the distribution. | ||
# | ||
|
||
add_library(srsran_du_high_adapters | ||
mac_test_mode_adapter.cpp | ||
f1ap_test_mode_adapter.cpp | ||
mac_test_mode_helpers.cpp) | ||
target_link_libraries(srsran_du_high_adapters srslog srsran_support srsran_du_manager srsran_mac srsran_f1ap_du srsran_e2) |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.