10#ifndef SEMF_APP_PROCESSING_ERRORCORRECTIONCODE_H_
11#define SEMF_APP_PROCESSING_ERRORCORRECTIONCODE_H_
37 virtual size_t encode(
const uint8_t data[],
size_t dataBitSize, uint8_t buffer[],
size_t bufferSize)
const = 0;
46 virtual size_t decode(
const uint8_t data[],
size_t dataSize, uint8_t buffer[],
size_t bufferSize)
const = 0;
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and ...
Interface for error correction code implementations.
virtual size_t blockBitSize(size_t messageBitSize) const =0
Calculates the size of the bits which are needed to store a certain amount of bits with ecc.
virtual size_t encode(const uint8_t data[], size_t dataBitSize, uint8_t buffer[], size_t bufferSize) const =0
Add ecc bits to the data and write them to the buffer.
virtual size_t decode(const uint8_t data[], size_t dataSize, uint8_t buffer[], size_t bufferSize) const =0
Remove ecc bits from the data, corrects bit errors and write them to the buffer.
virtual ~ErrorCorrectionCode()=default