Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
1bdab106
Commit
1bdab106
authored
May 29, 2024
by
hsum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function to calculate number of maximum TDD periodicity
parent
a2d6af56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+8
-0
common/utils/nr/nr_common.h
common/utils/nr/nr_common.h
+1
-0
No files found.
common/utils/nr/nr_common.c
View file @
1bdab106
...
...
@@ -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
;
...
...
common/utils/nr/nr_common.h
View file @
1bdab106
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment