summaryrefslogtreecommitdiffstats
path: root/lib/device_addr.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-01-21 15:30:34 -0800
committerJosh Blum <josh@joshknows.com>2010-01-21 15:30:34 -0800
commite3483c7451d20b7ed1d8d4865e15751f18cdef78 (patch)
treef309a95a1b0ecd3dc3295ebc71ee5ad697c9f7a8 /lib/device_addr.cpp
parent5b42b774d9ac1e74fb2916bf58085fe19ecb6720 (diff)
downloaduhd-e3483c7451d20b7ed1d8d4865e15751f18cdef78.tar.gz
uhd-e3483c7451d20b7ed1d8d4865e15751f18cdef78.tar.bz2
uhd-e3483c7451d20b7ed1d8d4865e15751f18cdef78.zip
Added a usrp device abstration that creates usrp mboards.
Added a usrp mboard named test, its empty for now.
Diffstat (limited to 'lib/device_addr.cpp')
-rw-r--r--lib/device_addr.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/device_addr.cpp b/lib/device_addr.cpp
index 34c61ede8..b28082069 100644
--- a/lib/device_addr.cpp
+++ b/lib/device_addr.cpp
@@ -81,8 +81,9 @@ usrp_uhd::device_addr_t::device_addr_t(device_addr_type_t device_addr_type){
usb_args.vendor_id = 0xffff;
usb_args.product_id = 0xffff;
eth_args.ifc = "eth0";
- eth_args.mac_addr = mac_addr_t("ff:ff:ff:ff:ff:ff");
- udp_args.ip_addr = ip_addr_t("255.255.255.255");
+ eth_args.mac_addr = "ff:ff:ff:ff:ff:ff";
+ udp_args.addr = "255.255.255.255";
+ discovery_args.mboard_id = ~0;
}
std::string usrp_uhd::device_addr_t::to_string(void) const{
@@ -110,7 +111,7 @@ std::string usrp_uhd::device_addr_t::to_string(void) const{
break;
case DEVICE_ADDR_TYPE_UDP:
out << "UDP Socket" << std::endl;
- out << "IP Addr: " << udp_args.ip_addr << std::endl;
+ out << "Address: " << udp_args.addr << std::endl;
break;
case DEVICE_ADDR_TYPE_GPMC:
out << "GPMC" << std::endl;