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

The PSK31 Varicode (as extended by fldigi to all 256 byte values): frequent characters have short codes. A code starts and ends with 1 and contains no "00": the characters are separated by "00". More...

#include <PSK.h>

Classes

struct  Code
 Varicode bits of a character. More...

Static Public Member Functions

static Code encode (uint8_t ch)
 Code of the indicated byte.
static int decode (uint16_t bits)
 Byte of the indicated code: returns -1 if the code is unknown.

Static Protected Member Functions

static const Code * table ()

Detailed Description

The PSK31 Varicode (as extended by fldigi to all 256 byte values): frequent characters have short codes. A code starts and ends with 1 and contains no "00": the characters are separated by "00".

Member Function Documentation

◆ decode()

int tinymodem::Varicode::decode ( uint16_t bits)
inlinestatic

Byte of the indicated code: returns -1 if the code is unknown.

◆ encode()

Code tinymodem::Varicode::encode ( uint8_t ch)
inlinestatic

Code of the indicated byte.

◆ table()

const Code * tinymodem::Varicode::table ( )
inlinestaticprotected

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