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

Raw N-bit binary data: prints the bits as '0' and '1' followed by newline. More...

#include <DataCodecs.h>

Inheritance diagram for tinymodem::BinaryCodec:
Collaboration diagram for tinymodem::BinaryCodec:

Public Member Functions

size_t decode (Print &out, uint64_t bits, unsigned n_bits) 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.

Detailed Description

Raw N-bit binary data: prints the bits as '0' and '1' followed by newline.

Member Function Documentation

◆ decode()

size_t tinymodem::BinaryCodec::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.


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