preventing include of log.h in nr_common.h by moving function in nr_common.c
This commit is contained in:
@@ -796,6 +796,19 @@ int get_subband_size(int NPRB,int size) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void warn_higher_threequarter_fs(const int n_rb, const int mu)
|
||||||
|
{
|
||||||
|
LOG_W(NR_PHY,
|
||||||
|
"3/4 sampling is not possible for current PRB size: %d and numerology: %d.\n "
|
||||||
|
"So 6/4 sampling is chosen to support x3xx type USRPs.\n "
|
||||||
|
"Note that this sampling rate increases fronthaul traffic, FFT buffer size and processing time by a factor of two compared "
|
||||||
|
"to 3/4 sampling rate.\n "
|
||||||
|
"Some PRACH configuration might not be supported with 6/4 FFT size.\n "
|
||||||
|
"Consider reducing the PRB size that would fit within the FFT size of 3/4 sampling\n",
|
||||||
|
n_rb,
|
||||||
|
mu);
|
||||||
|
}
|
||||||
|
|
||||||
void get_samplerate_and_bw(int mu,
|
void get_samplerate_and_bw(int mu,
|
||||||
int n_rb,
|
int n_rb,
|
||||||
int8_t threequarter_fs,
|
int8_t threequarter_fs,
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "assertions.h"
|
#include "assertions.h"
|
||||||
#include "common/utils/utils.h"
|
#include "common/utils/utils.h"
|
||||||
#include "common/utils/LOG/log.h"
|
|
||||||
|
|
||||||
#define MAX_SI_GROUPS 3
|
#define MAX_SI_GROUPS 3
|
||||||
#define NR_MAX_PDSCH_TBS 3824
|
#define NR_MAX_PDSCH_TBS 3824
|
||||||
@@ -273,18 +272,7 @@ static __attribute__((always_inline)) inline int count_bits64_with_mask(uint64_t
|
|||||||
return count_bits64(v & mask);
|
return count_bits64(v & mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void warn_higher_threequarter_fs(const int n_rb, const int mu)
|
void warn_higher_threequarter_fs(const int n_rb, const int mu);
|
||||||
{
|
|
||||||
LOG_W(PHY,
|
|
||||||
"3/4 sampling is not possible for current PRB size: %d and numerology: %d.\n "
|
|
||||||
"So 6/4 sampling is chosen to support x3xx type USRPs.\n "
|
|
||||||
"Note that this sampling rate increases fronthaul traffic, FFT buffer size and processing time by a factor of two compared "
|
|
||||||
"to 3/4 sampling rate.\n "
|
|
||||||
"Some PRACH configuration might not be supported with 6/4 FFT size.\n "
|
|
||||||
"Consider reducing the PRB size that would fit within the FFT size of 3/4 sampling\n",
|
|
||||||
n_rb,
|
|
||||||
mu);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t from_nrarfcn(int nr_bandP, uint8_t scs_index, uint32_t dl_nrarfcn);
|
uint64_t from_nrarfcn(int nr_bandP, uint8_t scs_index, uint32_t dl_nrarfcn);
|
||||||
uint32_t to_nrarfcn(int nr_bandP, uint64_t dl_CarrierFreq, uint8_t scs_index, uint32_t bw);
|
uint32_t to_nrarfcn(int nr_bandP, uint64_t dl_CarrierFreq, uint8_t scs_index, uint32_t bw);
|
||||||
|
|||||||
Reference in New Issue
Block a user