18 #ifndef GNSS_SDR_AD936X_IIO_SOURCE_H 19 #define GNSS_SDR_AD936X_IIO_SOURCE_H 25 #include <gnuradio/block.h> 44 using ad936x_iio_source_sptr = gnss_shared_ptr<ad936x_iio_source>;
46 ad936x_iio_source_sptr ad936x_iio_make_source_sptr(
47 std::string pluto_uri_,
48 std::string board_type_,
50 long long sample_rate_,
52 std::string rf_port_select_,
53 std::string rf_filter,
54 std::string gain_mode_rx0_,
55 std::string gain_mode_rx1_,
62 bool customsamplesize_,
68 double lo_attenuation_db_,
86 int general_work(
int noutput_items,
87 gr_vector_int &ninput_items,
88 gr_vector_const_void_star &input_items,
89 gr_vector_void_star &output_items);
92 friend ad936x_iio_source_sptr ad936x_iio_make_source_sptr(
93 std::string pluto_uri_,
94 std::string board_type_,
96 long long sample_rate_,
98 std::string rf_port_select_,
99 std::string rf_filter,
100 std::string gain_mode_rx0_,
101 std::string gain_mode_rx1_,
108 bool customsamplesize_,
114 double lo_attenuation_db_,
119 std::string pluto_uri_,
120 std::string board_type_,
121 long long bandwidth_,
122 long long sample_rate_,
124 std::string rf_port_select_,
125 std::string rf_filter,
126 std::string gain_mode_rx0_,
127 std::string gain_mode_rx1_,
134 bool customsamplesize_,
140 double lo_attenuation_db_,
145 void ad9361_channel_demux_to_buffer(
ad936x_iio_samples *samples_in,
int nchannels, gr_vector_void_star &output_items);
146 void ad9361_channel_demux_and_record(
ad936x_iio_samples *samples_in,
int nchannels, std::vector<std::fstream> *files_out);
148 std::thread pps_rx_thread;
149 std::unique_ptr<ad936x_iio_custom> ad936x_custom;
150 std::shared_ptr<pps_tcp_rx> pps_rx;
151 std::shared_ptr<Concurrent_Queue<PpsSamplestamp>> ppsqueue;
153 std::vector<std::fstream> samplesfile;
159 #endif // GNSS_SDR_AD936X_IIO_SOURCE_H Interface of a thread-safe std::queue.
This interface represents a GNSS block.
bool start()
start the sample transmission
TCP client class for front-end PPS samplestamp information reception.
This class implements conversion between Labsat 2, 3 and 3 Wideband formats to gr_complex.
A direct IIO custom front-end driver for the AD936x AD front-end family with special FPGA custom func...
bool stop()
stop the sample transmission