USRP Hardware Driver and Device Manual Version: 4.10.0.0_release
UHD and USRP Manual
Loading...
Searching...
No Matches
iq_dc_cal_coeffs.hpp
Go to the documentation of this file.
1//
2// Copyright 2026 Ettus Research, a National Instruments Brand
3//
4// SPDX-License-Identifier: GPL-3.0-or-later
5//
6
7#pragma once
8
9#include <complex>
10#include <sstream>
11#include <vector>
12
13namespace uhd {
14
16{
18 std::vector<std::complex<double>> coeffs;
20 std::complex<double> dc_offset;
21
22 friend std::ostream& operator<<(std::ostream& os, const iq_dc_cal_coeffs_t& data);
23
24 friend bool operator==(const iq_dc_cal_coeffs_t& lhs, const iq_dc_cal_coeffs_t& rhs);
25};
26
27inline std::ostream& operator<<(std::ostream& os, const iq_dc_cal_coeffs_t& data)
28{
29 os << "iq_dc_cal_coeffs_t(scaling_coeff=" << data.scaling_coeff << ", coeffs=[";
30 for (size_t i = 0; i < data.coeffs.size(); i++) {
31 os << data.coeffs[i];
32 if (i != data.coeffs.size() - 1)
33 os << ", ";
34 }
35 os << "], group_delay=" << data.group_delay << ", dc_offset=" << data.dc_offset
36 << ")";
37 return os;
38}
39
40inline bool operator==(const iq_dc_cal_coeffs_t& lhs, const iq_dc_cal_coeffs_t& rhs)
41{
42 return lhs.coeffs == rhs.coeffs && lhs.group_delay == rhs.group_delay
43 && lhs.scaling_coeff == rhs.scaling_coeff && lhs.dc_offset == rhs.dc_offset;
44}
45
46} // namespace uhd
Definition build_info.hpp:12
bool operator==(const iq_dc_cal_coeffs_t &lhs, const iq_dc_cal_coeffs_t &rhs)
Definition iq_dc_cal_coeffs.hpp:40
UHD_API_HEADER std::ostream & operator<<(std::ostream &os, filter_info_base &f)
Definition iq_dc_cal_coeffs.hpp:16
friend bool operator==(const iq_dc_cal_coeffs_t &lhs, const iq_dc_cal_coeffs_t &rhs)
Definition iq_dc_cal_coeffs.hpp:40
friend std::ostream & operator<<(std::ostream &os, const iq_dc_cal_coeffs_t &data)
Definition iq_dc_cal_coeffs.hpp:27
double scaling_coeff
Definition iq_dc_cal_coeffs.hpp:17
double group_delay
Definition iq_dc_cal_coeffs.hpp:19
std::vector< std::complex< double > > coeffs
Definition iq_dc_cal_coeffs.hpp:18
std::complex< double > dc_offset
Definition iq_dc_cal_coeffs.hpp:20