25 #ifndef GNSS_SDR_FPGA_BUFFER_MONITOR_H 26 #define GNSS_SDR_FPGA_BUFFER_MONITOR_H 50 std::string dump_filename);
67 const std::string BUFFER_MONITOR_DEVICE_NAME = std::string(
"buffer_monitor");
68 static const size_t FPGA_PAGE_SIZE = 0x1000;
69 static const uint32_t test_register_writeval = 0x55AA;
70 static const uint32_t num_sapmples_per_buffer_element = 2;
72 static const uint32_t reset_overflow_flags_and_max_buff_size_reg_addr = 0;
74 static const uint32_t test_reg_addr = 7;
76 static const uint32_t current_buff_occ_freq_band_0_reg_addr = 0;
77 static const uint32_t current_buff_occ_freq_band_1_reg_addr = 1;
78 static const uint32_t max_buff_occ_freq_band_0_reg_addr = 2;
79 static const uint32_t max_buff_occ_freq_band_1_reg_addr = 3;
80 static const uint32_t overflow_flags_reg_addr = 4;
82 static const uint32_t overflow_freq_band_0_bit_pos = 1;
83 static const uint32_t overflow_freq_band_1_bit_pos = 2;
85 int32_t buffer_monitor_test_register();
88 std::string d_dump_filename;
89 std::ofstream d_dump_file;
91 volatile unsigned* d_map_base;
92 int d_device_descriptor;
94 uint32_t d_num_freq_bands;
96 uint32_t d_max_buff_occ_freq_band_0;
97 uint32_t d_max_buff_occ_freq_band_1;
105 #endif // GNSS_SDR_FPGA_BUFFER_MONITOR_H bool check_buffer_overflow_and_monitor_buffer_status()
This function checks buffer overflow and monitors the FPGA buffer status.
Fpga_buffer_monitor(uint32_t num_freq_bands, bool dump, std::string dump_filename)
Constructor.
Class that checks the receiver buffer overflow flags and monitors the status of the receiver buffers...
~Fpga_buffer_monitor()
Destructor.