fix_cc.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2011-2020 Free Software Foundation, Inc.
* Copyright 2013-2021 Sylvain Munaut <tnt@246tNt.com>
*
* This file is part of gr-iqbalance
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
#include <gnuradio/iqbalance/api.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace iqbalance {
class IQBALANCE_API fix_cc : public gr::sync_block
{
private:
fix_cc(float mag, float phase);
float d_mag, d_phase;
public:
typedef std::shared_ptr<fix_cc> sptr;
static sptr make(float mag=0.0f, float phase=0.0f);
~fix_cc();
void set_mag(float mag) { this->d_mag = mag; }
void set_phase(float phase) { this->d_phase = phase; }
float mag() const { return this->d_mag; }
float phase() const { return this->d_phase; }
void apply_new_corrections (pmt::pmt_t msg);
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
} // namespace iqbalance
} // namespace gr
api.h
IQBALANCE_API
#define IQBALANCE_API
Definition api.h:17
gr::iqbalance::fix_cc
Definition fix_cc.h:20
gr::iqbalance::fix_cc::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::iqbalance::fix_cc::phase
float phase() const
Definition fix_cc.h:37
gr::iqbalance::fix_cc::apply_new_corrections
void apply_new_corrections(pmt::pmt_t msg)
gr::iqbalance::fix_cc::~fix_cc
~fix_cc()
gr::iqbalance::fix_cc::mag
float mag() const
Definition fix_cc.h:36
gr::iqbalance::fix_cc::sptr
std::shared_ptr< fix_cc > sptr
Definition fix_cc.h:27
gr::iqbalance::fix_cc::make
static sptr make(float mag=0.0f, float phase=0.0f)
gr::iqbalance::fix_cc::set_phase
void set_phase(float phase)
Definition fix_cc.h:34
gr::iqbalance::fix_cc::set_mag
void set_mag(float mag)
Definition fix_cc.h:33
gr
Definition fix_cc.h:16