gr-baz Package
|
capture samples from an RTL2832-based device. More...
#include <baz_rtl_source_c.h>
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) |
![]() | |
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 | |
![]() | |
enum | level { LOG_LEVEL_ERROR = -1 , LOG_LEVEL_DEFAULT = 0 , LOG_LEVEL_VERBOSE = 1 } |
capture samples from an RTL2832-based device.
baz_rtl_source_c::~baz_rtl_source_c | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool baz_rtl_source_c::create | ( | bool | reset_defaults = false | ) |
void baz_rtl_source_c::destroy | ( | ) |
|
inline |
|
inline |
|
inline |
References RTL2832_NAMESPACE::demod::active_tuner(), and RTL2832_NAMESPACE::tuner::gain().
|
inline |
References RTL2832_NAMESPACE::demod::active_tuner().
std::string baz_rtl_source_c::gain_mode_string | ( | ) | const |
|
inline |
|
inline |
|
inline |
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 | ||
) |
|
inline |
References RTL2832_NAMESPACE::demod::name().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References RTL2832_NAMESPACE::demod::sample_rate().
|
inline |
References RTL2832_NAMESPACE::demod::sample_rate_range().
|
inline |
bool baz_rtl_source_c::set_auto_gain_mode | ( | bool | on = true | ) |
bool baz_rtl_source_c::set_bandwidth | ( | double | bandwidth | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void baz_rtl_source_c::set_defaults | ( | ) |
|
inline |
References RTL2832_FIR_COEFF_COUNT.
bool baz_rtl_source_c::set_frequency | ( | double | freq | ) |
bool baz_rtl_source_c::set_gain | ( | double | gain | ) |
bool baz_rtl_source_c::set_gain_mode | ( | const char * | mode | ) |
bool baz_rtl_source_c::set_gain_mode | ( | int | mode | ) |
bool baz_rtl_source_c::set_output_format | ( | int | size | ) |
|
inline |
|
inline |
|
inline |
bool baz_rtl_source_c::set_sample_rate | ( | double | sample_rate | ) |
void baz_rtl_source_c::set_status_msgq | ( | gr::msg_queue::sptr | queue | ) |
|
inline |
References RTL2832_TUNER_NAME_LEN.
|
inline |
|
inline |
|
inline |
bool baz_rtl_source_c::start | ( | ) |
bool baz_rtl_source_c::stop | ( | ) |
|
inline |
|
inline |
|
friend |
Return a shared_ptr to a new instance of baz_rtl_source_c.