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
e5347617
Commit
e5347617
authored
Jan 30, 2024
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating the name of psfch_pucch variable and clean up
parent
29766284
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
executables/nr-uesoftmodem.h
executables/nr-uesoftmodem.h
+3
-3
openair2/LAYER2/NR_MAC_UE/nr_ue_sci_slsch.c
openair2/LAYER2/NR_MAC_UE/nr_ue_sci_slsch.c
+14
-14
No files found.
executables/nr-uesoftmodem.h
View file @
e5347617
...
...
@@ -63,8 +63,8 @@
{"chest-time", CONFIG_HLP_CHESTTIME, 0, .iptr=&(nrUE_params.chest_time), .defintval=0, TYPE_INT, 0}, \
{"ue-timing-correction-disable", CONFIG_HLP_DISABLETIMECORR, PARAMFLAG_BOOL, .iptr=&(nrUE_params.no_timing_correction), .defintval=0, TYPE_INT, 0}, \
{"SLC", CONFIG_HLP_SLF, 0, .u64ptr=&(sidelink_frequency[0][0]), .defuintval=2600000000,TYPE_UINT64,0}, \
{"sync-ref",
CONFIG_HLP_SL_SYNCSOURCEUE, PARAMFLAG_BOOL, .uptr=&(nrUE_params.sync_ref), .defuintval=0,
TYPE_UINT32, 0}, \
{"
is_pucch_psfch", CONFIG_HLP_PSFCH, 0, .iptr=&(nrUE_params.is_pucch_psfch), .defintval=0,
TYPE_INT, 0}, \
{"sync-ref",
CONFIG_HLP_SL_SYNCSOURCEUE, PARAMFLAG_BOOL, .uptr=&(nrUE_params.sync_ref), .defuintval=0,
TYPE_UINT32, 0}, \
{"
send_psfch_with_pucch", CONFIG_HLP_PSFCH, 0, .iptr=&(nrUE_params.send_psfch_with_pucch), .defintval=0,
TYPE_INT, 0}, \
}
// clang-format on
...
...
@@ -87,7 +87,7 @@ typedef struct {
int
N_RB_DL
;
int
ssb_start_subcarrier
;
uint32_t
sync_ref
;
int
is_pucch_psf
ch
;
int
send_psfch_with_puc
ch
;
}
nrUE_params_t
;
extern
uint64_t
get_nrUE_optmask
(
void
);
extern
uint64_t
set_nrUE_optmask
(
uint64_t
bitmask
);
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_sci_slsch.c
View file @
e5347617
...
...
@@ -196,19 +196,19 @@ int get_nREDMRS(const NR_SL_ResourcePool_r16_t *sl_res_pool) {
}
void
fill_pssch_pscch_pdu
(
sl_nr_tx_config_pscch_pssch_pdu_t
*
nr_sl_pssch_pscch_pdu
,
const
NR_SL_BWP_ConfigCommon_r16_t
*
sl_bwp
,
const
NR_SL_BWP_ConfigCommon_r16_t
*
sl_bwp
,
const
NR_SL_ResourcePool_r16_t
*
sl_res_pool
,
nr_sci_pdu_t
*
sci_pdu
,
nr_sci_pdu_t
*
sci2_pdu
,
nr_sci_pdu_t
*
sci_pdu
,
nr_sci_pdu_t
*
sci2_pdu
,
uint16_t
slsch_pdu_length
,
const
nr_sci_format_t
format1
,
const
nr_sci_format_t
format2
)
{
int
pos
=
0
,
fsize
;
uint64_t
*
sci_payload
=
(
uint64_t
*
)
nr_sl_pssch_pscch_pdu
->
pscch_sci_payload
;
uint64_t
*
sci2_payload
=
(
uint64_t
*
)
nr_sl_pssch_pscch_pdu
->
sci2_payload
;
nr_sl_pssch_pscch_pdu
->
pscch_sci_payload_len
=
nr_sci_size
(
sl_res_pool
,
sci_pdu
,
format1
);
const
nr_sci_format_t
format1
,
const
nr_sci_format_t
format2
)
{
int
pos
=
0
,
fsize
;
uint64_t
*
sci_payload
=
(
uint64_t
*
)
nr_sl_pssch_pscch_pdu
->
pscch_sci_payload
;
uint64_t
*
sci2_payload
=
(
uint64_t
*
)
nr_sl_pssch_pscch_pdu
->
sci2_payload
;
nr_sl_pssch_pscch_pdu
->
pscch_sci_payload_len
=
nr_sci_size
(
sl_res_pool
,
sci_pdu
,
format1
);
nr_sl_pssch_pscch_pdu
->
sci2_payload_len
=
nr_sci_size
(
sl_res_pool
,
sci2_pdu
,
format2
);
int
sci_size
=
nr_sl_pssch_pscch_pdu
->
pscch_sci_payload_len
;
int
sci_size
=
nr_sl_pssch_pscch_pdu
->
pscch_sci_payload_len
;
int
sci2_size
=
nr_sl_pssch_pscch_pdu
->
sci2_payload_len
;
*
sci_payload
=
0
;
...
...
@@ -248,7 +248,7 @@ void fill_pssch_pscch_pdu(sl_nr_tx_config_pscch_pssch_pdu_t *nr_sl_pssch_pscch_p
if
(
sl_res_pool
->
sl_PSFCH_Config_r16
&&
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
&&
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
>
0
)
{
num_psfch_symbols
=
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
;
if
(
num_psfch_symbols
==
3
)
num_psfch_symbols
++
;
if
(
get_nrUE_params
()
->
is_pucch_psf
ch
)
num_psfch_symbols
=
0
;
if
(
get_nrUE_params
()
->
send_psfch_with_puc
ch
)
num_psfch_symbols
=
0
;
}
nr_sl_pssch_pscch_pdu
->
pssch_numsym
=
7
+*
sl_bwp
->
sl_BWP_Generic_r16
->
sl_LengthSymbols_r16
-
num_psfch_symbols
-
2
;
nr_sl_pssch_pscch_pdu
->
pssch_startsym
=
*
sl_bwp
->
sl_BWP_Generic_r16
->
sl_StartSymbol_r16
;
...
...
@@ -496,7 +496,7 @@ void config_pscch_pdu_rx(sl_nr_rx_config_pscch_pdu_t *nr_sl_pscch_pdu,
if
(
sl_res_pool
->
sl_PSFCH_Config_r16
&&
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
&&
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
>
0
)
{
num_psfch_symbols
=
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
;
if
(
num_psfch_symbols
==
3
)
num_psfch_symbols
++
;
if
(
get_nrUE_params
()
->
is_pucch_psf
ch
)
num_psfch_symbols
=
0
;
if
(
get_nrUE_params
()
->
send_psfch_with_puc
ch
)
num_psfch_symbols
=
0
;
}
nr_sl_pscch_pdu
->
pssch_numsym
=
7
+*
sl_bwp
->
sl_BWP_Generic_r16
->
sl_LengthSymbols_r16
-
num_psfch_symbols
-
2
;
//sci 1A length used to decode on PSCCH.
...
...
@@ -657,7 +657,7 @@ void config_pssch_slsch_pdu_rx(sl_nr_rx_config_pssch_pdu_t *nr_sl_pssch_pdu,
if
(
sl_res_pool
->
sl_PSFCH_Config_r16
&&
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
&&
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
>
0
)
{
num_psfch_symbols
=
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
;
if
(
num_psfch_symbols
==
3
)
num_psfch_symbols
++
;
if
(
get_nrUE_params
()
->
is_pucch_psf
ch
)
num_psfch_symbols
=
0
;
if
(
get_nrUE_params
()
->
send_psfch_with_puc
ch
)
num_psfch_symbols
=
0
;
}
int
pssch_numsym
=
7
+*
sl_bwp
->
sl_BWP_Generic_r16
->
sl_LengthSymbols_r16
-
num_psfch_symbols
-
2
;
uint16_t
l_subch
;
...
...
@@ -752,7 +752,7 @@ int config_pssch_sci_pdu_rx(sl_nr_rx_config_pssch_sci_pdu_t *nr_sl_pssch_sci_pdu
if
(
sl_res_pool
->
sl_PSFCH_Config_r16
&&
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
&&
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
>
0
)
{
num_psfch_symbols
=
*
sl_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
->
sl_PSFCH_Period_r16
;
if
(
num_psfch_symbols
==
3
)
num_psfch_symbols
++
;
if
(
get_nrUE_params
()
->
is_pucch_psf
ch
)
num_psfch_symbols
=
0
;
if
(
get_nrUE_params
()
->
send_psfch_with_puc
ch
)
num_psfch_symbols
=
0
;
}
nr_sl_pssch_sci_pdu
->
pssch_numsym
=
7
+*
sl_bwp
->
sl_BWP_Generic_r16
->
sl_LengthSymbols_r16
-
num_psfch_symbols
-
2
;
...
...
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