2 #ifndef SYNC_CLASS_INCLUDED 3 #define SYNC_CLASS_INCLUDED 38 void set(usrp_param* global_param);
41 void start(usrp_param* global_param);
46 bool stop(
bool force =
false);
52 std::vector<int> rx_thread_n;
55 std::vector<int> tx_thread_n;
64 TX_buffer_generator* generator,
84 param* A_current_tx_param;
85 param* A_current_rx_param;
86 param* B_current_tx_param;
87 param* B_current_rx_param;
90 std::atomic<bool> RX_status, TX_status;
93 boost::thread* A_RX_worker;
94 boost::thread* A_TX_worker;
95 boost::thread* B_RX_worker;
96 boost::thread* B_TX_worker;
105 size_t A_rx_buffer_len;
108 size_t B_rx_buffer_len;
117 size_t A_preallocated;
120 size_t B_preallocated;
123 size_t A_tx_buffer_len;
126 size_t B_tx_buffer_len;
128 size_t output_memory_size;
134 TX_buffer_generator* A_tx_gen;
136 TX_buffer_generator* B_tx_gen;
void start(usrp_param *global_param)
Start the threads.
bool tcp_streaming
Enables server tcp streaming.
This class handles the DSP of the buffer coming from the the SDR. This is the class to implement to a...
rx_queue * stream_queue
Pointer to the TCP streaming queue, initialized with the class. Output of every frontend rx dsp proce...
preallocator< float2 > * rx_output_memory
Pointer to the output memory allocator of all frontends.
bool file_writing
Enables server local file writing.
bool diagnostic
Enables diagnostic info on output.
bool stop(bool force=false)
TXRX(server_settings *settings, hardware_manager *init_hardware, bool diagnostic_init=false)
Initialization method requires an already initialized hardware manager class and an already initializ...
Manages the hardware I/O of one usrp unit.