35#ifndef ECC_REPETITION_H
36#define ECC_REPETITION_H
43#ifndef ECC_REPETITION_COUNT
44#define ECC_REPETITION_COUNT (3)
48#define DECODER_MAJORITY ((ECC_REPETITION_COUNT - 1) / 2)
58 unsigned char *_msg_dec,
59 unsigned char *_msg_enc);
69 unsigned char *_msg_enc,
70 unsigned char *_msg_dec);
void repetition_encode(unsigned int _dec_msg_len, unsigned char *_msg_dec, unsigned char *_msg_enc)
encode block of data with ECC_REPETITION_COUNT number of repetitions
void repetition_decode(unsigned int _dec_msg_len, unsigned char *_msg_enc, unsigned char *_msg_dec)
decode block of data with ECC_REPETITION_COUNT repetitions