Skip to content
Snippets Groups Projects
Commit 957ba605 authored by Sergey Musikhin's avatar Sergey Musikhin
Browse files

smb

parent 2f66842d
No related branches found
No related tags found
No related merge requests found
...@@ -149,6 +149,13 @@ parameters: ...@@ -149,6 +149,13 @@ parameters:
option_labels: ['Disabled', 'Bypassed'] option_labels: ['Disabled', 'Bypassed']
hide: part hide: part
- id: smb
label: 'SMB frequency'
category: x40/x115
dtype: real
default: 0
hide: part
- id: dc_calibration - id: dc_calibration
label: 'DC calibration' label: 'DC calibration'
category: x40/x115 category: x40/x115
...@@ -215,6 +222,7 @@ templates: ...@@ -215,6 +222,7 @@ templates:
+ ",tamer=" + '${'$'}{tamer}' + ",tamer=" + '${'$'}{tamer}'
+ ",sampling=" + '${'$'}{sampling}' + ",sampling=" + '${'$'}{sampling}'
+ ",lpf_mode="+'${'$'}{lpf_mode}' + ",lpf_mode="+'${'$'}{lpf_mode}'
+ ",smb="+str(int(${'$'}{smb}))
+ ",dc_calibration="+'${'$'}{dc_calibration}' + ",dc_calibration="+'${'$'}{dc_calibration}'
+ ",trigger0="+'${'$'}{trigger0}' + ",trigger0="+'${'$'}{trigger0}'
+ ",trigger_role0="+'${'$'}{trigger_role0}' + ",trigger_role0="+'${'$'}{trigger_role0}'
......
...@@ -362,11 +362,7 @@ void bladerf_common::init(dict_t const &dict, bladerf_direction direction) ...@@ -362,11 +362,7 @@ void bladerf_common::init(dict_t const &dict, bladerf_direction direction)
if (dict.count("smb")) {
set_smb_frequency(boost::lexical_cast<double>(_get(dict, "smb")));
BLADERF_INFO(boost::str(boost::format("SMB frequency set to %f Hz")
% get_smb_frequency()));
}
/* Initialize buffer and sample configuration */ /* Initialize buffer and sample configuration */
if (dict.count("buffers")) { if (dict.count("buffers")) {
...@@ -462,6 +458,13 @@ void bladerf_common::init_bladerf1(const dict_t &dict, bladerf_direction directi ...@@ -462,6 +458,13 @@ void bladerf_common::init_bladerf1(const dict_t &dict, bladerf_direction directi
? BLADERF_LPF_BYPASSED : BLADERF_LPF_DISABLED; ? BLADERF_LPF_BYPASSED : BLADERF_LPF_DISABLED;
set_lpf_mode(ch, mode); set_lpf_mode(ch, mode);
} }
if (dict.count("smb")) {
set_smb_frequency(boost::lexical_cast<double>(_get(dict, "smb")));
BLADERF_INFO(boost::str(boost::format("SMB frequency set to %f Hz")
% get_smb_frequency()));
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment