baz_rtl_source_c Class Reference
GNU Radio baz C++ Signal Processing Blocks

capture samples from an RTL2832-based device. More...

`#include <baz_rtl_source_c.h>`

Inheritance diagram for baz_rtl_source_c:
[legend]

## Public Member Functions

| ~baz_rtl_source_c ()
void | set_defaults ()
bool | set_output_format (int size)
void | set_status_msgq (gr::msg_queue::sptr queue)
bool | create (bool reset_defaults=false)
void | destroy ()
void | set_vid (uint16_t vid)
void | set_pid (uint16_t pid)
void | set_default_timeout (int timeout)
void | set_fir_coefficients (const std::vector< int > &coeffs)
void | set_crystal_frequency (uint32_t freq)
void | set_tuner_name (const char *name)
size_t | recv_samples_per_packet () const
uint64_t | samples_received () const
uint32_t | overflows () const
bool | running () const
uint32_t | buffer_size () const
uint32_t | buffer_times () const
bool | buffering () const
uint32_t | read_packet_count () const
uint32_t | buffer_overflow_count () const
uint32_t | buffer_underrun_count () const
void | set_relative_gain (bool on=true)
void | set_verbose (bool on=true)
void | set_read_length (uint32_t length)
void | set_buffer_multiplier (uint32_t mul)
void | set_use_buffer (bool use=true)
void | set_buffer_level (float level)
bool | relative_gain () const
bool | verbose () const
uint32_t | read_length () const
uint32_t | buffer_multiplier () const
bool | use_buffer () const
float | buffer_level () const
bool | set_sample_rate (double sample_rate)
bool | set_frequency (double freq)
bool | set_gain (double gain)
bool | set_bandwidth (double bandwidth)
bool | set_gain_mode (int mode)
bool | set_gain_mode (const char *mode)
bool | set_auto_gain_mode (bool on=true)
const char * | name () const
double | sample_rate () const
RTL2832_NAMESPACE::range_t | sample_rate_range () const
double | frequency () const
double | gain () const
double | bandwidth () const
int | gain_mode () const
std::string | gain_mode_string () const
bool | auto_gain_mode () const
RTL2832_NAMESPACE::range_t | gain_range () const
RTL2832_NAMESPACE::values_t | gain_values () const
RTL2832_NAMESPACE::range_t | frequency_range () const
RTL2832_NAMESPACE::range_t | bandwidth_range () const
RTL2832_NAMESPACE::values_t | bandwidth_values () const
RTL2832_NAMESPACE::num_name_map_t | gain_modes () const
std::pair< bool, int > | calc_appropriate_gain_mode ()
bool | start ()
bool | stop ()
int | general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Public Member Functions inherited from RTL2832_NAMESPACE::log_sink
virtual void | on_log_message (const char *msg,...)
virtual void | on_log_message_ex (int level, const char *msg,...)

## Friends

BAZ_API baz_rtl_source_c_sptr | baz_make_rtl_source_c (bool defer_creation, int output_size)
| Return a shared_ptr to a new instance of baz_rtl_source_c.

## Additional Inherited Members

Public Types inherited from RTL2832_NAMESPACE::log_sink
enum | level { LOG_LEVEL_ERROR = -1 , LOG_LEVEL_DEFAULT = 0 , LOG_LEVEL_VERBOSE = 1 }

## Detailed Description

capture samples from an RTL2832-based device.

See also
  gr-baz: http://wiki.spench.net/wiki/gr-baz

## Constructor & Destructor Documentation

## ~baz_rtl_source_c()

baz_rtl_source_c::~baz_rtl_source_c | ( |  | ) |

References RTL2832_NAMESPACE::log_sink::LOG_LEVEL_DEFAULT, RTL2832_NAMESPACE::log_sink::LOG_LEVEL_ERROR, and RTL2832_NAMESPACE::log_sink::LOG_LEVEL_VERBOSE.

## Member Function Documentation

## auto_gain_mode()

bool baz_rtl_source_c::auto_gain_mode | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::auto_gain_mode().

## bandwidth()

double baz_rtl_source_c::bandwidth | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::bandwidth().

## bandwidth_range()

RTL2832_NAMESPACE::range_t baz_rtl_source_c::bandwidth_range | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::bandwidth_range().

## bandwidth_values()

RTL2832_NAMESPACE::values_t baz_rtl_source_c::bandwidth_values | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::bandwidth_values().

## buffer_level()

float baz_rtl_source_c::buffer_level | ( |  | ) | const

inline

## buffer_multiplier()

uint32_t baz_rtl_source_c::buffer_multiplier | ( |  | ) | const

inline

## buffer_overflow_count()

uint32_t baz_rtl_source_c::buffer_overflow_count | ( |  | ) | const

inline

## buffer_size()

uint32_t baz_rtl_source_c::buffer_size | ( |  | ) | const

inline

## buffer_times()

uint32_t baz_rtl_source_c::buffer_times | ( |  | ) | const

inline

## buffer_underrun_count()

uint32_t baz_rtl_source_c::buffer_underrun_count | ( |  | ) | const

inline

## buffering()

bool baz_rtl_source_c::buffering | ( |  | ) | const

inline

## calc_appropriate_gain_mode()

std::pair< bool, int > baz_rtl_source_c::calc_appropriate_gain_mode | ( |  | ) |

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::calc_appropriate_gain_mode().

## create()

bool baz_rtl_source_c::create | ( | bool | reset_defaults = `false` | ) |

## destroy()

void baz_rtl_source_c::destroy | ( |  | ) |

