22 #ifndef GNSS_SDR_FPGA_DYNAMIC_BIT_SELECTION_H 23 #define GNSS_SDR_FPGA_DYNAMIC_BIT_SELECTION_H 59 const std::string switch_device_name = std::string(
"AXIS_Switch_v1_0_0");
60 const std::string dyn_bit_sel_device_name = std::string(
"dynamic_bits_selector");
61 static const size_t FPGA_PAGE_SIZE = 0x1000;
62 static const uint32_t Num_bits_ADC = 12;
63 static const uint32_t Num_bits_FPGA = 4;
64 static const uint32_t shift_out_bits_default = Num_bits_ADC - Num_bits_FPGA;
65 static const uint32_t shift_out_bits_min = 0;
66 static const uint32_t shift_out_bit_max = Num_bits_ADC - Num_bits_FPGA;
69 static const uint32_t Power_Threshold_High = 9000;
70 static const uint32_t Power_Threshold_Low = 3000;
72 void open_device(
volatile unsigned **d_map_base,
int &d_dev_descr,
int freq_band);
73 void bit_selection_per_rf_band(
volatile unsigned *d_map_base, uint32_t shift_out_bits);
74 void close_device(
volatile unsigned *d_map_base,
int &d_dev_descr);
76 volatile unsigned *d_map_base_freq_band_1;
77 volatile unsigned *d_map_base_freq_band_2;
78 int d_dev_descr_freq_band_1;
79 int d_dev_descr_freq_band_2;
80 uint32_t d_shift_out_bits_freq_band_1;
81 uint32_t d_shift_out_bits_freq_band_2;
82 bool d_enable_rx1_band;
83 bool d_enable_rx2_band;
89 #endif // GNSS_SDR_FPGA_DYNAMIC_BIT_SELECTION_H void bit_selection(void)
This function configures the switch in th eFPGA.
Fpga_dynamic_bit_selection(bool enable_rx1_band, bool enable_rx2_band)
Constructor.
Class that controls the switch in the FPGA, which connects the FPGA acquisition and multicorrelator m...
~Fpga_dynamic_bit_selection()
Destructor.