Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gr-bladeRF-cdc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ELEN90089 CDC
gr-bladeRF-cdc
Commits
e950c208
Commit
e950c208
authored
Jun 13, 2021
by
Sergey Musikhin
Browse files
Options
Downloads
Patches
Plain Diff
x40/x115 sampling
parent
96e9234d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
grc/gen_bladerf_blocks.py
+10
-0
10 additions, 0 deletions
grc/gen_bladerf_blocks.py
lib/bladerf/bladerf_common.cc
+10
-0
10 additions, 0 deletions
lib/bladerf/bladerf_common.cc
with
20 additions
and
0 deletions
grc/gen_bladerf_blocks.py
+
10
−
0
View file @
e950c208
...
@@ -131,6 +131,15 @@ parameters:
...
@@ -131,6 +131,15 @@ parameters:
option_labels: [
'
Internal
'
,
'
External 1pps
'
,
'
External 10 MHz
'
]
option_labels: [
'
Internal
'
,
'
External 1pps
'
,
'
External 10 MHz
'
]
hide: part
hide: part
- id: sampling
category: x40/x115
label:
'
sampling
'
dtype: enum
default:
'
internal
'
options: [
'
internal
'
,
'
external
'
]
option_labels: [
'
Internal
'
,
'
External
'
]
hide: part
- id: lpf_mode
- id: lpf_mode
label:
'
LPF mode
'
label:
'
LPF mode
'
category: x40/x115
category: x40/x115
...
@@ -196,6 +205,7 @@ templates:
...
@@ -196,6 +205,7 @@ templates:
+
"
,dac=
"
+ str(${
'
$
'
}{dac})
+
"
,dac=
"
+ str(${
'
$
'
}{dac})
+
"
,xb200=
"
+
'
${
'
$
'
}{xb200}
'
+
"
,xb200=
"
+
'
${
'
$
'
}{xb200}
'
+
"
,tamer=
"
+
'
${
'
$
'
}{tamer}
'
+
"
,tamer=
"
+
'
${
'
$
'
}{tamer}
'
+
"
,sampling=
"
+
'
${
'
$
'
}{sampling}
'
+
"
,lpf_mode=
"
+
'
${
'
$
'
}{lpf_mode}
'
+
"
,lpf_mode=
"
+
'
${
'
$
'
}{lpf_mode}
'
+
"
,trigger0=
"
+
'
${
'
$
'
}{trigger0}
'
+
"
,trigger0=
"
+
'
${
'
$
'
}{trigger0}
'
+
"
,trigger_role0=
"
+
'
${
'
$
'
}{trigger_role0}
'
+
"
,trigger_role0=
"
+
'
${
'
$
'
}{trigger_role0}
'
...
...
This diff is collapsed.
Click to expand it.
lib/bladerf/bladerf_common.cc
+
10
−
0
View file @
e950c208
...
@@ -418,6 +418,16 @@ void bladerf_common::init_bladerf1(const dict_t &dict, bladerf_direction directi
...
@@ -418,6 +418,16 @@ void bladerf_common::init_bladerf1(const dict_t &dict, bladerf_direction directi
if
(
dict
.
count
(
"tamer"
))
{
if
(
dict
.
count
(
"tamer"
))
{
set_clock_source
(
_get
(
dict
,
"tamer"
));
set_clock_source
(
_get
(
dict
,
"tamer"
));
}
}
if
(
dict
.
count
(
"sampling"
))
{
bladerf_sampling
mode
=
_get
(
dict
,
"sampling"
)
==
"external"
?
BLADERF_SAMPLING_EXTERNAL:
BLADERF_SAMPLING_INTERNAL
;
auto
status
=
bladerf_set_sampling
(
_dev
.
get
(),
mode
);
if
(
status
!=
0
)
{
BLADERF_THROW_STATUS
(
status
,
"Failed to set sampling"
);
}
}
bladerf_channel
ch
=
(
direction
==
BLADERF_RX
)
?
BLADERF_CHANNEL_RX
(
0
)
bladerf_channel
ch
=
(
direction
==
BLADERF_RX
)
?
BLADERF_CHANNEL_RX
(
0
)
:
BLADERF_CHANNEL_TX
(
0
);
:
BLADERF_CHANNEL_TX
(
0
);
if
(
dict
.
count
(
"lpf_mode"
))
{
if
(
dict
.
count
(
"lpf_mode"
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment