GNU Radio's LIMESDR Package
gr::limesdr::rfe Class Reference

Allow directly controlling RFE boards. More...

#include <rfe.h>

Public Types

typedef std::shared_ptr< rfesptr

Public Member Functions

 rfe (int comm_type, const std::string &device, const std::string &config_file, char IDRX, char IDTX, char PortRX, char PortTX, char Mode, char Notch, char Atten)
 ~rfe ()
int change_mode (int mode)
int set_fan (int enable)
int set_attenuation (int attenuation)
int set_notch (int enable)

Static Public Member Functions

static sptr make (int comm_type, const std::string &device, const std::string &config_file, char IDRX, char IDTX, char PortRX, char PortTX, char Mode, char Notch, char Atten)

Detailed Description

Allow directly controlling RFE boards.

Member Typedef Documentation

◆ sptr

typedef std::shared_ptr<rfe> gr::limesdr::rfe::sptr

Constructor & Destructor Documentation

◆ rfe()

gr::limesdr::rfe::rfe ( int comm_type,
const std::string & device,
const std::string & config_file,
char IDRX,
char IDTX,
char PortRX,
char PortTX,
char Mode,
char Notch,
char Atten )

◆ ~rfe()

gr::limesdr::rfe::~rfe ( )

Member Function Documentation

◆ change_mode()

int gr::limesdr::rfe::change_mode ( int mode)

Change LimeRFE Mode

Parameters
modeMode to be set: RX(0), TX(1), NONE(2), TXRX(3)
Returns
0 on success, other on failure (see LimeRFE error codes)

◆ make()

sptr gr::limesdr::rfe::make ( int comm_type,
const std::string & device,
const std::string & config_file,
char IDRX,
char IDTX,
char PortRX,
char PortTX,
char Mode,
char Notch,
char Atten )
static

◆ set_attenuation()

int gr::limesdr::rfe::set_attenuation ( int attenuation)

Set RX Attenuation value

Parameters
attenuationSpecifies the attenuation in the RX path. Attenuation [dB] = 2 * attenuation. Value range: [0,7]
Returns
0 on success, other on failure (see LimeRFE error codes)

◆ set_fan()

int gr::limesdr::rfe::set_fan ( int enable)

Enable or disable fan

Parameters
enablefan state: 0 - disable; 1 - enable.
Returns
0 on success, other on failure (see LimeRFE error codes)

◆ set_notch()

int gr::limesdr::rfe::set_notch ( int enable)

Enable or disable AM/FM notch filter

Parameters
enablenotch state: 0 - disable; 1 - enable
Note
Notch filter is only possible up to HAM 430-440 MHz, or Wideband 1-1000 MHz
Returns
0 on success, other on failure (see LimeRFE error codes)

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