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
78587d6c
Commit
78587d6c
authored
Oct 24, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/getopt-int' into integration_2024_w43 (!3068)
getopt() returns int
parents
1a834a70
cf985460
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
18 additions
and
20 deletions
+18
-20
openair1/PHY/CODING/viterbi_lte.c
openair1/PHY/CODING/viterbi_lte.c
+1
-1
openair1/PHY/TOOLS/smbv.c
openair1/PHY/TOOLS/smbv.c
+2
-1
openair1/SIMULATION/LTE_PHY/framegen.c
openair1/SIMULATION/LTE_PHY/framegen.c
+1
-3
openair1/SIMULATION/LTE_PHY/pbchsim.c
openair1/SIMULATION/LTE_PHY/pbchsim.c
+1
-1
openair1/SIMULATION/LTE_PHY/pdcchsim.c
openair1/SIMULATION/LTE_PHY/pdcchsim.c
+1
-1
openair1/SIMULATION/LTE_PHY/prachsim.c
openair1/SIMULATION/LTE_PHY/prachsim.c
+1
-1
openair1/SIMULATION/LTE_PHY/pucchsim.c
openair1/SIMULATION/LTE_PHY/pucchsim.c
+1
-1
openair1/SIMULATION/LTE_PHY/scansim.c
openair1/SIMULATION/LTE_PHY/scansim.c
+1
-1
openair1/SIMULATION/LTE_PHY/syncsim.c
openair1/SIMULATION/LTE_PHY/syncsim.c
+1
-1
openair1/SIMULATION/NR_PHY/dlschsim.c
openair1/SIMULATION/NR_PHY/dlschsim.c
+1
-1
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+1
-1
openair1/SIMULATION/NR_PHY/prachsim.c
openair1/SIMULATION/NR_PHY/prachsim.c
+1
-1
openair1/SIMULATION/NR_PHY/psbchsim.c
openair1/SIMULATION/NR_PHY/psbchsim.c
+1
-1
openair1/SIMULATION/NR_PHY/pucchsim.c
openair1/SIMULATION/NR_PHY/pucchsim.c
+1
-1
openair1/SIMULATION/NR_PHY/ulschsim.c
openair1/SIMULATION/NR_PHY/ulschsim.c
+1
-2
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+1
-1
openair2/UTIL/OMG/omg.c
openair2/UTIL/OMG/omg.c
+1
-1
No files found.
openair1/PHY/CODING/viterbi_lte.c
View file @
78587d6c
...
...
@@ -340,7 +340,7 @@ int test_viterbi(uint8_t dabflag)
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
c
;
uint8_t
dabflag
=
0
;
while
((
c
=
getopt
(
argc
,
argv
,
"d"
))
!=
-
1
)
{
...
...
openair1/PHY/TOOLS/smbv.c
View file @
78587d6c
...
...
@@ -567,7 +567,7 @@ void help (void)
int
main
(
int
argc
,
char
**
argv
)
{
char
c
,
smbv_ip
[
16
],
smbv_fname
[
256
];
char
smbv_ip
[
16
],
smbv_fname
[
256
];
extern
char
*
optarg
;
int
i
;
...
...
@@ -575,6 +575,7 @@ int main(int argc,char **argv)
strcpy
(
smbv_ip
,
DEFAULT_SMBV_IP
);
strcpy
(
smbv_fname
,
DEFAULT_SMBV_FNAME
);
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"hW:"
))
!=
-
1
)
{
switch
(
c
)
{
case
'W'
:
...
...
openair1/SIMULATION/LTE_PHY/framegen.c
View file @
78587d6c
...
...
@@ -461,9 +461,6 @@ void lte_param_init( unsigned char transmission_mode,
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
l
,
aa
,
aarx
,
sector
;
unsigned
char
pbch_pdu
[
6
];
...
...
@@ -504,6 +501,7 @@ int main(int argc, char **argv)
logInit
();
g_log
->
log_component
[
PHY
].
level
=
LOG_DEBUG
;
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"hpFb:n:m:x:N:R:"
))
!=
-
1
)
{
switch
(
c
)
{
case
'n'
:
...
...
openair1/SIMULATION/LTE_PHY/pbchsim.c
View file @
78587d6c
...
...
@@ -57,7 +57,6 @@ int32_t dummy3[2048*14];
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
l
,
aa
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=-
2
.
0
,
snr1
;
uint8_t
snr1set
=
0
;
...
...
@@ -104,6 +103,7 @@ int main(int argc, char **argv) {
logInit
();
number_of_cards
=
1
;
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"f:hA:pf:g:i:j:n:s:S:t:x:y:z:N:F:GR:O:dP:"
))
!=
-
1
)
{
switch
(
c
)
{
case
'f'
:
...
...
openair1/SIMULATION/LTE_PHY/pdcchsim.c
View file @
78587d6c
...
...
@@ -374,7 +374,6 @@ DCI_PDU *get_dci(LTE_DL_FRAME_PARMS *lte_frame_parms,uint8_t log2L, uint8_t log2
extern
int
QPSK
[
4
],
QPSK2
[
4
];
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
l
,
aa
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=-
2
.
0
,
snr1
;
int
**
txdata
;
...
...
@@ -425,6 +424,7 @@ int main(int argc, char **argv) {
cpuf
=
get_cpu_freq_GHz
();
logInit
();
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"hapFg:R:c:n:s:x:y:z:L:M:N:I:f:i:S:P:Y"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
...
...
openair1/SIMULATION/LTE_PHY/prachsim.c
View file @
78587d6c
...
...
@@ -45,7 +45,6 @@ double cpuf;
void
dump_prach_config
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
subframe
);
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
aa
,
aarx
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=-
2
.
0
,
snr1
=
0
.
0
,
ue_speed0
=
0
.
0
,
ue_speed1
=
0
.
0
;
uint8_t
snr1set
=
0
;
...
...
@@ -85,6 +84,7 @@ int main(int argc, char **argv) {
logInit
();
number_of_cards
=
1
;
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"hHaA:Cr:p:g:n:s:S:t:x:y:v:V:z:N:F:d:Z:L:R:E"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
...
...
openair1/SIMULATION/LTE_PHY/pucchsim.c
View file @
78587d6c
...
...
@@ -45,7 +45,6 @@ PHY_VARS_UE *UE;
double
cpuf
;
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
l
,
aa
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=-
2
.
0
,
snr1
=
0
.
0
;
uint8_t
snr1set
=
0
;
...
...
@@ -88,6 +87,7 @@ int main(int argc, char **argv) {
number_of_cards
=
1
;
cpuf
=
get_cpu_freq_GHz
();
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"har:pf:g:n:s:S:x:y:z:N:F:T:R:"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
...
...
openair1/SIMULATION/LTE_PHY/scansim.c
View file @
78587d6c
...
...
@@ -57,7 +57,6 @@ mod_sym_t dummy3[2048*14];
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
l
,
aa
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=-
2
.
0
,
snr1
;
uint8_t
snr1set
=
0
;
...
...
@@ -103,6 +102,7 @@ int main(int argc, char **argv) {
number_of_cards
=
1
;
openair_daq_vars
.
rx_rf_mode
=
1
;
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"f:hpf:g:n:s:S:t:x:y:z:N:F:GdP:"
))
!=
-
1
)
{
switch
(
c
)
{
case
'f'
:
...
...
openair1/SIMULATION/LTE_PHY/syncsim.c
View file @
78587d6c
...
...
@@ -304,7 +304,6 @@ void lte_param_init(unsigned char N_tx, unsigned char N_rx,unsigned char transmi
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
iout
,
l
,
aa
,
aarx
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=
10
.
0
,
snr1
=
11
.
0
;
uint8_t
snr1set
=
0
;
...
...
@@ -377,6 +376,7 @@ int main(int argc, char **argv) {
rxdata[0] = (int *)malloc16(FRAME_LENGTH_BYTES);
rxdata[1] = (int *)malloc16(FRAME_LENGTH_BYTES);
*/
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"aehc:f:g:i:j:n:r:s:t:x:y:z:A:F:N:O:R:S:ZYDT:C:G:dB:U:u"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
...
...
openair1/SIMULATION/NR_PHY/dlschsim.c
View file @
78587d6c
...
...
@@ -101,7 +101,6 @@ configmodule_interface_t *uniqCfg = NULL;
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
;
double
SNR
,
SNR_lin
,
snr0
=
-
2
.
0
,
snr1
=
2
.
0
;
double
snr_step
=
0
.
1
;
...
...
@@ -146,6 +145,7 @@ int main(int argc, char **argv)
// logInit();
randominit
(
0
);
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"--:O:df:hpVg:i:j:n:l:m:r:s:S:y:z:M:N:F:R:P:L:X:"
))
!=
-
1
)
{
/* ignore long options starting with '--' and their arguments that are handled by configmodule */
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
78587d6c
...
...
@@ -177,7 +177,6 @@ void nr_phy_config_request_sim_pbchsim(PHY_VARS_gNB *gNB,
configmodule_interface_t
*
uniqCfg
=
NULL
;
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
,
aa
,
start_symbol
;
double
sigma2
,
sigma2_dB
=
10
,
SNR
,
snr0
=-
2
.
0
,
snr1
=
2
.
0
;
double
cfo
=
0
;
...
...
@@ -246,6 +245,7 @@ int main(int argc, char **argv)
exit_fun
(
"[NR_PBCHSIM] Error, configuration module init failed
\n
"
);
}
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"--:O:c:F:g:hIL:m:M:n:N:o:P:r:R:s:S:x:y:z:"
))
!=
-
1
)
{
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
...
...
openair1/SIMULATION/NR_PHY/prachsim.c
View file @
78587d6c
...
...
@@ -117,7 +117,6 @@ int NB_UE_INST = 1;
configmodule_interface_t
*
uniqCfg
=
NULL
;
int
main
(
int
argc
,
char
**
argv
){
char
c
;
get_softmodem_params
()
->
sl_mode
=
0
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=
-
2
.
0
,
snr1
=
0
.
0
,
ue_speed0
=
0
.
0
,
ue_speed1
=
0
.
0
;
double
**
s_re
,
**
s_im
,
**
r_re
,
**
r_im
,
iqim
=
0
.
0
,
delay_avg
=
0
,
ue_speed
=
0
,
fs
=-
1
,
bw
;
...
...
@@ -155,6 +154,7 @@ int main(int argc, char **argv){
randominit
(
0
);
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"--:O:hHaA:Cc:l:r:p:g:m:n:s:S:t:x:y:v:V:z:N:F:d:Z:L:R:E"
))
!=
-
1
)
{
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
...
...
openair1/SIMULATION/NR_PHY/psbchsim.c
View file @
78587d6c
...
...
@@ -315,7 +315,6 @@ double cpuf;
configmodule_interface_t
*
uniqCfg
=
NULL
;
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
test_freqdomain_loopback
=
0
,
test_slss_search
=
0
;
int
frame
=
5
,
slot
=
10
,
frame_tx
=
0
,
slot_tx
=
0
;
int
loglvl
=
OAILOG_INFO
;
...
...
@@ -343,6 +342,7 @@ int main(int argc, char **argv)
randominit
(
0
);
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"--:O:c:hn:o:s:FIL:N:R:S:T:"
))
!=
-
1
)
{
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
...
...
openair1/SIMULATION/NR_PHY/pucchsim.c
View file @
78587d6c
...
...
@@ -97,7 +97,6 @@ nrUE_params_t *get_nrUE_params(void) {
configmodule_interface_t
*
uniqCfg
=
NULL
;
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
;
//,l;
double
sigma2
,
sigma2_dB
=
10
,
SNR
,
snr0
=-
2
.
0
,
snr1
=
2
.
0
;
double
cfo
=
0
;
...
...
@@ -155,6 +154,7 @@ int main(int argc, char **argv)
randominit
(
0
);
logInit
();
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"--:O:f:hA:f:g:i:I:P:B:b:t:T:m:n:r:o:s:S:x:y:z:N:F:GR:IL:q:cd:"
))
!=
-
1
)
{
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
...
...
openair1/SIMULATION/NR_PHY/ulschsim.c
View file @
78587d6c
...
...
@@ -121,7 +121,6 @@ nrUE_params_t *get_nrUE_params(void) {
configmodule_interface_t
*
uniqCfg
=
NULL
;
int
main
(
int
argc
,
char
**
argv
)
{
char
c
;
int
i
;
double
SNR
,
snr0
=
-
2
.
0
,
snr1
=
2
.
0
,
SNR_lin
;
double
snr_step
=
0
.
1
;
...
...
@@ -165,7 +164,7 @@ int main(int argc, char **argv)
//logInit();
randominit
(
0
);
//while ((c = getopt(argc, argv, "--:df:hpg:i:j:n:l:m:r:s:S:y:z:M:N:F:R:P:")) != -1) {
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"--:O:hg:n:s:S:py:z:M:N:R:F:m:l:q:r:W:"
))
!=
-
1
)
{
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
78587d6c
...
...
@@ -145,7 +145,6 @@ int main(int argc, char *argv[])
{
FILE
*
csv_file
=
NULL
;
char
*
filename_csv
=
NULL
;
char
c
;
int
i
;
double
SNR
,
snr0
=
-
2
.
0
,
snr1
=
2
.
0
;
double
sigma
,
sigma_dB
;
...
...
@@ -224,6 +223,7 @@ int main(int argc, char *argv[])
/* initialize the sin-cos table */
InitSinLUT
();
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"--:O:a:b:c:d:ef:g:h:i:k:m:n:op:q:r:s:t:u:v:w:y:z:C:F:G:H:I:M:N:PR:S:T:U:L:ZW:E:X:"
))
!=
-
1
)
{
/* ignore long options starting with '--', option '-O' and their arguments that are handled by configmodule */
...
...
openair2/UTIL/OMG/omg.c
View file @
78587d6c
...
...
@@ -423,7 +423,7 @@ usage (void) {
int
get_options
(
int
argc
,
char
*
argv
[])
{
int
node_t
;
char
tag
;
int
tag
;
while
((
tag
=
getopt
(
argc
,
argv
,
...
...
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