19 #ifndef SDRBASE_DSP_CWKEYER_H_ 20 #define SDRBASE_DSP_CWKEYER_H_ 40 void setNbFadeSamples(
unsigned int nbFadeSamples);
41 bool getFadeSample(
bool on,
float& sample);
101 void resetToDefaults();
102 QByteArray serialize()
const;
103 bool deserialize(
const QByteArray& data);
106 void setSampleRate(
int sampleRate);
109 void reset() { m_keyIambicState = KeySilent; }
116 void setKeyboardDots();
117 void setKeyboardDashes();
118 void setKeyboardSilence();
120 static void webapiSettingsPutPatch(
121 const QStringList& channelSettingsKeys,
126 static void webapiFormatChannelSettings(
150 static const signed char m_asciiToMorse[128][7];
152 void applySettings(
const CWKeyerSettings& settings,
bool force =
false);
153 bool handleMessage(
const Message& cmd);
154 void nextStateIambic();
155 void nextStateText();
158 void handleInputMessages();
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
#define MESSAGE_CLASS_DECLARATION
CWSmoother & getCWSmoother()
int m_dotLength
dot length in samples
MessageQueue m_inputMessageQueue
unsigned int m_nbFadeSamples
CWKeyIambicState m_keyIambicState
unsigned int m_fadeInCounter
CWKeyerSettings m_settings
const CWKeyerSettings & getSettings() const
unsigned int m_fadeOutCounter