gr-baz Package

RTL2832_NAMESPACE::tuner_skeleton Class Reference

`#include <rtl2832.h>`

Inheritance diagram for RTL2832_NAMESPACE::tuner_skeleton:
[legend]

## Public Member Functions
| tuner_skeleton (demod *p)
virtual | ~tuner_skeleton ()
virtual int | initialise (tuner::PPARAMS params=NULL)
virtual const char * | name () const
virtual int | set_frequency (double freq)
virtual int | set_bandwidth (double bw)
virtual int | set_gain (double gain)
virtual int | set_gain_mode (int mode)
virtual int | set_i2c_repeater (bool on=true, const char *function_name=NULL, int line_number=-1, const char *line=NULL)
virtual int | i2c_read (uint8_t i2c_addr, uint8_t *buffer, int len)
virtual int | i2c_write (uint8_t i2c_addr, uint8_t *buffer, int len)
virtual int | i2c_write_reg (uint8_t i2c_addr, uint8_t reg, uint8_t val)
virtual int | i2c_read_reg (uint8_t i2c_addr, uint8_t reg, uint8_t &data)
virtual double | frequency () const
virtual double | bandwidth () const
virtual double | gain () const
virtual int | gain_mode () const
virtual int | set_auto_gain_mode (bool on=true)
virtual range_t | gain_range () const
virtual values_t | gain_values () const
virtual range_t | frequency_range () const
virtual range_t | bandwidth_range () const
virtual values_t | bandwidth_values () const
virtual num_name_map_t | gain_modes () const
virtual bool | calc_appropriate_gain_mode (int &mode)
virtual bool | auto_gain_mode () const
const tuner::PARAMS & | params () const
demod * | parent () const
Public Member Functions inherited from RTL2832_NAMESPACE::tuner
virtual | ~tuner ()

## Protected Attributes
demod * | m_demod
tuner::PARAMS | m_params
bool | m_auto_gain_mode
int | m_gain_mode
double | m_freq
double | m_gain
double | m_bandwidth
range_t | m_gain_range
values_t | m_gain_values
range_t | m_frequency_range
range_t | m_bandwidth_range
values_t | m_bandwidth_values
num_name_map_t | m_gain_modes

## Additional Inherited Members
Public Types inherited from RTL2832_NAMESPACE::tuner
enum | gain_mode { NOT_SUPPORTED = -1 , DEFAULT = 0 }
typedef tuner *(* | CreateTunerFn) (demod *p)
typedef int(* | ProbeTunerFn) (demod *p)
typedef struct RTL2832_NAMESPACE::tuner::params | PARAMS
typedef struct RTL2832_NAMESPACE::tuner::params * | PPARAMS

## Constructor & Destructor Documentation

## ◆ tuner_skeleton()

RTL2832_NAMESPACE::tuner_skeleton::tuner_skeleton | ( | demod * | p | ) |

## ◆ ~tuner_skeleton()

virtual RTL2832_NAMESPACE::tuner_skeleton::~tuner_skeleton | ( |  | ) |
| virtual

## Member Function Documentation

## ◆ auto_gain_mode()

virtual bool RTL2832_NAMESPACE::tuner_skeleton::auto_gain_mode | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_auto_gain_mode.

## ◆ bandwidth()

virtual double RTL2832_NAMESPACE::tuner_skeleton::bandwidth | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_bandwidth.

## ◆ bandwidth_range()

virtual range_t RTL2832_NAMESPACE::tuner_skeleton::bandwidth_range | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_bandwidth_range.

## ◆ bandwidth_values()

virtual values_t RTL2832_NAMESPACE::tuner_skeleton::bandwidth_values | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_bandwidth_values.

## ◆ calc_appropriate_gain_mode()

virtual bool RTL2832_NAMESPACE::tuner_skeleton::calc_appropriate_gain_mode | ( | int & | mode | ) |
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k.

References m_gain_mode.

## ◆ frequency()

virtual double RTL2832_NAMESPACE::tuner_skeleton::frequency | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_freq.

## ◆ frequency_range()

virtual range_t RTL2832_NAMESPACE::tuner_skeleton::frequency_range | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_frequency_range.

## ◆ gain()

virtual double RTL2832_NAMESPACE::tuner_skeleton::gain | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_gain.

Referenced by set_gain(), RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000::set_gain(), RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k::set_gain(), RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0012::set_gain(), RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0013::set_gain(), RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc2580::set_gain(), and RTL2832_NAMESPACE::TUNERS_NAMESPACE::r820t::set_gain().

## ◆ gain_mode()

virtual int RTL2832_NAMESPACE::tuner_skeleton::gain_mode | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_gain_mode.

## ◆ gain_modes()

virtual num_name_map_t RTL2832_NAMESPACE::tuner_skeleton::gain_modes | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_gain_modes.

## ◆ gain_range()

virtual range_t RTL2832_NAMESPACE::tuner_skeleton::gain_range | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_gain_range.

## ◆ gain_values()

virtual values_t RTL2832_NAMESPACE::tuner_skeleton::gain_values | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_gain_values.

## ◆ i2c_read()

virtual int RTL2832_NAMESPACE::tuner_skeleton::i2c_read | ( | uint8_t | i2c_addr,
|  | uint8_t * | buffer,
|  | int | len )
| virtual

Implements RTL2832_NAMESPACE::tuner.

## ◆ i2c_read_reg()

