decode_rs_ccsds.c

来自「著名的RS编解码的资料及源代码」· C语言 代码 · 共 28 行

C
28
字号
/* This function wraps around the fixed 8-bit decoder, performing the * basis transformations necessary to meet the CCSDS standard * * Copyright 2002, Phil Karn, KA9Q * May be used under the terms of the GNU General Public License (GPL) */#define FIXED 1#include "fixed.h"#include "ccsds.h"int decode_rs_ccsds(DTYPE *data,int *eras_pos,int no_eras,int pad){  int i,r;  DTYPE cdata[NN];  /* Convert data from dual basis to conventional */  for(i=0;i<NN-pad;i++)    cdata[i] = Tal1tab[data[i]];  r = decode_rs_8(cdata,eras_pos,no_eras,pad);  if(r > 0){    /* Convert from conventional to dual basis */    for(i=0;i<NN-pad;i++)      data[i] = Taltab[cdata[i]];  }  return r;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?