GNU Radio 3.4.0 C++ API
usrp_sink_c Class Reference

Interface to Universal Software Radio Peripheral Tx pathinput: gr_complex. More...

#include <usrp_sink_c.h>

Inheritance diagram for usrp_sink_c:

List of all members.

Public Member Functions

 ~usrp_sink_c ()

Protected Member Functions

 usrp_sink_c (int which_board, unsigned int interp_rate, int nchan, int mux, int fusb_block_size, int fusb_nblocks, const std::string fpga_filename, const std::string firmware_filename) throw (std::runtime_error)
virtual void copy_to_usrp_buffer (gr_vector_const_void_star &input_items, int input_index, int input_items_available, int &input_items_consumed, void *usrp_buffer, int usrp_buffer_length, int &bytes_written)
 convert between input item format and usrp native format

Friends

usrp_sink_c_sptr usrp_make_sink_c (int which_board, unsigned int interp_rate, int nchan, int mux, int fusb_block_size, int fusb_nblocks, const std::string fpga_filename, const std::string firmware_filename) throw (std::runtime_error)

Detailed Description

Interface to Universal Software Radio Peripheral Tx path

input: gr_complex.


Constructor & Destructor Documentation

usrp_sink_c::usrp_sink_c ( int  which_board,
unsigned int  interp_rate,
int  nchan,
int  mux,
int  fusb_block_size,
int  fusb_nblocks,
const std::string  fpga_filename,
const std::string  firmware_filename 
) throw (std::runtime_error) [protected]
usrp_sink_c::~usrp_sink_c ( )

Member Function Documentation

virtual void usrp_sink_c::copy_to_usrp_buffer ( gr_vector_const_void_star input_items,
int  input_index,
int  input_items_available,
int &  input_items_consumed,
void *  usrp_buffer,
int  usrp_buffer_length,
int &  bytes_written 
) [protected, virtual]

convert between input item format and usrp native format

Parameters:
[in]input_itemsstream(s) of input items
[in]input_indexstarting index in input_items
[in]input_items_availablenumber of items available starting at item[index]
[out]input_items_consumednumber of input items consumed by copy
[out]usrp_bufferdestination buffer
[in]usrp_buffer_lengthusrp_buffer length in bytes
[out]bytes_writtennumber of bytes written into usrp_buffer

Implements usrp_sink_base.


Friends And Related Function Documentation

usrp_sink_c_sptr usrp_make_sink_c ( int  which_board,
unsigned int  interp_rate,
int  nchan,
int  mux,
int  fusb_block_size,
int  fusb_nblocks,
const std::string  fpga_filename,
const std::string  firmware_filename 
) throw (std::runtime_error) [friend]

The documentation for this class was generated from the following file: