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
Michael Black
OpenXG-RAN
Commits
324fee0d
Commit
324fee0d
authored
Mar 12, 2014
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5152
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
388ad205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
targets/PROJECTS/CORRIDOR/tx_sig_ca.m
targets/PROJECTS/CORRIDOR/tx_sig_ca.m
+70
-0
No files found.
targets/PROJECTS/CORRIDOR/tx_sig_ca.m
0 → 100644
View file @
324fee0d
limeparms
;
freq
=
2.6e9
;
num_cards
=
oarf_get_num_detected_cards
;
% common parameters
rf_local
=
rf_local
*
[
1
1
1
1
];
rf_rxdc
=
rf_rxdc
*
[
1
1
1
1
];
rf_vcocal
=
rf_vcocal_19G
*
[
1
1
1
1
];
if
(
num_cards
>
0
)
% card 0: 20MHz
card
=
0
;
active_rf
=
[
1
0
0
0
];
autocal
=
[
1
1
1
1
];
resampling_factor
=
[
0
0
0
0
];
rf_mode
=
(
RXEN
+
TXEN
+
TXLPFNORM
+
TXLPFEN
+
TXLPF10
+
RXLPFNORM
+
RXLPFEN
+
RXLPF10
+
LNA1ON
+
LNAMax
+
RFBBNORM
)
*
active_rf
;
rf_mode
=
rf_mode
+
((
DMAMODE_RX
+
DMAMODE_TX
)
*
active_rf
);
freq_rx
=
(
freq
-
10e6
)
*
active_rf
;
freq_tx
=
freq_rx
;
tx_gain
=
10
*
active_rf
;
%[1 1 1 1];
rx_gain
=
0
*
active_rf
;
%1 1 1 1];
eNBflag
=
0
;
tdd_config
=
DUPLEXMODE_FDD
+
TXRXSWITCH_TESTTX
;
%tdd_config = DUPLEXMODE_FDD + TXRXSWITCH_LSB;
if
(
num_cards
>
1
)
syncmode
=
SYNCMODE_MASTER
;
else
syncmode
=
SYNCMODE_FREE
;
end
rffe_rxg_low
=
31
*
active_rf
;
%[1 1 1 1];
rffe_rxg_final
=
63
*
active_rf
;
%[1 1 1 1];
rffe_band
=
B19G_TDD
*
active_rf
;
%[1 1 1 1];
oarf_config_exmimo
(
card
,
freq_rx
,
freq_tx
,
tdd_config
,
syncmode
,
rx_gain
,
tx_gain
,
eNBflag
,
rf_mode
,
rf_rxdc
,
rf_local
,
rf_vcocal
,
rffe_rxg_low
,
rffe_rxg_final
,
rffe_band
,
autocal
,
resampling_factor
)
end
if
(
num_cards
>
1
)
% card 1: 10MHz
card
=
1
;
active_rf
=
[
1
1
0
0
];
autocal
=
[
1
1
1
1
];
resampling_factor
=
[
1
1
1
1
];
rf_mode
=
(
RXEN
+
TXEN
+
TXLPFNORM
+
TXLPFEN
+
TXLPF5
+
RXLPFNORM
+
RXLPFEN
+
RXLPF5
+
LNA1ON
+
LNAMax
+
RFBBNORM
)
*
active_rf
;
rf_mode
=
rf_mode
+
((
DMAMODE_RX
+
DMAMODE_TX
)
*
active_rf
);
freq_rx
=
(
freq
+
5e6
)
*
active_rf
;
freq_tx
=
freq_rx
;
tx_gain
=
13
*
active_rf
;
%[1 1 1 1];
rx_gain
=
0
*
active_rf
;
%1 1 1 1];
eNBflag
=
0
;
tdd_config
=
DUPLEXMODE_FDD
+
TXRXSWITCH_TESTTX
;
%tdd_config = DUPLEXMODE_FDD + TXRXSWITCH_LSB;
syncmode
=
SYNCMODE_SLAVE
;
rffe_rxg_low
=
31
*
active_rf
;
%[1 1 1 1];
rffe_rxg_final
=
63
*
active_rf
;
%[1 1 1 1];
rffe_band
=
B19G_TDD
*
active_rf
;
%[1 1 1 1];
oarf_config_exmimo
(
card
,
freq_rx
,
freq_tx
,
tdd_config
,
syncmode
,
rx_gain
,
tx_gain
,
eNBflag
,
rf_mode
,
rf_rxdc
,
rf_local
,
rf_vcocal
,
rffe_rxg_low
,
rffe_rxg_final
,
rffe_band
,
autocal
,
resampling_factor
)
end
amp
=
pow2
(
14
)
-
1
;
s1p
=
2
*
floor
(
amp
*
(
s1
.
/
max
([
real
(
s1
)
imag
(
s1
)])));
s2p
=
2
*
floor
(
amp
*
(
s2
.
/
max
([
real
(
s2
)
imag
(
s2
)])));
if
(
num_cards
>
1
)
oarf_send_frame
(
1
,
repmat
(
s2p
,
4
,
1
)
.'
,
16
);
end
oarf_send_frame
(
0
,
repmat
(
s1p
,
4
,
1
)
.'
,
16
);
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