21#ifndef DEVICE_HANDLER_H
22#define DEVICE_HANDLER_H
37#define LimeNET_Micro 2
44 bool list_read =
false;
50 lms_device_t* address = NULL;
54 bool source_flag =
false;
55 bool sink_flag =
false;
56 int source_channel_mode = -1;
57 int sink_channel_mode = -1;
58 std::string source_filename;
59 std::string sink_filename;
63 lms_info_str_t* list =
new lms_info_str_t[20];
65 std::vector<device> device_vector;
67 bool close_flag =
false;
131 check_blocks(
int device_number,
int block_type,
int channel_mode,
const std::string& filename);
186 double set_rf_freq(
int device_number,
bool direction,
int channel,
float rf_freq);
200 void calibrate(
int device_number,
int direction,
int channel,
double bandwidth);
215 void set_antenna(
int device_number,
int channel,
int direction,
int antenna);
259 unsigned set_gain(
int device_number,
bool direction,
int channel,
unsigned gain_dB);
274 void set_nco(
int device_number,
bool direction,
int channel,
float nco_freq);
Definition: device_handler.h:40
void close_device(int device_number, int block_type)
lms_device_t * get_device(int device_number)
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)
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:81
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)
int open_device(std::string &serial)
void set_antenna(int device_number, int channel, int direction, int antenna)
static device_handler & getInstance()
Definition: device_handler.h:75
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)