GNU Radio's HOWTO Package
|
Funcube Pro+ Dongle source block. More...
#include <fcdproplus.h>
Public Types | |
typedef boost::shared_ptr< fcdproplus > | sptr |
Public Member Functions | |
virtual void | set_freq (float freq)=0 |
Set frequency with resolution defined by unit. More... | |
virtual void | set_lna (int gain)=0 |
Switches the LNA on/off. More... | |
virtual void | set_mixer_gain (int gain)=0 |
Switches mixer gain onf/off. More... | |
virtual void | set_freq_corr (int ppm)=0 |
Set new frequency correction. More... | |
virtual void | set_if_gain (int gain)=0 |
Set If gain. More... | |
Static Public Member Functions | |
static sptr | make (const std::string device_name="", int unit=1) |
Return a shared_ptr to a new instance of fcdproplus::fcdproplus. More... | |
Funcube Pro+ Dongle source block.
This class provides a soure block for the Funcube Pro+ Dongle by wrapping the alsa audio interface and the USB control interface of the Funcube Dongle into one convenient source block. The hadware audio device is autodetected by the card name. If more than one Pro+ are connected it takes the first card. The block was tested with firmware version 20.3
typedef boost::shared_ptr<fcdproplus> gr::fcdproplus::fcdproplus::sptr |
|
static |
Return a shared_ptr to a new instance of fcdproplus::fcdproplus.
To avoid accidental use of raw pointers, fcdproplus::fcdproplus's constructor is in a private implementation class. fcdproplus::fcdproplus::make is the public interface for creating new instances.
|
pure virtual |
Set frequency with resolution defined by unit.
freq | The 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().
Implemented in gr::fcdproplus::fcdproplus_impl.
|
pure virtual |
Set new frequency correction.
ppm | The new frequency correction in parts per million |
Funcube recommends 0 for the Pro+.
Ref: http://www.funcubedongle.com/MyImages/FCD2ManualV4.pdf
Implemented in gr::fcdproplus::fcdproplus_impl.
|
pure virtual |
Set If gain.
gain | The If gain value between 0 and 59 db |
Implemented in gr::fcdproplus::fcdproplus_impl.
|
pure virtual |
|
pure virtual |
Switches mixer gain onf/off.
gain | true means on. |
Implemented in gr::fcdproplus::fcdproplus_impl.