Macros | Functions | Variables
FEC.cpp File Reference
#include <stdlib.h>
#include <alloca.h>
#include "FEC.hpp"
Include dependency graph for FEC.cpp:

Go to the source code of this file.

Macros

#define ALPHA_ROOT   1
 
#define ALPHA_ZERO   ((uintGF) self->nn)
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define modnn(x)   ((x) % self->nn)
 

Functions

bool FEC__correct (FEC fec, unsigned int *data, unsigned int size)
 
FEC FEC__create (unsigned int symbol_size, unsigned int data_size, unsigned int parity_size)
 
void FEC__parity (FEC fec, unsigned int *data, unsigned int size)
 
rvInt16 rvFec_Correct (rvFec *self, rvUint8 *blockBuffer)
 
static void rvFec_InitGaloisField (rvFec *self, rvUint8 *pp)
 
static void rvFec_InitPolynomial (rvFec *self)
 
rvFecrvFec_New (rvInt16 symbolSize, rvInt16 dataSize, rvInt16 paritySize)
 
rvInt16 rvFec_Parity (rvFec *self, rvUint8 *dataBuffer, rvUint8 *parityBuffer)
 

Variables

rvUint8 pp_3 [4] = { 1, 1, 0, 1 }
 
rvUint8 pp_4 [5] = { 1, 1, 0, 0, 1 }
 
rvUint8 pp_5 [6] = { 1, 0, 1, 0, 0, 1 }
 
rvUint8 pp_6 [7] = { 1, 1, 0, 0, 0, 0, 1 }
 
rvUint8 pp_7 [8] = { 1, 0, 0, 1, 0, 0, 0, 1 }
 
rvUint8 pp_8 [9] = { 1, 0, 1, 1, 1, 0, 0, 0, 1 }
 

Macro Definition Documentation

#define ALPHA_ROOT   1

Definition at line 52 of file FEC.cpp.

#define ALPHA_ZERO   ((uintGF) self->nn)

Definition at line 49 of file FEC.cpp.

#define MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

Definition at line 55 of file FEC.cpp.

#define modnn (   x)    ((x) % self->nn)

Definition at line 108 of file FEC.cpp.

Function Documentation

bool FEC__correct ( FEC  fec,
unsigned int *  data,
unsigned int  size 
)

Definition at line 604 of file FEC.cpp.

FEC FEC__create ( unsigned int  symbol_size,
unsigned int  data_size,
unsigned int  parity_size 
)

Definition at line 653 of file FEC.cpp.

void FEC__parity ( FEC  fec,
unsigned int *  data,
unsigned int  size 
)

Definition at line 630 of file FEC.cpp.

rvInt16 rvFec_Correct ( rvFec self,
rvUint8 blockBuffer 
)

Definition at line 325 of file FEC.cpp.

static void rvFec_InitGaloisField ( rvFec self,
rvUint8 pp 
)
static

Definition at line 110 of file FEC.cpp.

static void rvFec_InitPolynomial ( rvFec self)
static

Definition at line 162 of file FEC.cpp.

rvFec* rvFec_New ( rvInt16  symbolSize,
rvInt16  dataSize,
rvInt16  paritySize 
)

Definition at line 196 of file FEC.cpp.

rvInt16 rvFec_Parity ( rvFec self,
rvUint8 dataBuffer,
rvUint8 parityBuffer 
)

Definition at line 276 of file FEC.cpp.

Variable Documentation

rvUint8 pp_3[4] = { 1, 1, 0, 1 }

Definition at line 61 of file FEC.cpp.

rvUint8 pp_4[5] = { 1, 1, 0, 0, 1 }

Definition at line 64 of file FEC.cpp.

rvUint8 pp_5[6] = { 1, 0, 1, 0, 0, 1 }

Definition at line 67 of file FEC.cpp.

rvUint8 pp_6[7] = { 1, 1, 0, 0, 0, 0, 1 }

Definition at line 70 of file FEC.cpp.

rvUint8 pp_7[8] = { 1, 0, 0, 1, 0, 0, 0, 1 }

Definition at line 73 of file FEC.cpp.

rvUint8 pp_8[9] = { 1, 0, 1, 1, 1, 0, 0, 0, 1 }

Definition at line 76 of file FEC.cpp.



fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Dec 28 2017 04:06:53