Commit 1bdab106 authored by hsum's avatar hsum

Add function to calculate number of maximum TDD periodicity

parent a2d6af56
......@@ -388,6 +388,14 @@ int get_nb_periods_per_frame(uint8_t tdd_period)
return nb_periods_per_frame;
}
int get_nb_max_tdd_periodicity(uint8_t mu, uint8_t tdd_period)
{
int nr_slots_frame[] = {10, 20, 40, 80, 160};
int slots = nr_slots_frame[mu];
int nb_periods_per_frame = get_nb_periods_per_frame(tdd_period);
return slots / nb_periods_per_frame;
}
void get_delta_arfcn(int i, uint32_t nrarfcn, uint64_t N_OFFs)
{
uint32_t delta_arfcn = nrarfcn - N_OFFs;
......
......@@ -208,6 +208,7 @@ void SLIV2SL(int SLIV,int *S,int *L);
int get_dmrs_port(int nl, uint16_t dmrs_ports);
uint16_t SL_to_bitmap(int startSymbolIndex, int nrOfSymbols);
int get_nb_periods_per_frame(uint8_t tdd_period);
int get_nb_max_tdd_periodicity(uint8_t mu, uint8_t tdd_period);
long rrc_get_max_nr_csrs(const int max_rbs, long b_SRS);
bool compare_relative_ul_channel_bw(int nr_band, int scs, int nb_ul, frame_type_t frame_type);
int get_supported_bw_mhz(frequency_range_t frequency_range, int scs, int nb_rb);
......
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