| USRP Hardware Driver and Device Manual Version: 4.10.0.0 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
13 namespace uhd {
14
15 struct iq_dc_cal_coeffs_t
16{
17 double scaling_coeff;
18 std::vector<std::complex<double>> coeffs;
19 double group_delay;
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
27 inline 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
40 inline 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
uhd
Definition build_info.hpp:12
uhd::operator==
bool operator==(const iq_dc_cal_coeffs_t &lhs, const iq_dc_cal_coeffs_t &rhs)
Definition iq_dc_cal_coeffs.hpp:40
uhd::operator<<
UHD_API_HEADER std::ostream & operator<<(std::ostream &os, filter_info_base &f)
uhd::iq_dc_cal_coeffs_t
Definition iq_dc_cal_coeffs.hpp:16
uhd::iq_dc_cal_coeffs_t::operator==
friend bool operator==(const iq_dc_cal_coeffs_t &lhs, const iq_dc_cal_coeffs_t &rhs)
Definition iq_dc_cal_coeffs.hpp:40
uhd::iq_dc_cal_coeffs_t::operator<<
friend std::ostream & operator<<(std::ostream &os, const iq_dc_cal_coeffs_t &data)
Definition iq_dc_cal_coeffs.hpp:27
uhd::iq_dc_cal_coeffs_t::scaling_coeff
double scaling_coeff
Definition iq_dc_cal_coeffs.hpp:17
uhd::iq_dc_cal_coeffs_t::group_delay
double group_delay
Definition iq_dc_cal_coeffs.hpp:19
uhd::iq_dc_cal_coeffs_t::coeffs
std::vector< std::complex< double > > coeffs
Definition iq_dc_cal_coeffs.hpp:18
uhd::iq_dc_cal_coeffs_t::dc_offset
std::complex< double > dc_offset
Definition iq_dc_cal_coeffs.hpp:20