aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/lmk04828.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/common/lmk04828.hpp')
-rw-r--r--host/lib/usrp/common/lmk04828.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/host/lib/usrp/common/lmk04828.hpp b/host/lib/usrp/common/lmk04828.hpp
index 36266bbfe..f44786dad 100644
--- a/host/lib/usrp/common/lmk04828.hpp
+++ b/host/lib/usrp/common/lmk04828.hpp
@@ -32,7 +32,7 @@ class lmk04828_iface
{
public:
typedef boost::shared_ptr<lmk04828_iface> sptr;
- typedef boost::function<void(std::vector<uint32_t>)> write_fn_t;
+ typedef boost::function<void(std::vector<uint32_t>)> write_fn_t;
typedef boost::function<uint8_t(uint32_t)> read_fn_t;
//static sptr (write_fn_t write_fn, read_fn_t read_fn);
@@ -40,7 +40,12 @@ public:
~lmk04828_iface() {}
- void verify_chip_id();
+ //! Checks if the chip ID is what we expect
+ //
+ // Does not throw
+ //
+ // \returns false if chip ID is incorrect
+ bool verify_chip_id();
uint8_t get_chip_id();