GNU Radio's HOWTO Package
gr::fcdproplus::fcdproplus_impl Class Reference

#include <fcdproplus_impl.h>

Inheritance diagram for gr::fcdproplus::fcdproplus_impl:

Public Member Functions

 fcdproplus_impl (const std::string user_device_name, int unit)
 
 ~fcdproplus_impl ()
 
void set_freq (float freq)
 Set frequency with resolution defined by unit. More...
 
void set_lna (int gain)
 Switches the LNA on/off. More...
 
void set_mixer_gain (int gain)
 Switches mixer gain onf/off. More...
 
void set_freq_corr (int ppm)
 Set new frequency correction. More...
 
void set_if_gain (int gain)
 Set If gain. More...
 

Additional Inherited Members

- Public Types inherited from gr::fcdproplus::fcdproplus
typedef boost::shared_ptr< fcdproplussptr
 
- Static Public Member Functions inherited from gr::fcdproplus::fcdproplus
static sptr make (const std::string device_name="", int unit=1)
 Return a shared_ptr to a new instance of fcdproplus::fcdproplus. More...
 

Constructor & Destructor Documentation

◆ fcdproplus_impl()

gr::fcdproplus::fcdproplus_impl::fcdproplus_impl ( const std::string  user_device_name,
int  unit 
)

◆ ~fcdproplus_impl()

gr::fcdproplus::fcdproplus_impl::~fcdproplus_impl ( )

Member Function Documentation

◆ set_freq()

void gr::fcdproplus::fcdproplus_impl::set_freq ( float  freq)
virtual

Set frequency with resolution defined by unit.

Parameters
freqThe frequency in unit Hz

Sets the frequency of the Funcube Dongle with Hz or Khz resolution depending on the unit paramater ( 1: Hz , 1000 Khz ) applying the frequency correction set by set_freq_corr().

Implements gr::fcdproplus::fcdproplus.

◆ set_freq_corr()

void gr::fcdproplus::fcdproplus_impl::set_freq_corr ( int  ppm)
virtual

Set new frequency correction.

Parameters
ppmThe new frequency correction in parts per million

Funcube recommends 0 for the Pro+.

Ref: http://www.funcubedongle.com/MyImages/FCD2ManualV4.pdf

Implements gr::fcdproplus::fcdproplus.

◆ set_if_gain()

void gr::fcdproplus::fcdproplus_impl::set_if_gain ( int  gain)
virtual

Set If gain.

Parameters
gainThe If gain value between 0 and 59 db

Implements gr::fcdproplus::fcdproplus.

◆ set_lna()

void gr::fcdproplus::fcdproplus_impl::set_lna ( int  gain)
virtual

Switches the LNA on/off.

Parameters
gainlna on/off.

Implements gr::fcdproplus::fcdproplus.

◆ set_mixer_gain()

void gr::fcdproplus::fcdproplus_impl::set_mixer_gain ( int  gain)
virtual

Switches mixer gain onf/off.

Parameters
gaintrue means on.

Implements gr::fcdproplus::fcdproplus.


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