ocssw
V2022
|
#include <stdlib.h>
#include <memory.h>
#include <limits.h>
#include "ccsds.h"
#include "fec.h"
#include <string.h>
#include "decode_rs.h"
Go to the source code of this file.
Classes | |
union | metric_t |
union | decision_t |
union | branchtab27 |
struct | v27 |
Macros | |
#define | MODNN(x) mod255(x) |
#define | MM 8 |
#define | NN 255 |
#define | ALPHA_TO CCSDS_alpha_to |
#define | INDEX_OF CCSDS_index_of |
#define | GENPOLY CCSDS_poly |
#define | NROOTS 32 |
#define | FCR 112 |
#define | PRIM 11 |
#define | IPRIM 116 |
#define | PAD pad |
#define | BFLY(i) |
Typedefs | |
typedef unsigned char | data_t |
Functions | |
int | decode_rs_ccsds (data_t *data, int *eras_pos, int no_eras, int pad) |
int | decode_rs_8 (data_t *data, int *eras_pos, int no_eras, int pad) |
void * | create_viterbi27 (int len) |
void | set_viterbi27_polynomial (int polys[2]) |
int | init_viterbi27 (void *p, int starting_state) |
int | chainback_viterbi27 (void *p, unsigned char *data, unsigned int nbits, unsigned int endstate) |
void | delete_viterbi27 (void *p) |
int | update_viterbi27_blk (void *p, unsigned char syms[], int nbits) |
int | init_viterbi27_port (void *p, int starting_state) |
void | set_viterbi27_polynomial_port (int polys[2]) |
void * | create_viterbi27_port (int len) |
int | chainback_viterbi27_port (void *p, unsigned char *data, unsigned int nbits, unsigned int endstate) |
void | delete_viterbi27_port (void *p) |
int | update_viterbi27_blk_port (void *p, unsigned char *syms, int nbits) |
void | partab_init (void) |
void | find_cpu_mode (void) |
Variables | |
data_t | CCSDS_alpha_to [] |
data_t | CCSDS_index_of [] |
data_t | CCSDS_poly [] |
unsigned char | Taltab [] |
unsigned char | Tal1tab [] |
unsigned char | c [32] |
struct v27 | __attribute__ [2] |
unsigned char | Partab [256] |
int | P_init |
int | Bitcnt [] |
char * | Cpu_modes [] |
enum cpu_mode | Cpu_mode |
Macro Definition Documentation
◆ ALPHA_TO
#define ALPHA_TO CCSDS_alpha_to |
Definition at line 43 of file fec_seahawk.c.
◆ BFLY
#define BFLY | ( | i | ) |
Definition at line 435 of file fec_seahawk.c.
◆ FCR
#define FCR 112 |
Definition at line 47 of file fec_seahawk.c.
◆ GENPOLY
#define GENPOLY CCSDS_poly |
Definition at line 45 of file fec_seahawk.c.
◆ INDEX_OF
#define INDEX_OF CCSDS_index_of |
Definition at line 44 of file fec_seahawk.c.
◆ IPRIM
#define IPRIM 116 |
Definition at line 49 of file fec_seahawk.c.
◆ MM
#define MM 8 |
Definition at line 41 of file fec_seahawk.c.
◆ MODNN
#define MODNN | ( | x | ) | mod255(x) |
Definition at line 35 of file fec_seahawk.c.
◆ NN
#define NN 255 |
Definition at line 42 of file fec_seahawk.c.
◆ NROOTS
#define NROOTS 32 |
Definition at line 46 of file fec_seahawk.c.
◆ PAD
#define PAD pad |
Definition at line 50 of file fec_seahawk.c.
◆ PRIM
#define PRIM 11 |
Definition at line 48 of file fec_seahawk.c.
Typedef Documentation
◆ data_t
typedef unsigned char data_t |
Definition at line 26 of file fec_seahawk.c.
Function Documentation
◆ chainback_viterbi27()
int chainback_viterbi27 | ( | void * | p, |
unsigned char * | data, | ||
unsigned int | nbits, | ||
unsigned int | endstate | ||
) |
Definition at line 242 of file fec_seahawk.c.
◆ chainback_viterbi27_port()
int chainback_viterbi27_port | ( | void * | p, |
unsigned char * | data, | ||
unsigned int | nbits, | ||
unsigned int | endstate | ||
) |
Definition at line 393 of file fec_seahawk.c.
◆ create_viterbi27()
void* create_viterbi27 | ( | int | len | ) |
Definition at line 173 of file fec_seahawk.c.
◆ create_viterbi27_port()
void* create_viterbi27_port | ( | int | len | ) |
Definition at line 374 of file fec_seahawk.c.
◆ decode_rs_8()
int decode_rs_8 | ( | data_t * | data, |
int * | eras_pos, | ||
int | no_eras, | ||
int | pad | ||
) |
Definition at line 76 of file fec_seahawk.c.
◆ decode_rs_ccsds()
int decode_rs_ccsds | ( | data_t * | data, |
int * | eras_pos, | ||
int | no_eras, | ||
int | pad | ||
) |
Definition at line 53 of file fec_seahawk.c.
◆ delete_viterbi27()
void delete_viterbi27 | ( | void * | p | ) |
Definition at line 268 of file fec_seahawk.c.
◆ delete_viterbi27_port()
void delete_viterbi27_port | ( | void * | p | ) |
Definition at line 425 of file fec_seahawk.c.
◆ find_cpu_mode()
void find_cpu_mode | ( | void | ) |
Definition at line 585 of file fec_seahawk.c.
◆ init_viterbi27()
int init_viterbi27 | ( | void * | p, |
int | starting_state | ||
) |
Definition at line 221 of file fec_seahawk.c.
◆ init_viterbi27_port()
int init_viterbi27_port | ( | void * | p, |
int | starting_state | ||
) |
Definition at line 347 of file fec_seahawk.c.
◆ partab_init()
void partab_init | ( | void | ) |
Definition at line 520 of file fec_seahawk.c.
◆ set_viterbi27_polynomial()
void set_viterbi27_polynomial | ( | int | polys[2] | ) |
Definition at line 195 of file fec_seahawk.c.
◆ set_viterbi27_polynomial_port()
void set_viterbi27_polynomial_port | ( | int | polys[2] | ) |
Definition at line 363 of file fec_seahawk.c.
◆ update_viterbi27_blk()
int update_viterbi27_blk | ( | void * | p, |
unsigned char | syms[], | ||
int | nbits | ||
) |
Definition at line 297 of file fec_seahawk.c.
◆ update_viterbi27_blk_port()
int update_viterbi27_blk_port | ( | void * | p, |
unsigned char * | syms, | ||
int | nbits | ||
) |
Definition at line 454 of file fec_seahawk.c.
Variable Documentation
◆ __attribute__
struct v27 __attribute__[2] |
◆ Bitcnt
int Bitcnt[] |
Definition at line 538 of file fec_seahawk.c.
◆ c
unsigned char c[32] |
Definition at line 297 of file fec_seahawk.c.
◆ CCSDS_alpha_to
data_t CCSDS_alpha_to |
Definition at line 37 of file fec_seahawk.c.
◆ CCSDS_index_of
data_t CCSDS_index_of |
Definition at line 38 of file fec_seahawk.c.
◆ CCSDS_poly
data_t CCSDS_poly |
Definition at line 39 of file fec_seahawk.c.
◆ Cpu_mode
enum cpu_mode Cpu_mode |
Definition at line 583 of file fec_seahawk.c.
◆ Cpu_modes
char* Cpu_modes[] |
Definition at line 578 of file fec_seahawk.c.
◆ P_init
int P_init |
Definition at line 515 of file fec_seahawk.c.
◆ Partab
unsigned char Partab[256] |
Definition at line 514 of file fec_seahawk.c.
◆ Tal1tab
unsigned char Tal1tab[] |
Definition at line 150 of file fec_seahawk.c.
◆ Taltab
unsigned char Taltab[] |
Definition at line 130 of file fec_seahawk.c.