On 19.06.2013 17:51, lingeswar kandregula wrote:
i saw that link before.. there are VGA and BB in the transmitting path
if we consider the XCVR daughter board. is that distributed between
these two or anything else also shares it? ..
There are only two gains (BB and VGA) that can be controlled over the
uhd interface...
Again I don't know for what is your purpose and assuming you are using
uhd for setting gains.....
You can set the BB and VGA gains values individually using the name
argument....
set_gain(uhd_usrp_source_sptr self, double gain, std::string const &
name, size_t chan=0)
double xcvr2450::set_tx_gain(double gain, const std::string &name){
assert_has(xcvr_tx_gain_ranges.keys(), name, "xcvr tx gain name");
if (name == "VGA"){
_max2829_regs.tx_vga_gain = gain_to_tx_vga_reg(gain);
send_reg(0xC);
}
else if(name == "BB"){
_max2829_regs.tx_baseband_gain = gain_to_tx_bb_reg(gain);
send_reg(0x9);
}
else UHD_THROW_INVALID_CODE_PATH();
_tx_gains[name] = gain;
return gain;
}
double xcvr2450::set_rx_gain(double gain, const std::string &name){
assert_has(xcvr_rx_gain_ranges.keys(), name, "xcvr rx gain name");
if (name == "VGA"){
_max2829_regs.rx_vga_gain = gain_to_rx_vga_reg(gain);
send_reg(0xB);
}
else if(name == "LNA"){
_max2829_regs.rx_lna_gain = gain_to_rx_lna_reg(gain);
send_reg(0xB);
}
else UHD_THROW_INVALID_CODE_PATH();
_rx_gains[name] = gain;
return gain;
}
Ankit
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio