You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/cubesatsim/TelemEncoding.h

31 lines
609 B

/*
* 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<<CHARACTER_BITS)-1)
#define SYNC_CHARACTER -1
#define PARITY_BYTES_PER_CODEWORD 32U // Number of parity symbols in frame
#define NP 32U //For Phil's code
#define DATA_BYTES_PER_CODE_WORD 223
#endif /* TELEMENCODING_H_ */

Powered by TurnKey Linux.