diff options
author | Jason Abele <jason@ettus.com> | 2011-01-21 19:25:22 -0800 |
---|---|---|
committer | Jason Abele <jason@ettus.com> | 2011-01-25 12:46:58 -0800 |
commit | db66f24ace0009536669d1e815dd1a936cff59be (patch) | |
tree | 8065f239888e415b8375e803ba8714af3afde722 | |
parent | 9e2d669de18b40a69b212175bf1e6f44ad7cc5bc (diff) | |
download | uhd-db66f24ace0009536669d1e815dd1a936cff59be.tar.gz uhd-db66f24ace0009536669d1e815dd1a936cff59be.tar.bz2 uhd-db66f24ace0009536669d1e815dd1a936cff59be.zip |
Added first pass a swigging dboard iface
-rw-r--r-- | host/include/uhd/usrp/dboard_iface.hpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp index cfb727017..ed76383eb 100644 --- a/host/include/uhd/usrp/dboard_iface.hpp +++ b/host/include/uhd/usrp/dboard_iface.hpp @@ -28,6 +28,27 @@ namespace uhd{ namespace usrp{ +//! Special properties that differentiate this daughterboard slot +struct special_props_t{ + /*! + * Soft clock divider: + * When a motherboard cannot provided a divided dboard clock, + * it may provided a "soft" divided clock over an FPGA GPIO. + * The implementation must know the type of clock provided. + */ + bool soft_clock_divider; + + /*! + * Mangle i2c addresses: + * When i2c is shared across multiple daugterboard slots, + * the i2c addresses will be mangled on the secondary slot + * to avoid conflicts between slots in the i2c address space. + * The mangling is daguhterboard specific so the implementation + * needs to know whether it should use mangled addresses or not. + */ + bool mangle_i2c_addrs; +}; + /*! * The daughter board dboard interface to be subclassed. * A dboard instance interfaces with the mboard though this api. @@ -66,27 +87,6 @@ public: AUX_ADC_B = 'b' }; - //! Special properties that differentiate this daughterboard slot - struct special_props_t{ - /*! - * Soft clock divider: - * When a motherboard cannot provided a divided dboard clock, - * it may provided a "soft" divided clock over an FPGA GPIO. - * The implementation must know the type of clock provided. - */ - bool soft_clock_divider; - - /*! - * Mangle i2c addresses: - * When i2c is shared across multiple daugterboard slots, - * the i2c addresses will be mangled on the secondary slot - * to avoid conflicts between slots in the i2c address space. - * The mangling is daguhterboard specific so the implementation - * needs to know whether it should use mangled addresses or not. - */ - bool mangle_i2c_addrs; - }; - /*! * Get special properties information for this dboard slot. * This call helps the dboard code to handle implementation |