21 #ifndef INCLUDED_BLADERF_COMMON_H
22 #define INCLUDED_BLADERF_COMMON_H
27 #include <boost/circular_buffer.hpp>
28 #include <boost/thread/mutex.hpp>
29 #include <boost/thread/shared_mutex.hpp>
30 #include <boost/thread/condition_variable.hpp>
32 #include <gnuradio/gr_complex.h>
34 #include <libbladeRF.h>
39 #define BLADERF_SAMPLE_BLOCK_SIZE (1024)
45 #ifndef BLADERF_SAMPLE_FIFO_SIZE
46 # define BLADERF_SAMPLE_FIFO_SIZE (2 * 1024 * 1024)
49 #define BLADERF_SAMPLE_FIFO_MIN_SIZE (3 * BLADERF_SAMPLE_BLOCK_SIZE)
62 static std::vector< std::string >
devices();
75 boost::shared_mutex state_lock;
bladerf * dev
Definition: bladerf_common.h:67
osmosdr::meta_range_t sample_rates()
int16_t * raw_sample_buf
Definition: bladerf_common.h:69
osmosdr::freq_range_t filter_bandwidths()
osmosdr::freq_range_t freq_range()
boost::mutex sample_fifo_lock
Definition: bladerf_common.h:71
static std::vector< std::string > devices()
Definition: bladerf_common.h:51
boost::condition_variable samples_available
Definition: bladerf_common.h:72
void set_running(bool is_running)
boost::circular_buffer< gr_complex > * sample_fifo
Definition: bladerf_common.h:70