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.

## bandwidth()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## bandwidth_range()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## bandwidth_values()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## 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.

## frequency()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## frequency_range()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## gain()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## gain_mode()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## gain_modes()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## gain_range()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## gain_values()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## 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.

## 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.

## parent()

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

inline virtual

Implements RTL2832_NAMESPACE::tuner.

## 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 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 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

## m_bandwidth

double RTL2832_NAMESPACE::tuner_skeleton::m_bandwidth

protected

## m_bandwidth_range

range_t RTL2832_NAMESPACE::tuner_skeleton::m_bandwidth_range

protected

## m_bandwidth_values

values_t RTL2832_NAMESPACE::tuner_skeleton::m_bandwidth_values

protected

## m_demod

demod* RTL2832_NAMESPACE::tuner_skeleton::m_demod

protected

## m_freq

double RTL2832_NAMESPACE::tuner_skeleton::m_freq

protected

## m_frequency_range

range_t RTL2832_NAMESPACE::tuner_skeleton::m_frequency_range

protected

## m_gain

double RTL2832_NAMESPACE::tuner_skeleton::m_gain

protected

## m_gain_mode

int RTL2832_NAMESPACE::tuner_skeleton::m_gain_mode

protected

## m_gain_modes

num_name_map_t RTL2832_NAMESPACE::tuner_skeleton::m_gain_modes

protected

## m_gain_range

range_t RTL2832_NAMESPACE::tuner_skeleton::m_gain_range

protected

## m_gain_values

values_t RTL2832_NAMESPACE::tuner_skeleton::m_gain_values

protected

## m_params

tuner::PARAMS RTL2832_NAMESPACE::tuner_skeleton::m_params

protected

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

- rtl2832.h