#include <usrp1_source_s.h>
Public Member Functions | |
~usrp1_source_s () | |
Protected Member Functions | |
usrp1_source_s (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 | |
usrp1_source_s_sptr | usrp1_make_source_s (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) |
output: 1 stream of short
usrp1_source_s::usrp1_source_s | ( | 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] |
usrp1_source_s::~usrp1_source_s | ( | ) |
virtual void usrp1_source_s::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
output_items[out] | stream(s) of output items | |
output_index[in] | starting index in output_items | |
output_items_available[in] | number of empty items available at item[index] | |
output_items_produced[out] | number of items produced by copy | |
usrp_buffer[in] | source buffer | |
usrp_buffer_length[in] | number of bytes available in usrp_buffer | |
bytes_read[out] | number of bytes read from usrp_buffer |
bytes_read
must equal usrp_buffer_length
.
Implements usrp1_source_base.
virtual int usrp1_source_s::ninput_bytes_reqd_for_noutput_items | ( | int | noutput_items | ) | [protected, virtual] |
usrp1_source_s_sptr usrp1_make_source_s | ( | 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] |