OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
outernetDecode.c File Reference
#include "fec.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for outernetDecode.c:

Go to the source code of this file.

Macros

#define I   4 /* Interleave depth */
 
#define L_SYMBOL   223 /* RS Symbol size (bytes) */
 
#define L_CODEWORD   255 /* RS Codeword size (bytes) */
 
#define L_PARITY   32 /* Codeword parity bytes */
 
#define L_CODEBLOCK   (I * L_CODEWORD)
 
#define FRAME_SIZE   (I * L_SYMBOL) /* User data in a frame */
 
#define SYMBOLS_NO_CONV   (L_ASM + L_CODEBLOCK)
 
#define MAX_SYMBOLS   ( 2 * (L_ASM + L_CODEBLOCK + 1))
 
#define L_ASM   4 /* Length of sync vector */
 
#define V_FRAMEBITS   (8 * SYMBOLS_NO_CONV) /* Bits in frame */
 
#define VERSION   "0.20"
 

Functions

void formatHex (unsigned char *data, int length)
 
void outputHex (unsigned char *data, int length)
 
void prng (unsigned char *lfsr, unsigned char *o)
 
void convDecode (unsigned char *data, unsigned char *coded)
 
void showHelp (char *progname)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ FRAME_SIZE

#define FRAME_SIZE   (I * L_SYMBOL) /* User data in a frame */

Definition at line 25 of file outernetDecode.c.

◆ I

#define I   4 /* Interleave depth */

Definition at line 20 of file outernetDecode.c.

◆ L_ASM

#define L_ASM   4 /* Length of sync vector */

Definition at line 29 of file outernetDecode.c.

◆ L_CODEBLOCK

#define L_CODEBLOCK   (I * L_CODEWORD)

Definition at line 24 of file outernetDecode.c.

◆ L_CODEWORD

#define L_CODEWORD   255 /* RS Codeword size (bytes) */

Definition at line 22 of file outernetDecode.c.

◆ L_PARITY

#define L_PARITY   32 /* Codeword parity bytes */

Definition at line 23 of file outernetDecode.c.

◆ L_SYMBOL

#define L_SYMBOL   223 /* RS Symbol size (bytes) */

Definition at line 21 of file outernetDecode.c.

◆ MAX_SYMBOLS

#define MAX_SYMBOLS   ( 2 * (L_ASM + L_CODEBLOCK + 1))

Definition at line 27 of file outernetDecode.c.

◆ SYMBOLS_NO_CONV

#define SYMBOLS_NO_CONV   (L_ASM + L_CODEBLOCK)

Definition at line 26 of file outernetDecode.c.

◆ V_FRAMEBITS

#define V_FRAMEBITS   (8 * SYMBOLS_NO_CONV) /* Bits in frame */

Definition at line 32 of file outernetDecode.c.

◆ VERSION

#define VERSION   "0.20"

Definition at line 34 of file outernetDecode.c.

Function Documentation

◆ convDecode()

void convDecode ( unsigned char *  data,
unsigned char *  coded 
)

Definition at line 87 of file outernetDecode.c.

◆ formatHex()

void formatHex ( unsigned char *  data,
int  length 
)

Formatted hex output

Definition at line 39 of file outernetDecode.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 127 of file outernetDecode.c.

◆ outputHex()

void outputHex ( unsigned char *  data,
int  length 
)

Unformatted hex output

Definition at line 59 of file outernetDecode.c.

◆ prng()

void prng ( unsigned char *  lfsr,
unsigned char *  o 
)

Definition at line 75 of file outernetDecode.c.

◆ showHelp()

void showHelp ( char *  progname)

Definition at line 111 of file outernetDecode.c.