Loading...
Searching...
No Matches
fading_model.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_CHANNELS_FADING_MODEL_H
#define INCLUDED_CHANNELS_FADING_MODEL_H
#include <gnuradio/channels/api.h>
#include <gnuradio/sync_block.h>
#include <gnuradio/types.h>
namespace gr {
namespace channels {
/*!
* \brief fading simulator
* \ingroup channel_models_blk
*
* \details
* This block implements a basic fading model simulator that can
* be used to help evaluate, design, and test various signals,
* waveforms, and algorithms.
*/
class CHANNELS_API fading_model : virtual public sync_block
{
public:
// gr::channels::channel_model::sptr
typedef std::shared_ptr<fading_model> sptr;
/*! \brief Build the channel simulator.
*
* \param N the number of sinusoids to use in simulating the channel; 8 is a good
* value
* \param fDTs normalized maximum Doppler frequency, fD * Ts
* \param LOS include Line-of-Site path? selects between Rayleigh (NLOS) and Rician
* (LOS) models \param K Rician factor (ratio of the specular power to the
* scattered power) \param seed a random number to seed the noise generators
*/
static sptr make(unsigned int N,
float fDTs = 0.01f,
bool LOS = true,
float K = 4,
uint32_t seed = 0);
virtual float fDTs() = 0;
virtual float K() = 0;
virtual float step() = 0;
virtual void set_fDTs(float fDTs) = 0;
virtual void set_K(float K) = 0;
virtual void set_step(float step) = 0;
};
} /* namespace channels */
} /* namespace gr */
#endif /* INCLUDED_CHANNELS_FADING_MODEL_H */
gr::channels::fading_model
fading simulator
Definition fading_model.h:31
gr::channels::fading_model::set_step
virtual void set_step(float step)=0
gr::channels::fading_model::K
virtual float K()=0
gr::channels::fading_model::make
static sptr make(unsigned int N, float fDTs=0.01f, bool LOS=true, float K=4, uint32_t seed=0)
Build the channel simulator.
gr::channels::fading_model::fDTs
virtual float fDTs()=0
gr::channels::fading_model::sptr
std::shared_ptr< fading_model > sptr
Definition fading_model.h:34
gr::channels::fading_model::set_K
virtual void set_K(float K)=0
gr::channels::fading_model::step
virtual float step()=0
gr::channels::fading_model::set_fDTs
virtual void set_fDTs(float fDTs)=0
gr::sync_block
synchronous 1:1 input to output with history
Definition sync_block.h:26
api.h
CHANNELS_API
#define CHANNELS_API
Definition gr-channels/include/gnuradio/channels/api.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h
types.h