BG at MAC as part of new FAPI version

This commit is contained in:
francescomani
2022-07-28 15:10:03 +02:00
parent 04a09c999c
commit 478ea7ab6c
11 changed files with 23 additions and 17 deletions
-6
View File
@@ -495,9 +495,3 @@ void SLIV2SL(int SLIV,int *S,int *L) {
}
}
int get_BG(uint32_t A, float code_rate) {
if ((A <=292) || ((A<=3824) && (code_rate <= 0.6667)) || code_rate <= 0.25)
return 2;
else
return 1;
}
-1
View File
@@ -76,7 +76,6 @@ uint16_t SL_to_bitmap(int startSymbolIndex, int nrOfSymbols);
int get_nb_periods_per_frame(uint8_t tdd_period);
int get_supported_band_index(int scs, int band, int n_rbs);
long rrc_get_max_nr_csrs(uint8_t max_rbs, long b_SRS);
int get_BG(uint32_t A, float code_rate);
#define CEILIDIV(a,b) ((a+b-1)/b)
#define ROUNDIDIV(a,b) (((a<<1)+b)/(b<<1))