virtual int RTL2832_NAMESPACE::tuner_skeleton::i2c_read_reg | ( | uint8_t | i2c_addr,
|  | uint8_t | reg,
|  | uint8_t & | data )
| virtual

Implements RTL2832_NAMESPACE::i2c_interface.

## ◆ i2c_write()

virtual int RTL2832_NAMESPACE::tuner_skeleton::i2c_write | ( | uint8_t | i2c_addr,
|  | uint8_t * | buffer,
|  | int | len )
| virtual

Implements RTL2832_NAMESPACE::tuner.

## ◆ i2c_write_reg()

virtual int RTL2832_NAMESPACE::tuner_skeleton::i2c_write_reg | ( | uint8_t | i2c_addr,
|  | uint8_t | reg,
|  | uint8_t | val )
| virtual

Implements RTL2832_NAMESPACE::i2c_interface.

## ◆ initialise()

virtual int RTL2832_NAMESPACE::tuner_skeleton::initialise | ( | tuner::PPARAMS | params = NULL | ) |
| virtual

Implements RTL2832_NAMESPACE::tuner.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0012, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0013, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc2580, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::r820t.

References params().

## ◆ name()

virtual const char * RTL2832_NAMESPACE::tuner_skeleton::name | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::named_interface.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0012, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0013, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc2580, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::r820t.

## ◆ params()

const tuner::PARAMS & RTL2832_NAMESPACE::tuner_skeleton::params | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_params.

Referenced by initialise().

## ◆ parent()

demod * RTL2832_NAMESPACE::tuner_skeleton::parent | ( |  | ) | const
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

References m_demod.

## ◆ set_auto_gain_mode()

virtual int RTL2832_NAMESPACE::tuner_skeleton::set_auto_gain_mode | ( | bool | on = true | ) |
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k.

References m_auto_gain_mode, and RTL2832_NAMESPACE::SUCCESS.

## ◆ set_bandwidth()

virtual int RTL2832_NAMESPACE::tuner_skeleton::set_bandwidth | ( | double | bw | ) |
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0012, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0013, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc2580, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::r820t.

References RTL2832_NAMESPACE::SUCCESS.

## ◆ set_frequency()

virtual int RTL2832_NAMESPACE::tuner_skeleton::set_frequency | ( | double | freq | ) |
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0012, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0013, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc2580, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::r820t.

References RTL2832_NAMESPACE::SUCCESS.

## ◆ set_gain()

virtual int RTL2832_NAMESPACE::tuner_skeleton::set_gain | ( | double | gain | ) |
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0012, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc0013, RTL2832_NAMESPACE::TUNERS_NAMESPACE::fc2580, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::r820t.

References gain(), and RTL2832_NAMESPACE::SUCCESS.

## ◆ set_gain_mode()

virtual int RTL2832_NAMESPACE::tuner_skeleton::set_gain_mode | ( | int | mode | ) |
| inline virtual

Implements RTL2832_NAMESPACE::tuner.

Reimplemented in RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4000, and RTL2832_NAMESPACE::TUNERS_NAMESPACE::e4k.

References RTL2832_NAMESPACE::SUCCESS.

## ◆ set_i2c_repeater()

virtual int RTL2832_NAMESPACE::tuner_skeleton::set_i2c_repeater | ( | bool | on = true,
|  | const char * | function_name = NULL,
|  | int | line_number = -1,
|  | const char * | line = NULL )
| virtual

Implements RTL2832_NAMESPACE::tuner.

## Member Data Documentation

## ◆ m_auto_gain_mode

bool RTL2832_NAMESPACE::tuner_skeleton::m_auto_gain_mode
| protected

Referenced by auto_gain_mode(), and set_auto_gain_mode().

## ◆ m_bandwidth

double RTL2832_NAMESPACE::tuner_skeleton::m_bandwidth
| protected

Referenced by bandwidth().

## ◆ m_bandwidth_range

range_t RTL2832_NAMESPACE::tuner_skeleton::m_bandwidth_range
| protected

Referenced by bandwidth_range().

## ◆ m_bandwidth_values

values_t RTL2832_NAMESPACE::tuner_skeleton::m_bandwidth_values
| protected

Referenced by bandwidth_values().

## ◆ m_demod

demod* RTL2832_NAMESPACE::tuner_skeleton::m_demod
| protected

Referenced by parent().

## ◆ m_freq

double RTL2832_NAMESPACE::tuner_skeleton::m_freq
| protected

Referenced by frequency().

## ◆ m_frequency_range

range_t RTL2832_NAMESPACE::tuner_skeleton::m_frequency_range
| protected

Referenced by frequency_range().

## ◆ m_gain

double RTL2832_NAMESPACE::tuner_skeleton::m_gain
| protected

Referenced by gain().

## ◆ m_gain_mode

int RTL2832_NAMESPACE::tuner_skeleton::m_gain_mode
| protected

Referenced by calc_appropriate_gain_mode(), and gain_mode().

## ◆ m_gain_modes

num_name_map_t RTL2832_NAMESPACE::tuner_skeleton::m_gain_modes
| protected

Referenced by gain_modes().

## ◆ m_gain_range

range_t RTL2832_NAMESPACE::tuner_skeleton::m_gain_range
| protected

Referenced by gain_range().

## ◆ m_gain_values

values_t RTL2832_NAMESPACE::tuner_skeleton::m_gain_values
| protected

Referenced by gain_values().

## ◆ m_params

tuner::PARAMS RTL2832_NAMESPACE::tuner_skeleton::m_params
| protected

Referenced by params().

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

- rtl2832.h