21 #ifndef DEVICE_HANDLER_H
22 #define DEVICE_HANDLER_H
24 #include <LimeSuite.h>
37 #define LimeSDR_Mini 1
38 #define LimeNET_Micro 2
46 bool list_read =
false;
52 lms_device_t* address = NULL;
56 bool source_flag =
false;
57 bool sink_flag =
false;
58 int source_channel_mode = -1;
59 int sink_channel_mode = -1;
60 std::string source_filename;
61 std::string sink_filename;
67 rfe_dev_t* rfe_dev =
nullptr;
72 lms_info_str_t* list =
new lms_info_str_t[20];
74 std::vector<device> device_vector;
76 bool close_flag =
false;
143 const std::string& filename);
200 double set_rf_freq(
int device_number,
bool direction,
int channel,
float rf_freq);
214 void calibrate(
int device_number,
int direction,
int channel,
double bandwidth);
229 void set_antenna(
int device_number,
int channel,
int direction,
int antenna);
245 double analog_bandw);
261 double digital_bandw);
279 unsigned set_gain(
int device_number,
bool direction,
int channel,
unsigned gain_dB);
294 void set_nco(
int device_number,
bool direction,
int channel,
float nco_freq);
Definition: device_handler.h:42
void close_device(int device_number, int block_type)
static device_handler & getInstance()
Definition: device_handler.h:84
double set_digital_filter(int device_number, bool direction, int channel, double digital_bandw)
void set_nco(int device_number, bool direction, int channel, float nco_freq)
void disable_DC_corrections(int device_number)
void set_samp_rate(int device_number, double &rate)
lms_device_t * get_device(int device_number)
void update_rfe_channels()
unsigned set_gain(int device_number, bool direction, int channel, unsigned gain_dB)
void settings_from_file(int device_number, const std::string &filename, int *antenna_tx)
std::recursive_mutex block_mutex
Definition: device_handler.h:91
void error(int device_number)
void set_oversampling(int device_number, int oversample)
double set_analog_filter(int device_number, bool direction, int channel, double analog_bandw)
void write_lms_reg(int device_number, uint32_t address, uint16_t val)
int open_device(std::string &serial)
void set_rfe_device(rfe_dev_t *rfe_dev)
void set_antenna(int device_number, int channel, int direction, int antenna)
void set_tcxo_dac(int device_number, uint16_t dacVal)
void enable_channels(int device_number, int channel_mode, bool direction)
void calibrate(int device_number, int direction, int channel, double bandwidth)
double set_rf_freq(int device_number, bool direction, int channel, float rf_freq)
void check_blocks(int device_number, int block_type, int channel_mode, const std::string &filename)