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

UIC-751-3 ground-train or train-ground decoder. More...

#include <DataCodecs.h>

Inheritance diagram for tinymodem::UICCodec:
Collaboration diagram for tinymodem::UICCodec:

Classes

struct  Message
 UIC message code and its meaning. More...

Public Member Functions

 UICCodec (bool trainToGround=false)
void setTrainToGround (bool flag)
size_t decode (Print &out, uint64_t input, unsigned) override
 Decodes the data bits of a frame: returns the number of written bytes.
Public Member Functions inherited from tinymodem::DataCodec
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.

Protected Member Functions

const char * meaning (unsigned code)

Protected Attributes

bool train = false

Detailed Description

UIC-751-3 ground-train or train-ground decoder.

Constructor & Destructor Documentation

◆ UICCodec()

tinymodem::UICCodec::UICCodec ( bool trainToGround = false)
inline

Member Function Documentation

◆ decode()

size_t tinymodem::UICCodec::decode ( Print & out,
uint64_t bits,
unsigned n_bits )
inlineoverridevirtual

Decodes the data bits of a frame: returns the number of written bytes.

Implements tinymodem::DataCodec.

◆ meaning()

const char * tinymodem::UICCodec::meaning ( unsigned code)
inlineprotected

◆ setTrainToGround()

void tinymodem::UICCodec::setTrainToGround ( bool flag)
inline

Member Data Documentation

◆ train

bool tinymodem::UICCodec::train = false
protected

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