Loading...
Searching...
No Matches
phase_modulator_fc.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_ANALOG_PHASE_MODULATOR_FC_H
#define INCLUDED_ANALOG_PHASE_MODULATOR_FC_H
#include <gnuradio/analog/api.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace analog {
/*!
* \brief Phase modulator block
* \ingroup modulators_blk
*
* \details
* output = complex(cos(in*sensitivity), sin(in*sensitivity))
*
* Input stream 0: floats
* Output stream 0: complex
*/
class ANALOG_API phase_modulator_fc : virtual public sync_block
{
public:
// gr::analog::phase_modulator_fc::sptr
typedef std::shared_ptr<phase_modulator_fc> sptr;
/* \brief Make a phase modulator block.
*
* \param sensitivity Phase change sensitivity of input amplitude.
*/
static sptr make(double sensitivity);
virtual double sensitivity() const = 0;
virtual double phase() const = 0;
virtual void set_sensitivity(double s) = 0;
virtual void set_phase(double p) = 0;
};
} /* namespace analog */
} /* namespace gr */
#endif /* INCLUDED_ANALOG_PHASE_MODULATOR_FC_H */
gr::analog::phase_modulator_fc
Phase modulator block.
Definition phase_modulator_fc.h:31
gr::analog::phase_modulator_fc::sensitivity
virtual double sensitivity() const =0
gr::analog::phase_modulator_fc::set_phase
virtual void set_phase(double p)=0
gr::analog::phase_modulator_fc::phase
virtual double phase() const =0
gr::analog::phase_modulator_fc::make
static sptr make(double sensitivity)
gr::analog::phase_modulator_fc::set_sensitivity
virtual void set_sensitivity(double s)=0
gr::analog::phase_modulator_fc::sptr
std::shared_ptr< phase_modulator_fc > sptr
Definition phase_modulator_fc.h:34
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
ANALOG_API
#define ANALOG_API
Definition gr-analog/include/gnuradio/analog/api.h:18
gr::analog
Definition agc.h:19
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h