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
d6da7a56
Commit
d6da7a56
authored
Oct 25, 2025
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vrtsim: add stubs to beam functions
Add stubbed versions of _beam_ apis to vrtsim.
parent
b1061760
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
radio/vrtsim/vrtsim.c
radio/vrtsim/vrtsim.c
+25
-0
No files found.
radio/vrtsim/vrtsim.c
View file @
d6da7a56
...
...
@@ -519,6 +519,18 @@ static int vrtsim_write(openair0_device *device, openair0_timestamp timestamp, v
:
vrtsim_write_internal
(
vrtsim_state
,
timestamp
,
(
c16_t
*
)
samplesVoid
[
0
],
nsamps
,
0
,
flags
,
0
);
}
static
int
vrtsim_write_beams
(
openair0_device
*
device
,
openair0_timestamp
timestamp
,
void
***
buff
,
int
nsamps
,
int
nb_antennas_tx
,
int
num_beams
,
int
flags
)
{
vrtsim_write
(
device
,
timestamp
,
(
void
**
)
buff
[
0
],
nsamps
,
nb_antennas_tx
,
flags
);
return
nsamps
;
}
static
int
vrtsim_read
(
openair0_device
*
device
,
openair0_timestamp
*
ptimestamp
,
void
**
samplesVoid
,
int
nsamps
,
int
nbAnt
)
{
vrtsim_state_t
*
vrtsim_state
=
(
vrtsim_state_t
*
)
device
->
priv
;
...
...
@@ -628,6 +640,16 @@ static int vrtsim_set_freq(openair0_device *device, openair0_config_t *openair0_
return
0
;
}
static
int
vrtsim_set_beams
(
openair0_device
*
device
,
uint64_t
beam_map
,
openair0_timestamp
timestamp
)
{
return
0
;
}
static
int
vrtsim_set_beams2
(
openair0_device
*
device
,
int
*
beam_ids
,
int
num_beams
,
openair0_timestamp
timestamp
)
{
return
0
;
}
__attribute__
((
__visibility__
(
"default"
)))
int
device_init
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
)
{
vrtsim_state_t
*
vrtsim_state
=
calloc_or_fail
(
1
,
sizeof
(
vrtsim_state_t
));
...
...
@@ -643,6 +665,9 @@ __attribute__((__visibility__("default"))) int device_init(openair0_device *devi
device
->
trx_set_gains_func
=
vrtsim_stub2
;
device
->
trx_write_func
=
vrtsim_write
;
device
->
trx_read_func
=
vrtsim_read
;
device
->
trx_write_beams_func
=
vrtsim_write_beams
;
device
->
trx_set_beams
=
vrtsim_set_beams
;
device
->
trx_set_beams2
=
vrtsim_set_beams2
;
device
->
type
=
RFSIMULATOR
;
device
->
openair0_cfg
=
&
openair0_cfg
[
0
];
...
...
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