GNU Radio 3.3.0 C++ API
|
Interface to Universal Software Radio Peripheral Rx pathoutput: 1 stream of complex<float> More...
#include <usrp_source_c.h>
Public Member Functions | |
~usrp_source_c () | |
Protected Member Functions | |
usrp_source_c (int which_board, unsigned int decim_rate, int nchan, int mux, int mode, int fusb_block_size, int fusb_nblocks, const std::string fpga_filename, const std::string firmware_filename) throw (std::runtime_error) | |
virtual int | ninput_bytes_reqd_for_noutput_items (int noutput_items) |
return number of usrp input bytes required to produce noutput items. | |
virtual void | copy_from_usrp_buffer (gr_vector_void_star &output_items, int output_index, int output_items_available, int &output_items_produced, const void *usrp_buffer, int usrp_buffer_length, int &bytes_read) |
convert between native usrp format and output item format | |
Friends | |
usrp_source_c_sptr | usrp_make_source_c (int which_board, unsigned int decim_rate, int nchan, int mux, int mode, int fusb_block_size, int fusb_nblocks, const std::string fpga_filename, const std::string firmware_filename) throw (std::runtime_error) |
Interface to Universal Software Radio Peripheral Rx path
output: 1 stream of complex<float>
usrp_source_c::usrp_source_c | ( | int | which_board, |
unsigned int | decim_rate, | ||
int | nchan, | ||
int | mux, | ||
int | mode, | ||
int | fusb_block_size, | ||
int | fusb_nblocks, | ||
const std::string | fpga_filename, | ||
const std::string | firmware_filename | ||
) | throw (std::runtime_error) [protected] |
usrp_source_c::~usrp_source_c | ( | ) |
virtual void usrp_source_c::copy_from_usrp_buffer | ( | gr_vector_void_star & | output_items, |
int | output_index, | ||
int | output_items_available, | ||
int & | output_items_produced, | ||
const void * | usrp_buffer, | ||
int | usrp_buffer_length, | ||
int & | bytes_read | ||
) | [protected, virtual] |
convert between native usrp format and output item format
[out] | output_items | stream(s) of output items |
[in] | output_index | starting index in output_items |
[in] | output_items_available | number of empty items available at item[index] |
[out] | output_items_produced | number of items produced by copy |
[in] | usrp_buffer | source buffer |
[in] | usrp_buffer_length | number of bytes available in usrp_buffer |
[out] | bytes_read | number of bytes read from usrp_buffer |
The copy must consume all bytes available. That is, bytes_read
must equal usrp_buffer_length
.
Implements usrp_source_base.
virtual int usrp_source_c::ninput_bytes_reqd_for_noutput_items | ( | int | noutput_items | ) | [protected, virtual] |
return number of usrp input bytes required to produce noutput items.
Implements usrp_source_base.
usrp_source_c_sptr usrp_make_source_c | ( | int | which_board, |
unsigned int | decim_rate, | ||
int | nchan, | ||
int | mux, | ||
int | mode, | ||
int | fusb_block_size, | ||
int | fusb_nblocks, | ||
const std::string | fpga_filename, | ||
const std::string | firmware_filename | ||
) | throw (std::runtime_error) [friend] |