⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encode_rs_ccsds.c

📁 RS编解码c语言程序4.0版,
💻 C
字号:
/* This function wraps around the fixed 8-bit encoder, 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#include "fixed.h"#include "ccsds.h"void encode_rs_ccsds(DTYPE *data,DTYPE *parity,int pad){  int i;  DTYPE cdata[NN-NROOTS];  /* Convert data from dual basis to conventional */  for(i=0;i<NN-NROOTS-pad;i++)    cdata[i] = Tal1tab[data[i]];  encode_rs_8(cdata,parity,pad);  /* Convert parity from conventional to dual basis */  for(i=0;i<NN-NROOTS-pad;i++)    parity[i] = Taltab[parity[i]];}

⌨️ 快捷键说明

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