diff options
author | Jason Abele | 2010-06-03 14:35:18 -0700 |
---|---|---|
committer | Johnathan Corgan | 2010-06-04 22:38:39 -0700 |
commit | 937b74e9f60a2668a6f39f7f5d7291a8e00aef1f (patch) | |
tree | 8c7a66dc5a55d6187c1835bed28d452d315c0511 /usrp/host/lib/db_wbxng_adf4350.h | |
parent | 9004b4524713992660012d7932f6dcace74e54b0 (diff) | |
download | gnuradio-937b74e9f60a2668a6f39f7f5d7291a8e00aef1f.tar.gz gnuradio-937b74e9f60a2668a6f39f7f5d7291a8e00aef1f.tar.bz2 gnuradio-937b74e9f60a2668a6f39f7f5d7291a8e00aef1f.zip |
Refactor WBX and adf4350 to avoid passing usrp pointer
Diffstat (limited to 'usrp/host/lib/db_wbxng_adf4350.h')
-rw-r--r-- | usrp/host/lib/db_wbxng_adf4350.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usrp/host/lib/db_wbxng_adf4350.h b/usrp/host/lib/db_wbxng_adf4350.h index ca8de6eba..ce8cbf4b1 100644 --- a/usrp/host/lib/db_wbxng_adf4350.h +++ b/usrp/host/lib/db_wbxng_adf4350.h @@ -31,22 +31,16 @@ class adf4350_regs; class adf4350 { public: - adf4350(usrp_basic_sptr _usrp, int _which, int _spi_enable); + adf4350(); ~adf4350(); void _update(); - bool _get_locked(); - void _enable(bool enable); - void _write(uint8_t addr, uint32_t data); + std::string compute_register(uint8_t addr); bool _set_freq(freq_t freq, freq_t refclock_freq); freq_t _get_freq(freq_t refclock_freq); freq_t _get_max_freq(); freq_t _get_min_freq(); protected: - usrp_basic_sptr d_usrp; - int d_which; - int d_spi_enable; - int d_spi_format; adf4350_regs *d_regs; }; |