## frequency()

double baz_rtl_source_c::frequency | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::frequency().

## frequency_range()

RTL2832_NAMESPACE::range_t baz_rtl_source_c::frequency_range | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::frequency_range().

## gain()

double baz_rtl_source_c::gain | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::gain().

## gain_mode()

int baz_rtl_source_c::gain_mode | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner().

## gain_mode_string()

std::string baz_rtl_source_c::gain_mode_string | ( |  | ) | const

## gain_modes()

RTL2832_NAMESPACE::num_name_map_t baz_rtl_source_c::gain_modes | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::gain_modes().

## gain_range()

RTL2832_NAMESPACE::range_t baz_rtl_source_c::gain_range | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::gain_range().

## gain_values()

RTL2832_NAMESPACE::values_t baz_rtl_source_c::gain_values | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::gain_values().

## general_work()

int baz_rtl_source_c::general_work | ( | int | noutput_items,
|  | gr_vector_int & | ninput_items,
|  | gr_vector_const_void_star & | input_items,
|  | gr_vector_void_star & | output_items
| ) |  |

## name()

const char * baz_rtl_source_c::name | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::name().

## overflows()

uint32_t baz_rtl_source_c::overflows | ( |  | ) | const

inline

## read_length()

uint32_t baz_rtl_source_c::read_length | ( |  | ) | const

inline

## read_packet_count()

uint32_t baz_rtl_source_c::read_packet_count | ( |  | ) | const

inline

## recv_samples_per_packet()

size_t baz_rtl_source_c::recv_samples_per_packet | ( |  | ) | const

inline

## relative_gain()

bool baz_rtl_source_c::relative_gain | ( |  | ) | const

inline

## running()

bool baz_rtl_source_c::running | ( |  | ) | const

inline

## sample_rate()

double baz_rtl_source_c::sample_rate | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::sample_rate().

## sample_rate_range()

RTL2832_NAMESPACE::range_t baz_rtl_source_c::sample_rate_range | ( |  | ) | const

inline

References RTL2832_NAMESPACE::demod::sample_rate_range().

## samples_received()

uint64_t baz_rtl_source_c::samples_received | ( |  | ) | const

inline

## set_auto_gain_mode()

bool baz_rtl_source_c::set_auto_gain_mode | ( | bool | on = `true` | ) |

## set_bandwidth()

bool baz_rtl_source_c::set_bandwidth | ( | double | bandwidth | ) |

## set_buffer_level()

void baz_rtl_source_c::set_buffer_level | ( | float | level | ) |

inline

## set_buffer_multiplier()

void baz_rtl_source_c::set_buffer_multiplier | ( | uint32_t | mul | ) |

inline

## set_crystal_frequency()

void baz_rtl_source_c::set_crystal_frequency | ( | uint32_t | freq | ) |

inline

## set_default_timeout()

void baz_rtl_source_c::set_default_timeout | ( | int | timeout | ) |

inline

## set_defaults()

void baz_rtl_source_c::set_defaults | ( |  | ) |

## set_fir_coefficients()

void baz_rtl_source_c::set_fir_coefficients | ( | const std::vector< int > & | coeffs | ) |

inline

References RTL2832_FIR_COEFF_COUNT.

## set_frequency()

bool baz_rtl_source_c::set_frequency | ( | double | freq | ) |

## set_gain()

bool baz_rtl_source_c::set_gain | ( | double | gain | ) |

## set_gain_mode() [1/2]

bool baz_rtl_source_c::set_gain_mode | ( | const char * | mode | ) |

## set_gain_mode() [2/2]

bool baz_rtl_source_c::set_gain_mode | ( | int | mode | ) |

## set_output_format()

bool baz_rtl_source_c::set_output_format | ( | int | size | ) |

## set_pid()

void baz_rtl_source_c::set_pid | ( | uint16_t | pid | ) |

inline

## set_read_length()

void baz_rtl_source_c::set_read_length | ( | uint32_t | length | ) |

inline

## set_relative_gain()

void baz_rtl_source_c::set_relative_gain | ( | bool | on = `true` | ) |

inline

## set_sample_rate()

bool baz_rtl_source_c::set_sample_rate | ( | double | sample_rate | ) |

## set_status_msgq()

void baz_rtl_source_c::set_status_msgq | ( | gr::msg_queue::sptr | queue | ) |

## set_tuner_name()

void baz_rtl_source_c::set_tuner_name | ( | const char * | name | ) |

inline

References RTL2832_TUNER_NAME_LEN.

## set_use_buffer()

void baz_rtl_source_c::set_use_buffer | ( | bool | use = `true` | ) |

inline

## set_verbose()

void baz_rtl_source_c::set_verbose | ( | bool | on = `true` | ) |

inline

## set_vid()

void baz_rtl_source_c::set_vid | ( | uint16_t | vid | ) |

inline

## start()

bool baz_rtl_source_c::start | ( |  | ) |

## stop()

bool baz_rtl_source_c::stop | ( |  | ) |

## use_buffer()

bool baz_rtl_source_c::use_buffer | ( |  | ) | const

inline

## verbose()

bool baz_rtl_source_c::verbose | ( |  | ) | const

inline

## Friends And Related Symbol Documentation

## baz_make_rtl_source_c

BAZ_API baz_rtl_source_c_sptr baz_make_rtl_source_c | ( | bool | defer_creation,
|  | int | output_size
| ) |  |

friend

Return a shared_ptr to a new instance of baz_rtl_source_c.

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

- baz_rtl_source_c.h