aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/twinrx/twinrx_ctrl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/dboard/twinrx/twinrx_ctrl.hpp')
-rw-r--r--host/lib/usrp/dboard/twinrx/twinrx_ctrl.hpp39
1 files changed, 25 insertions, 14 deletions
diff --git a/host/lib/usrp/dboard/twinrx/twinrx_ctrl.hpp b/host/lib/usrp/dboard/twinrx/twinrx_ctrl.hpp
index dfdacde11..2f4d84ed5 100644
--- a/host/lib/usrp/dboard/twinrx/twinrx_ctrl.hpp
+++ b/host/lib/usrp/dboard/twinrx/twinrx_ctrl.hpp
@@ -9,22 +9,21 @@
#define INCLUDED_DBOARD_TWINRX_CTRL_HPP
#include "twinrx_io.hpp"
+#include <uhd/types/ranges.hpp>
#include <uhd/types/wb_iface.hpp>
#include <uhd/utils/noncopyable.hpp>
-#include <uhd/types/ranges.hpp>
namespace uhd { namespace usrp { namespace dboard { namespace twinrx {
-class twinrx_ctrl : public uhd::noncopyable {
+class twinrx_ctrl : public uhd::noncopyable
+{
public:
typedef std::shared_ptr<twinrx_ctrl> sptr;
- static sptr make(
- dboard_iface::sptr db_iface,
+ static sptr make(dboard_iface::sptr db_iface,
twinrx_gpio::sptr gpio_iface,
twinrx_cpld_regmap::sptr cpld_regmap,
- dboard_id_t rx_id
- );
+ dboard_id_t rx_id);
virtual ~twinrx_ctrl() {}
@@ -40,7 +39,13 @@ public:
enum lo_export_source_t { LO_CH1_SYNTH, LO_CH2_SYNTH, LO_EXPORT_DISABLED };
- enum antenna_mapping_t { ANTX_NATIVE, ANT1_SHARED, ANT2_SHARED, ANTX_SWAPPED, ANTX_DISABLED };
+ enum antenna_mapping_t {
+ ANTX_NATIVE,
+ ANT1_SHARED,
+ ANT2_SHARED,
+ ANTX_SWAPPED,
+ ANTX_DISABLED
+ };
enum cal_mode_t { CAL_DISABLED, CAL_CH1, CAL_CH2 };
@@ -52,13 +57,17 @@ public:
virtual void set_preamp2(channel_t ch, bool enabled, bool commit = true) = 0;
- virtual void set_lb_preamp_preselector(channel_t ch, bool enabled, bool commit = true) = 0;
+ virtual void set_lb_preamp_preselector(
+ channel_t ch, bool enabled, bool commit = true) = 0;
- virtual void set_signal_path(channel_t ch, signal_path_t path, bool commit = true) = 0;
+ virtual void set_signal_path(
+ channel_t ch, signal_path_t path, bool commit = true) = 0;
- virtual void set_lb_preselector(channel_t ch, preselector_path_t path, bool commit = true) = 0;
+ virtual void set_lb_preselector(
+ channel_t ch, preselector_path_t path, bool commit = true) = 0;
- virtual void set_hb_preselector(channel_t ch, preselector_path_t path, bool commit = true) = 0;
+ virtual void set_hb_preselector(
+ channel_t ch, preselector_path_t path, bool commit = true) = 0;
virtual void set_input_atten(channel_t ch, uint8_t atten, bool commit = true) = 0;
@@ -82,9 +91,11 @@ public:
virtual double set_lo2_synth_freq(channel_t ch, double freq, bool commit = true) = 0;
- virtual double set_lo1_charge_pump(channel_t ch, double current, bool commit = true) = 0;
+ virtual double set_lo1_charge_pump(
+ channel_t ch, double current, bool commit = true) = 0;
- virtual double set_lo2_charge_pump(channel_t ch, double current, bool commit = true) = 0;
+ virtual double set_lo2_charge_pump(
+ channel_t ch, double current, bool commit = true) = 0;
virtual uhd::meta_range_t get_lo1_charge_pump_range() = 0;
@@ -95,6 +106,6 @@ public:
virtual bool read_lo2_locked(channel_t ch) = 0;
};
-}}}} //namespaces
+}}}} // namespace uhd::usrp::dboard::twinrx
#endif /* INCLUDED_DBOARD_TWINRX_CTRL_HPP */