arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ReedSolomonFEC< bytecount, additional_bytes > Class Template Reference

Forward error correction using Reed-Solomon: write is encoding and readBytes does the decoding. More...

#include <ReedSolomonFEC.h>

Inheritance diagram for ReedSolomonFEC< bytecount, additional_bytes >:
BaseStream Stream Print

Public Member Functions

 ReedSolomonFEC (Print &print)
 
 ReedSolomonFEC (Stream &stream)
 
int available () override
 
int availableForWrite () override
 
virtual bool begin ()
 
virtual void end ()
 
virtual void flush () override
 
 operator bool ()
 
size_t readBytes (uint8_t *data, size_t len) override
 
size_t write (const uint8_t *data, size_t len) override
 
virtual size_t write (uint8_t ch) override
 

Protected Member Functions

void refillReadBuffer ()
 

Protected Attributes

int _timeout = 10
 
SingleBuffer< uint8_t > encoded {bytecount+additional_bytes}
 
Printp_print = nullptr
 
Streamp_stream = nullptr
 
SingleBuffer< uint8_t > raw {bytecount}
 
RS::ReedSolomon< bytecount, additional_bytes > rs
 
RingBuffer< uint8_t > tmp_in {0}
 
RingBuffer< uint8_t > tmp_out {0}
 

Detailed Description

template<int bytecount, int additional_bytes>
class audio_tools::ReedSolomonFEC< bytecount, additional_bytes >

Forward error correction using Reed-Solomon: write is encoding and readBytes does the decoding.

Author
Phil Schatzmann

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