GNU Radio's SATNOGS Package
|
CW decoder based on overlapping FFT. More...
#include <cw_decoder.h>
Public Member Functions | |
cw_decoder (double samp_rate, int fft_len, int overlapping, float wpm, float snr, float confidence, size_t channels, size_t min_frame_size, size_t max_frame_size) | |
~cw_decoder () | |
decoder_status_t | decode (const void *in, int len) |
void | reset () |
size_t | input_multiple () const |
![]() | |
int | unique_id () const |
decoder (const std::string &name, const std::string &version, int input_item_size, size_t max_frame_len=8192) | |
virtual | ~decoder () |
size_t | max_frame_len () const |
int | sizeof_input_item () const |
std::string | name () const |
std::string | version () const |
Static Public Member Functions | |
static decoder::decoder_sptr | make (double samp_rate, int fft_len, int overlapping, float wpm=22.0, float snr=10.0, float confidence=0.9, size_t channels=16, size_t min_frame_size=5, size_t max_frame_size=256) |
Additional Inherited Members | |
![]() | |
static int | base_unique_id |
![]() | |
void | incr_nitems_read (size_t nitems) |
uint64_t | nitems_read () const |
CW decoder based on overlapping FFT.
gr::satnogs::cw_decoder::cw_decoder | ( | double | samp_rate, |
int | fft_len, | ||
int | overlapping, | ||
float | wpm, | ||
float | snr, | ||
float | confidence, | ||
size_t | channels, | ||
size_t | min_frame_size, | ||
size_t | max_frame_size | ||
) |
gr::satnogs::cw_decoder::~cw_decoder | ( | ) |
|
virtual |
Decodes a buffer of input items contained in the in buffer. This method is called continuously by the frame_decoder. Based on the returned status data, the frame_decoder() instructs properly the GNU Radio scheduler and/or propagates decoded data.
As the number of input items may not enough to decode a frame, each decoder should keep internal state, so decoding can be accomplished after an arbitrary number of calls to this method
in | the input items |
nitems | the number of input items contained in the in buffer |
Implements gr::satnogs::decoder.
|
virtual |
Reimplemented from gr::satnogs::decoder.
|
static |
|
virtual |
Resets the internal state of the decoder to the initial defaults
Implements gr::satnogs::decoder.