aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/usrp_c.cpp')
-rw-r--r--host/lib/usrp/usrp_c.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/host/lib/usrp/usrp_c.cpp b/host/lib/usrp/usrp_c.cpp
index 4d144fcaa..3d50bd8be 100644
--- a/host/lib/usrp/usrp_c.cpp
+++ b/host/lib/usrp/usrp_c.cpp
@@ -377,6 +377,7 @@ uhd_error uhd_usrp_get_rx_info(
uhd::dict<std::string, std::string> rx_info = USRP(h)->get_usrp_rx_info(chan);
COPY_INFO_FIELD(info_out, rx_info, mboard_id);
+ COPY_INFO_FIELD(info_out, rx_info, mboard_name);
COPY_INFO_FIELD(info_out, rx_info, mboard_serial);
COPY_INFO_FIELD(info_out, rx_info, rx_id);
COPY_INFO_FIELD(info_out, rx_info, rx_subdev_name);
@@ -395,6 +396,7 @@ uhd_error uhd_usrp_get_tx_info(
uhd::dict<std::string, std::string> tx_info = USRP(h)->get_usrp_tx_info(chan);
COPY_INFO_FIELD(info_out, tx_info, mboard_id);
+ COPY_INFO_FIELD(info_out, tx_info, mboard_name);
COPY_INFO_FIELD(info_out, tx_info, mboard_serial);
COPY_INFO_FIELD(info_out, tx_info, tx_id);
COPY_INFO_FIELD(info_out, tx_info, tx_subdev_name);
@@ -612,6 +614,16 @@ uhd_error uhd_usrp_set_clock_source_out(
)
}
+uhd_error uhd_usrp_set_time_source_out(
+ uhd_usrp_handle h,
+ bool enb,
+ size_t mboard
+){
+ UHD_SAFE_C_SAVE_ERROR(h,
+ USRP(h)->set_time_source_out(enb, mboard);
+ )
+}
+
uhd_error uhd_usrp_get_num_mboards(
uhd_usrp_handle h,
size_t *num_mboards_out
@@ -839,10 +851,10 @@ uhd_error uhd_usrp_get_fe_rx_freq_range(
UHD_API uhd_error uhd_usrp_get_rx_lo_names(
uhd_usrp_handle h,
size_t chan,
- uhd_string_vector_handle rx_lo_names_out
+ uhd_string_vector_handle *rx_lo_names_out
){
UHD_SAFE_C_SAVE_ERROR(h,
- rx_lo_names_out->string_vector_cpp = USRP(h)->get_rx_lo_names(chan);
+ (*rx_lo_names_out)->string_vector_cpp = USRP(h)->get_rx_lo_names(chan);
)
}
@@ -873,10 +885,10 @@ UHD_API uhd_error uhd_usrp_get_rx_lo_sources(
uhd_usrp_handle h,
const char* name,
size_t chan,
- uhd_string_vector_handle rx_lo_sources_out
+ uhd_string_vector_handle *rx_lo_sources_out
){
UHD_SAFE_C_SAVE_ERROR(h,
- rx_lo_sources_out->string_vector_cpp = USRP(h)->get_rx_lo_sources(name, chan);
+ (*rx_lo_sources_out)->string_vector_cpp = USRP(h)->get_rx_lo_sources(name, chan);
)
}
@@ -1488,7 +1500,7 @@ uhd_error uhd_usrp_write_register(
)
}
-uhd_error uhd_usrp_write_register(
+uhd_error uhd_usrp_read_register(
uhd_usrp_handle h,
const char* path,
uint32_t field,