summaryrefslogtreecommitdiff
path: root/usrp/host/lib/db_wbxng_adf4350_regs.h
diff options
context:
space:
mode:
authorJohnathan Corgan2010-06-04 23:01:56 -0700
committerJohnathan Corgan2010-06-04 23:01:56 -0700
commit0ea8bff6d0c62e0ddd0a344365c5e345d0a10d07 (patch)
treede455c32956fba3658b6f772775a3162efd94a80 /usrp/host/lib/db_wbxng_adf4350_regs.h
parentd784c4321114a83454493337393c5e2f5656e1e9 (diff)
parentc85f8b729f397dbe938630da5d47b85977e78215 (diff)
downloadgnuradio-0ea8bff6d0c62e0ddd0a344365c5e345d0a10d07.tar.gz
gnuradio-0ea8bff6d0c62e0ddd0a344365c5e345d0a10d07.tar.bz2
gnuradio-0ea8bff6d0c62e0ddd0a344365c5e345d0a10d07.zip
Merge branch 'maint'
* maint: Fixed WBX RX PLL enable Refactor WBX and adf4350 to avoid passing usrp pointer Clean up annoying class structure in wbx Fixing wbx to use _refclk_freq() Typo in error message
Diffstat (limited to 'usrp/host/lib/db_wbxng_adf4350_regs.h')
-rw-r--r--usrp/host/lib/db_wbxng_adf4350_regs.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/usrp/host/lib/db_wbxng_adf4350_regs.h b/usrp/host/lib/db_wbxng_adf4350_regs.h
index 0018aa07f..33a548e85 100644
--- a/usrp/host/lib/db_wbxng_adf4350_regs.h
+++ b/usrp/host/lib/db_wbxng_adf4350_regs.h
@@ -29,13 +29,11 @@ class adf4350;
class adf4350_regs
{
public:
- adf4350_regs(adf4350* _adf4350);
+ adf4350_regs();
~adf4350_regs();
- adf4350* d_adf4350;
-
uint32_t _reg_shift(uint32_t data, uint32_t shift);
- void _load_register(uint8_t addr);
+ uint32_t compute_register(uint8_t addr);
/* reg 0 */
uint16_t d_int;
@@ -75,6 +73,11 @@ public:
static const uint8_t s_output_power;
/* reg 5 */
static const uint8_t s_ld_pin_mode;
+
+protected:
+ usrp_basic_sptr d_usrp;
+ int d_spi_enable;
+ int d_spi_format;
};
#endif /* ADF4350_REGS_H */