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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
littleBu
OpenXG-RAN
Commits
18799ef4
Commit
18799ef4
authored
Sep 17, 2024
by
Rúben Soares Silva
Committed by
Robert Schmidt
Nov 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove cast in pack_nr_slot_indication
Add utility functions related to SLOT.indication
parent
75f213ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
nfapi/open-nFAPI/fapi/inc/nr_fapi_p7_utils.h
nfapi/open-nFAPI/fapi/inc/nr_fapi_p7_utils.h
+3
-0
nfapi/open-nFAPI/fapi/src/nr_fapi_p7_utils.c
nfapi/open-nFAPI/fapi/src/nr_fapi_p7_utils.c
+24
-0
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
+1
-1
No files found.
nfapi/open-nFAPI/fapi/inc/nr_fapi_p7_utils.h
View file @
18799ef4
...
...
@@ -37,11 +37,14 @@
bool
eq_dl_tti_request
(
const
nfapi_nr_dl_tti_request_t
*
a
,
const
nfapi_nr_dl_tti_request_t
*
b
);
bool
eq_ul_tti_request
(
const
nfapi_nr_ul_tti_request_t
*
a
,
const
nfapi_nr_ul_tti_request_t
*
b
);
bool
eq_slot_indication
(
const
nfapi_nr_slot_indication_scf_t
*
a
,
const
nfapi_nr_slot_indication_scf_t
*
b
);
void
free_dl_tti_request
(
nfapi_nr_dl_tti_request_t
*
msg
);
void
free_ul_tti_request
(
nfapi_nr_ul_tti_request_t
*
msg
);
void
free_slot_indication
(
nfapi_nr_slot_indication_scf_t
*
msg
);
void
copy_dl_tti_request
(
const
nfapi_nr_dl_tti_request_t
*
src
,
nfapi_nr_dl_tti_request_t
*
dst
);
void
copy_ul_tti_request
(
const
nfapi_nr_ul_tti_request_t
*
src
,
nfapi_nr_ul_tti_request_t
*
dst
);
void
copy_slot_indication
(
const
nfapi_nr_slot_indication_scf_t
*
src
,
nfapi_nr_slot_indication_scf_t
*
dst
);
#endif // OPENAIRINTERFACE_NR_FAPI_P7_UTILS_H
nfapi/open-nFAPI/fapi/src/nr_fapi_p7_utils.c
View file @
18799ef4
...
...
@@ -487,6 +487,16 @@ bool eq_ul_tti_request(const nfapi_nr_ul_tti_request_t *a, const nfapi_nr_ul_tti
return
true
;
}
bool
eq_slot_indication
(
const
nfapi_nr_slot_indication_scf_t
*
a
,
const
nfapi_nr_slot_indication_scf_t
*
b
)
{
EQ
(
a
->
header
.
message_id
,
b
->
header
.
message_id
);
EQ
(
a
->
header
.
message_length
,
b
->
header
.
message_length
);
EQ
(
a
->
sfn
,
b
->
sfn
);
EQ
(
a
->
slot
,
b
->
slot
);
return
true
;
}
void
free_dl_tti_request
(
nfapi_nr_dl_tti_request_t
*
msg
)
{
if
(
msg
->
vendor_extension
)
{
...
...
@@ -508,6 +518,11 @@ void free_ul_tti_request(nfapi_nr_ul_tti_request_t *msg)
}
}
void
free_slot_indication
(
nfapi_nr_slot_indication_scf_t
*
msg
)
{
// Nothing to free
}
static
void
copy_dl_tti_beamforming
(
const
nfapi_nr_tx_precoding_and_beamforming_t
*
src
,
nfapi_nr_tx_precoding_and_beamforming_t
*
dst
)
{
...
...
@@ -967,3 +982,12 @@ void copy_ul_tti_request(const nfapi_nr_ul_tti_request_t *src, nfapi_nr_ul_tti_r
}
}
}
void
copy_slot_indication
(
const
nfapi_nr_slot_indication_scf_t
*
src
,
nfapi_nr_slot_indication_scf_t
*
dst
)
{
dst
->
header
.
message_id
=
src
->
header
.
message_id
;
dst
->
header
.
message_length
=
src
->
header
.
message_length
;
dst
->
sfn
=
src
->
sfn
;
dst
->
slot
=
src
->
slot
;
}
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
View file @
18799ef4
...
...
@@ -2648,7 +2648,7 @@ uint8_t pack_nr_slot_indication(void *msg, uint8_t **ppWritePackedMsg, uint8_t *
{
nfapi_nr_slot_indication_scf_t
*
pNfapiMsg
=
(
nfapi_nr_slot_indication_scf_t
*
)
msg
;
if
(
!
(
push16
(
(
uint16_t
)
pNfapiMsg
->
sfn
,
ppWritePackedMsg
,
end
)
&&
push16
((
uint16_t
)
pNfapiMsg
->
slot
,
ppWritePackedMsg
,
end
)))
if
(
!
(
push16
(
pNfapiMsg
->
sfn
,
ppWritePackedMsg
,
end
)
&&
push16
(
pNfapiMsg
->
slot
,
ppWritePackedMsg
,
end
)))
return
0
;
return
1
;
...
...
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