Utility: CW generator

This commit is contained in:
furrtek 2017-02-15 03:05:38 +00:00
parent aa29348562
commit 0642c57041
17 changed files with 273 additions and 46 deletions

View file

@ -34,6 +34,14 @@
#define MORSE_WORD_SPACE 7
namespace morse {
const uint32_t morse_symbols[5] = {
MORSE_DOT,
MORSE_DASH,
MORSE_SYMBOL_SPACE,
MORSE_LETTER_SPACE,
MORSE_WORD_SPACE
};
size_t morse_encode(std::string& message, const uint32_t time_unit_ms, const uint32_t tone);