usrp1_source_c Class Reference

interface to Universal Software Radio Peripheral Rx path (Rev 1) More...

#include <usrp1_source_c.h>

Inheritance diagram for usrp1_source_c:

Inheritance graph
[legend]
Collaboration diagram for usrp1_source_c:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~usrp1_source_c ()

Protected Member Functions

 usrp1_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

usrp1_source_c_sptr usrp1_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)


Detailed Description

interface to Universal Software Radio Peripheral Rx path (Rev 1)

Constructor & Destructor Documentation

usrp1_source_c::usrp1_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]

usrp1_source_c::~usrp1_source_c (  ) 


Member Function Documentation

virtual void usrp1_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

Parameters:
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
The copy must consume all bytes available. That is, bytes_read must equal usrp_buffer_length.

Implements usrp1_source_base.

virtual int usrp1_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 usrp1_source_base.


Friends And Related Function Documentation

usrp1_source_c_sptr usrp1_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]


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

Generated on Thu Mar 5 09:03:28 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8