21#ifndef INCLUDED_LIMERFE_H
22#define INCLUDED_LIMERFE_H
24#include <lime/limeRFE.h>
42 std::string config_file,
87 rfe_dev_t* rfe_dev =
nullptr;
88 rfe_boardState boardState = { RFE_CID_WB_1000,
97 int sdr_device_num = 0;
99 void print_error(
int error);
101 void get_board_state()
103 rfe_boardState currentState = { 0 };
104 if (RFE_GetState(rfe_dev, ¤tState) != 0) {
105 std::cout <<
"LimeRFE: failed to get board state" << std::endl;
109 std::cout <<
"LimeRFE: RX channel: " << (int)currentState.channelIDRX << std::endl;
110 std::cout <<
"LimeRFE: TX channel: " << (int)currentState.channelIDTX << std::endl;
111 std::cout <<
"LimeRFE: PortRX: " << (int)currentState.selPortRX << std::endl;
112 std::cout <<
"LimeRFE: PortTx: " << (int)currentState.selPortTX << std::endl;
113 std::cout <<
"LimeRFE: Mode: " << (int)currentState.mode << std::endl;
114 std::cout <<
"LimeRFE: Notch: " << (int)currentState.notchOnOff << std::endl;
115 std::cout <<
"LimeRFE: Attenuation: " << (int)currentState.attValue << std::endl;
116 std::cout <<
"LimeRFE: Enable SWR: " << (int)currentState.enableSWR << std::endl;
117 std::cout <<
"LimeRFE: SourceSWR: " << (int)currentState.sourceSWR << std::endl;
#define LIMESDR_API
Definition api.h:19
GNURadio block to control LimeRFE boards.
Definition rfe.h:38
int set_attenuation(int attenuation)
rfe(int comm_type, std::string device, std::string config_file, char IDRX, char IDTX, char PortRX, char PortTX, char Mode, char Notch, char Atten)
int set_notch(int enable)
int change_mode(int mode)