diff --git a/TelemEncoding.h b/TelemEncoding.h new file mode 100644 index 00000000..fcd7f2e8 --- /dev/null +++ b/TelemEncoding.h @@ -0,0 +1,546 @@ +/* + * TelemEncoding.h + * + * Created on: Feb 3, 2014 + * Author: fox + */ + +#ifndef TELEMENCODING_H_ +#define TELEMENCODING_H_ + +void update_rs( + unsigned char parity[32], // 32-byte encoder state; zero before each frame + unsigned char c // Current data byte to update +); + +#define CHARACTER_BITS 10 +#define CHARACTERS_PER_LONGWORD 3 +#define CHARACTER_MASK ((1<