bladerf_common: add agc= option to set gain mode

gr3.7
Ryan Tucker 5 years ago committed by Dimitri Stolnikov
parent 0132f6c494
commit ea6cc4beb9
  1. 10
      lib/bladerf/bladerf_common.cc

@ -487,6 +487,16 @@ void bladerf_common::init(dict_t &dict, bladerf_direction direction)
<< std::endl;
}
/* Specify initial gain mode */
if (direction == BLADERF_RX) {
if (dict.count("agc")) {
set_gain_mode(boost::lexical_cast<bool>(dict["agc"]));
std::cerr << _pfx
<< "Gain mode set to " << get_gain_mode()
<< std::endl;
}
}
/* Initialize buffer and sample configuration */
_num_buffers = 0;
if (dict.count("buffers")) {

Loading…
Cancel
Save