-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62f6322
commit 1d8cc56
Showing
13 changed files
with
95 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* -*- c++ -*- */ | ||
/* | ||
* Copyright 2006,2012 Free Software Foundation, Inc. | ||
* | ||
* This file is part of GNU Radio | ||
* | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
* | ||
*/ | ||
|
||
#ifndef INCLUDED_ANALOG_SQUELCH_BASE_CC_H | ||
#define INCLUDED_ANALOG_SQUELCH_BASE_CC_H | ||
|
||
#include <gnuradio/analog/api.h> | ||
#include <gnuradio/block.h> | ||
|
||
namespace gr { | ||
namespace analog { | ||
|
||
/*! | ||
* \brief basic squelch block; to be subclassed for other squelches. | ||
* \ingroup level_blk | ||
*/ | ||
class ANALOG_API squelch_base_cc : virtual public block | ||
{ | ||
protected: | ||
virtual void update_state(const gr_complex& sample) = 0; | ||
virtual bool mute() const = 0; | ||
|
||
public: | ||
squelch_base_cc(){}; | ||
virtual int ramp() const = 0; | ||
virtual void set_ramp(int ramp) = 0; | ||
virtual bool gate() const = 0; | ||
virtual void set_gate(bool gate) = 0; | ||
virtual bool unmuted() const = 0; | ||
|
||
virtual std::vector<float> squelch_range() const = 0; | ||
}; | ||
|
||
} /* namespace analog */ | ||
} /* namespace gr */ | ||
|
||
#endif /* INCLUDED_ANALOG_SQUELCH_BASE_CC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters