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
fee7c74f
Commit
fee7c74f
authored
Jul 23, 2024
by
Rúben Soares Silva
Committed by
Robert Schmidt
Nov 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ve copy function to common FAPI library
parent
3198b9fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
22 deletions
+25
-22
nfapi/open-nFAPI/fapi/inc/nr_fapi.h
nfapi/open-nFAPI/fapi/inc/nr_fapi.h
+2
-0
nfapi/open-nFAPI/fapi/inc/nr_fapi_p5_utils.h
nfapi/open-nFAPI/fapi/inc/nr_fapi_p5_utils.h
+0
-1
nfapi/open-nFAPI/fapi/src/nr_fapi.c
nfapi/open-nFAPI/fapi/src/nr_fapi.c
+23
-0
nfapi/open-nFAPI/fapi/src/nr_fapi_p5_utils.c
nfapi/open-nFAPI/fapi/src/nr_fapi_p5_utils.c
+0
-21
No files found.
nfapi/open-nFAPI/fapi/inc/nr_fapi.h
View file @
fee7c74f
...
...
@@ -66,6 +66,8 @@ typedef struct {
uint32_t
message_length
;
}
fapi_message_header_t
;
void
copy_vendor_extension_value
(
nfapi_vendor_extension_tlv_t
*
dst
,
const
nfapi_vendor_extension_tlv_t
*
src
);
bool
isFAPIMessageIDValid
(
uint16_t
id
);
int
check_nr_fapi_unpack_length
(
nfapi_nr_phy_msg_type_e
msgId
,
uint32_t
unpackedBufLen
);
...
...
nfapi/open-nFAPI/fapi/inc/nr_fapi_p5_utils.h
View file @
fee7c74f
...
...
@@ -25,7 +25,6 @@
#include "stdint.h"
#include "nr_fapi.h"
#include "nfapi/oai_integration/vendor_ext.h"
void
copy_vendor_extension_value
(
nfapi_vendor_extension_tlv_t
*
dst
,
const
nfapi_vendor_extension_tlv_t
*
src
);
bool
eq_param_request
(
const
nfapi_nr_param_request_scf_t
*
unpacked_req
,
const
nfapi_nr_param_request_scf_t
*
req
);
bool
eq_param_response
(
const
nfapi_nr_param_response_scf_t
*
unpacked_req
,
const
nfapi_nr_param_response_scf_t
*
req
);
...
...
nfapi/open-nFAPI/fapi/src/nr_fapi.c
View file @
fee7c74f
...
...
@@ -20,6 +20,29 @@
*/
#include "nr_fapi.h"
void
copy_vendor_extension_value
(
nfapi_vendor_extension_tlv_t
*
dst
,
const
nfapi_vendor_extension_tlv_t
*
src
)
{
nfapi_tl_t
*
dst_tlv
=
(
nfapi_tl_t
*
)
dst
;
nfapi_tl_t
*
src_tlv
=
(
nfapi_tl_t
*
)
src
;
switch
(
dst_tlv
->
tag
)
{
case
VENDOR_EXT_TLV_2_TAG
:
{
vendor_ext_tlv_2
*
dst_ve
=
(
vendor_ext_tlv_2
*
)
dst_tlv
;
vendor_ext_tlv_2
*
src_ve
=
(
vendor_ext_tlv_2
*
)
src_tlv
;
dst_ve
->
dummy
=
src_ve
->
dummy
;
}
break
;
case
VENDOR_EXT_TLV_1_TAG
:
{
vendor_ext_tlv_1
*
dst_ve
=
(
vendor_ext_tlv_1
*
)
dst_tlv
;
vendor_ext_tlv_1
*
src_ve
=
(
vendor_ext_tlv_1
*
)
src_tlv
;
dst_ve
->
dummy
=
src_ve
->
dummy
;
}
break
;
default:
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"Unknown Vendor Extension tag %d
\n
"
,
dst_tlv
->
tag
);
}
}
bool
isFAPIMessageIDValid
(
const
uint16_t
id
)
{
// SCF 222.10.04 Table 3-5 PHY API message types
...
...
nfapi/open-nFAPI/fapi/src/nr_fapi_p5_utils.c
View file @
fee7c74f
...
...
@@ -20,27 +20,6 @@
*/
#include "nr_fapi_p5_utils.h"
void
copy_vendor_extension_value
(
nfapi_vendor_extension_tlv_t
*
dst
,
const
nfapi_vendor_extension_tlv_t
*
src
)
{
nfapi_tl_t
*
dst_tlv
=
(
nfapi_tl_t
*
)
dst
;
nfapi_tl_t
*
src_tlv
=
(
nfapi_tl_t
*
)
src
;
switch
(
dst_tlv
->
tag
)
{
case
VENDOR_EXT_TLV_2_TAG
:
{
vendor_ext_tlv_2
*
dst_ve
=
(
vendor_ext_tlv_2
*
)
dst_tlv
;
vendor_ext_tlv_2
*
src_ve
=
(
vendor_ext_tlv_2
*
)
src_tlv
;
dst_ve
->
dummy
=
src_ve
->
dummy
;
}
break
;
case
VENDOR_EXT_TLV_1_TAG
:
{
vendor_ext_tlv_1
*
dst_ve
=
(
vendor_ext_tlv_1
*
)
dst_tlv
;
vendor_ext_tlv_1
*
src_ve
=
(
vendor_ext_tlv_1
*
)
src_tlv
;
dst_ve
->
dummy
=
src_ve
->
dummy
;
}
break
;
}
}
bool
eq_param_request
(
const
nfapi_nr_param_request_scf_t
*
unpacked_req
,
const
nfapi_nr_param_request_scf_t
*
req
)
{
EQ
(
unpacked_req
->
header
.
message_id
,
req
->
header
.
message_id
);
...
...
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