TinyModem
Header-only software audio modem library
Loading...
Searching...
No Matches
tinymodem::MorseCode Class Reference

The Morse code tables and timing. A code is a string of '.' (dot), '-' (dash), '_' (long dash of the American L), '=' (longer dash of the American 0) and ' ' (space within a character of American Morse). More...

#include <Morse.h>

Classes

struct  Timing
 Lengths in units. More...
struct  Entry

Static Public Member Functions

static const Timing & timing (MorseAlphabet alphabet)
static const char * encode (MorseAlphabet alphabet, char ch)
static char decode (MorseAlphabet alphabet, const char *code)
 Character of a code: returns 0 if the code is unknown.

Static Protected Member Functions

static const Entry * table (MorseAlphabet alphabet)

Detailed Description

The Morse code tables and timing. A code is a string of '.' (dot), '-' (dash), '_' (long dash of the American L), '=' (longer dash of the American 0) and ' ' (space within a character of American Morse).

Member Function Documentation

◆ decode()

char tinymodem::MorseCode::decode ( MorseAlphabet alphabet,
const char * code )
inlinestatic

Character of a code: returns 0 if the code is unknown.

◆ encode()

const char * tinymodem::MorseCode::encode ( MorseAlphabet alphabet,
char ch )
inlinestatic

Code of a character (upper or lower case): returns nullptr if the character is not in the alphabet

◆ table()

const Entry * tinymodem::MorseCode::table ( MorseAlphabet alphabet)
inlinestaticprotected

◆ timing()

const Timing & tinymodem::MorseCode::timing ( MorseAlphabet alphabet)
inlinestatic

Timing of the alphabet: American Morse has shorter dashes, long dashes and spaces within characters


The documentation for this class was generated from the following file: