Move Hagelbarger error correction code from NMT to common code

It will be used by Radiocom 2000 also.
Some minor fixes and improvements apply.
This commit is contained in:
Andreas Eversberg
2017-07-24 19:18:01 +02:00
parent 6c64025717
commit 0cbd9657d2
7 changed files with 32 additions and 14 deletions

4
src/common/hagelbarger.h Normal file
View File

@@ -0,0 +1,4 @@
void hagelbarger_encode(const uint8_t *input, uint8_t *output, int length);
void hagelbarger_decode(const uint8_t *input, uint8_t *output, int length);