![]() |
USRP_Server
2.0
A flexible, GPU-accelerated radio-frequency readout software.
|
#include "USRP_server_diagnostic.hpp"
Go to the source code of this file.
Functions | |
void | set_this_thread_name (std::string thread_name) |
Set the htread name reported in the logging. More... | |
void | interptet_rx_error (uhd::rx_metadata_t::error_code_t error) |
int | get_rx_errors (uhd::rx_metadata_t *metadata, bool verbose) |
int | get_tx_error (uhd::async_metadata_t *async_md, bool verbose) |
Interpret tx errors from the async usrp comunication. More... | |
void | print_params (usrp_param my_parameter) |
Print parameters on the terminal in a readable way. More... | |
template<typename CharT , typename TraitsT > | |
std::basic_ostream< CharT, TraitsT > & | operator<< (std::basic_ostream< CharT, TraitsT > &strm, severity_level lvl) |
void | init_logger () |
initialize the logger for the server. Creates or access the folder logs. each time the server starts, creates an enumerated log file. More... | |
Variables | |
boost::shared_ptr< file_sink > | pLogSink |
Shared pointer to the logfile writer object. More... | |
void set_this_thread_name | ( | std::string | thread_name | ) |
Set the htread name reported in the logging.
Definition at line 4 of file USRP_server_diagnostic.cpp.
Referenced by hardware_manager::clean_rx_queue(), Sync_server::clear_stream_queue(), preallocator< float2 >::close(), main(), Sync_server::reconnect(), Async_server::recv_async(), and TXRX::stop().
void interptet_rx_error | ( | uhd::rx_metadata_t::error_code_t | error | ) |
Definition at line 14 of file USRP_server_diagnostic.cpp.
References print_warning().
Referenced by get_rx_errors().
int get_rx_errors | ( | uhd::rx_metadata_t * | metadata, |
bool | verbose | ||
) |
Definition at line 44 of file USRP_server_diagnostic.cpp.
References interptet_rx_error(), print_error(), and print_warning().
Referenced by hardware_manager::clean_rx_queue().
int get_tx_error | ( | uhd::async_metadata_t * | async_md, |
bool | verbose | ||
) |
Interpret tx errors from the async usrp comunication.
Definition at line 63 of file USRP_server_diagnostic.cpp.
References print_error(), and print_warning().
Referenced by hardware_manager::clean_rx_queue().
void print_params | ( | usrp_param | my_parameter | ) |
Print parameters on the terminal in a readable way.
Definition at line 108 of file USRP_server_diagnostic.cpp.
References ant_mode_to_str(), print_error(), and w_type_to_str().
Referenced by main().
|
inline |
Definition at line 398 of file USRP_server_diagnostic.cpp.
void init_logger | ( | ) |
initialize the logger for the server. Creates or access the folder logs. each time the server starts, creates an enumerated log file.
Definition at line 421 of file USRP_server_diagnostic.cpp.
References pLogSink.
Referenced by main().
boost::shared_ptr< file_sink > pLogSink |
Shared pointer to the logfile writer object.
Definition at line 418 of file USRP_server_diagnostic.cpp.
Referenced by Sync_server::clear_stream_queue(), and init_logger().