diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-21 11:01:05 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-21 11:01:05 -0800 |
commit | 436387677320e371bb9a2efa6b0c2ec97027bc05 (patch) | |
tree | 79707ad4bc9699b11aeff2b0a040f27d1ee5c5b9 /host/include | |
parent | 607f5df7013810e94bbe049e457858ec68f8dd0e (diff) | |
download | uhd-436387677320e371bb9a2efa6b0c2ec97027bc05.tar.gz uhd-436387677320e371bb9a2efa6b0c2ec97027bc05.tar.bz2 uhd-436387677320e371bb9a2efa6b0c2ec97027bc05.zip |
uhd: moved indexed device addr routines into api
implement in usrp2, also combine non specified args into addr
when initializing the mboard so we can use a single addr
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/types/device_addr.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/host/include/uhd/types/device_addr.hpp b/host/include/uhd/types/device_addr.hpp index eb3394230..2c0841146 100644 --- a/host/include/uhd/types/device_addr.hpp +++ b/host/include/uhd/types/device_addr.hpp @@ -1,5 +1,5 @@ // -// Copyright 2010 Ettus Research LLC +// Copyright 2010-2011 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -84,9 +84,15 @@ namespace uhd{ } }; - //handy typedef for a vector of device addresses + //! A typedef for a vector of device addresses typedef std::vector<device_addr_t> device_addrs_t; + //! Separate an indexed device address into a vector of device addresses + UHD_API device_addrs_t separate_device_addr(const device_addr_t &dev_addr); + + //! Combine a vector of device addresses into an indexed device address + UHD_API device_addr_t combine_device_addrs(const device_addrs_t &dev_addrs); + } //namespace uhd #endif /* INCLUDED_UHD_TYPES_DEVICE_ADDR_HPP */ |