![]() |
USRP_Server
2.0
A flexible, GPU-accelerated radio-frequency readout software.
|
#include <USRP_server_link_threads.hpp>
Public Member Functions | |
TXRX (server_settings *settings, hardware_manager *init_hardware, bool diagnostic_init=false) | |
Initialization method requires an already initialized hardware manager class and an already initialized streaming queue (output of analysis) More... | |
void | set (usrp_param *global_param) |
Launches the setting functions for the required signals, antennas... More... | |
void | start (usrp_param *global_param) |
Start the threads. More... | |
bool | stop (bool force=false) |
Public Attributes | |
rx_queue * | stream_queue |
Pointer to the TCP streaming queue, initialized with the class. Output of every frontend rx dsp processes. More... | |
preallocator< float2 > * | rx_output_memory |
Pointer to the output memory allocator of all frontends. More... | |
bool | diagnostic |
Enables diagnostic info on output. More... | |
bool | file_writing |
Enables server local file writing. More... | |
bool | tcp_streaming |
Enables server tcp streaming. More... | |
Definition at line 15 of file USRP_server_link_threads.hpp.
TXRX::TXRX | ( | server_settings * | settings, |
hardware_manager * | init_hardware, | ||
bool | diagnostic_init = false |
||
) |
Initialization method requires an already initialized hardware manager class and an already initialized streaming queue (output of analysis)
Definition at line 5 of file USRP_server_link_threads.cpp.
References Sync_server::connect(), diagnostic, file_writing, rx_output_memory, stream_queue, tcp_streaming, and TCP_SYNC_PORT.
void TXRX::set | ( | usrp_param * | global_param | ) |
Launches the setting functions for the required signals, antennas...
Definition at line 73 of file USRP_server_link_threads.cpp.
References preallocator< vector_type >::close(), file_writing, Sync_server::memory, Sync_server::out_queue, hardware_manager::preset_usrp(), print_debug(), print_error(), rx_output_memory, stream_queue, tcp_streaming, H5_file_writer::update_pointers(), and Sync_server::update_pointers().
Referenced by main().
void TXRX::start | ( | usrp_param * | global_param | ) |
Start the threads.
Definition at line 238 of file USRP_server_link_threads.cpp.
References hardware_manager::A_TX_queue, hardware_manager::B_TX_queue, hardware_manager::check_A_rx_status(), hardware_manager::check_A_tx_status(), hardware_manager::check_B_rx_status(), hardware_manager::check_B_tx_status(), file_writing, hardware_manager::main_usrp, print_error(), rx_output_memory, SetThreadName(), H5_file_writer::start(), Sync_server::start(), hardware_manager::start_rx(), hardware_manager::start_tx(), stop(), stream_queue, hardware_manager::sw_loop, tcp_streaming, hardware_manager::this_usrp_number, and Thread_Prioriry().
Referenced by main().
bool TXRX::stop | ( | bool | force = false | ) |
@ brief Check if the streamer can take a new command and clean the threads for it. in case the force option is true, force close the threads and cleans the queues NOTE: with force option true this call is blocking as it calls the join() method of boost's thread.
Definition at line 435 of file USRP_server_link_threads.cpp.
References hardware_manager::A_RX_queue, hardware_manager::B_RX_queue, hardware_manager::check_rx_status(), hardware_manager::check_tx_status(), hardware_manager::close_rx(), hardware_manager::close_tx(), diagnostic, file_writing, preallocator< vector_type >::get(), Sync_server::NEED_RECONNECT, RX_buffer_demodulator::parameters, print_debug(), print_error(), print_warning(), RX_buffer_demodulator::process(), set_this_thread_name(), H5_file_writer::stop(), Sync_server::stop(), tcp_streaming, and preallocator< vector_type >::trash().
Referenced by main(), and start().
rx_queue* TXRX::stream_queue |
Pointer to the TCP streaming queue, initialized with the class. Output of every frontend rx dsp processes.
Definition at line 20 of file USRP_server_link_threads.hpp.
preallocator<float2>* TXRX::rx_output_memory |
Pointer to the output memory allocator of all frontends.
Definition at line 23 of file USRP_server_link_threads.hpp.
bool TXRX::diagnostic |
Enables diagnostic info on output.
Definition at line 26 of file USRP_server_link_threads.hpp.
bool TXRX::file_writing |
bool TXRX::tcp_streaming |