|
TinyModem
Header-only software audio modem library
|
Converts between characters and the data bits of a frame. More...
#include <DataCodecs.h>

Public Member Functions | |
| virtual | ~DataCodec ()=default |
| virtual void | reset () |
| resets the internal state (called when the carrier is acquired) | |
| virtual int | encode (uint32_t words[2], uint8_t ch) |
| Converts a character into 0, 1 or 2 data words: returns the count. | |
| virtual size_t | decode (Print &out, uint64_t bits, unsigned n_bits)=0 |
| Decodes the data bits of a frame: returns the number of written bytes. | |
Converts between characters and the data bits of a frame.
|
virtualdefault |
|
pure virtual |
Decodes the data bits of a frame: returns the number of written bytes.
Implemented in tinymodem::AsciiCodec, tinymodem::BaudotCodec, tinymodem::BinaryCodec, tinymodem::CallerIDCodec, and tinymodem::UICCodec.
|
inlinevirtual |
Converts a character into 0, 1 or 2 data words: returns the count.
Reimplemented in tinymodem::BaudotCodec.
|
inlinevirtual |
resets the internal state (called when the carrier is acquired)
Reimplemented in tinymodem::BaudotCodec, and tinymodem::CallerIDCodec.