USRP_Server  2.0
A flexible, GPU-accelerated radio-frequency readout software.
TXRX Class Reference

#include <USRP_server_link_threads.hpp>

Collaboration diagram for TXRX:
Collaboration graph

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...
 

Detailed Description

Definition at line 15 of file USRP_server_link_threads.hpp.

Constructor & Destructor Documentation

◆ TXRX()

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.

Here is the call graph for this function:

Member Function Documentation

◆ set()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

void TXRX::start ( usrp_param *  global_param)

◆ stop()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ stream_queue

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.

Referenced by set(), start(), and TXRX().

◆ rx_output_memory

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.

Referenced by set(), start(), and TXRX().

◆ diagnostic

bool TXRX::diagnostic

Enables diagnostic info on output.

Definition at line 26 of file USRP_server_link_threads.hpp.

Referenced by stop(), and TXRX().

◆ file_writing

bool TXRX::file_writing

Enables server local file writing.

Definition at line 29 of file USRP_server_link_threads.hpp.

Referenced by set(), start(), stop(), and TXRX().

◆ tcp_streaming

bool TXRX::tcp_streaming

Enables server tcp streaming.

Definition at line 32 of file USRP_server_link_threads.hpp.

Referenced by set(), start(), stop(), and TXRX().


The documentation for this class was generated from the following files: