arduino-audio-tools
|
Forward error correction using Reed-Solomon: write is encoding and readBytes does the decoding. More...
#include <ReedSolomonFEC.h>
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} |
Print * | p_print = nullptr |
Stream * | p_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} |
Forward error correction using Reed-Solomon: write is encoding and readBytes does the decoding.