21#ifndef CW_DECODER_PRIV_H_
22#define CW_DECODER_PRIV_H_
57 typedef enum { NO_SYNC, SEARCH_DOT, SEARCH_DASH, SEARCH_SPACE } cw_dec_state_t;
60 const float d_confidence;
61 const size_t d_dot_duration;
62 const size_t d_dash_duration;
63 const size_t d_short_pause_duration;
64 const size_t d_long_pause_duration;
65 const size_t d_min_len;
66 const size_t d_max_len;
67 const float d_trigger_level;
71 cw_dec_state_t d_state;
85 gr::logger_ptr d_logger;
87 inline bool is_triggered(
float meanval,
float cv);
89 inline bool check_conf_level(
size_t cnt,
size_t target);
91 inline void enter_no_sync();
93 inline void enter_search_dot();
95 inline void enter_search_dash();
97 inline void enter_search_space();
99 inline void reset_snr_stats();
#define SATNOGS_API
Definition: api.h:19
Helper class for the CW decoder.
Definition: cw_decoder_priv.h:42
cw_decoder_priv(double freq, float confidence, size_t dot_duration, size_t min_len, size_t max_len)
decoder_status_t decode(float newval, float snr)
A Binary tree representation of the Morse coding scheme. Left transitions occur when a dot is receive...
Definition: morse_tree.h:64
data_t s[NROOTS]
Definition: decode_rs.h:75
morse_symbol_t
Definition: morse.h:28
class decoder_status decoder_status_t
Definition: decoder.h:56
Definition: amsat_duv_decoder.h:29