From 299acbc365452d79206dceac157058dd93214678 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 24 Jun 2021 11:57:04 -0400 Subject: [PATCH] moving --- TelemEncoding.h | 546 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 546 insertions(+) create mode 100644 TelemEncoding.h 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<