Code cleaning

This commit is contained in:
Javier Arribas 2023-07-05 12:02:50 +02:00
parent 1517bb1ab8
commit 8e42b55f8d
4 changed files with 6 additions and 3 deletions

View File

@ -947,7 +947,7 @@ bool ad936x_iio_custom::select_rf_filter(std::string rf_filter)
if (check_device() == false) return false;
int plutoGpo = 0;
// int plutoGpo = 0;
int ret;
ret = iio_device_debug_attr_write(phy, "adi,gpo-manual-mode-enable", "1");

View File

@ -21,8 +21,8 @@
class PpsSamplestamp
{
public:
uint64_t samplestamp; // PPS rising edge samples counter from the beginning of rx stream opperation. Notice that it is reseted to zero if sample buffer overflow is detected on the FPGA side
uint32_t overflow_reg; // >0 indicates overflow situation in the FPGA RX buffer
uint64_t samplestamp = 0; // PPS rising edge samples counter from the beginning of rx stream opperation. Notice that it is reseted to zero if sample buffer overflow is detected on the FPGA side
uint32_t overflow_reg = 0; // >0 indicates overflow situation in the FPGA RX buffer
};
#endif

View File

@ -17,6 +17,7 @@
#include <cstring>
#include <iostream>
#include <sstream>
#include <utility>
#include <vector>
pps_tcp_rx::pps_tcp_rx()

View File

@ -18,10 +18,12 @@
#include "concurrent_queue.h"
#include "pps_samplestamp.h"
#include <arpa/inet.h>
#include <memory>
#include <netinet/in.h>
#include <string>
#include <sys/socket.h>
#include <sys/types.h>
class pps_tcp_rx
{
private: