test_blockinterleaver.c

来自「wcdma模型」· C语言 代码 · 共 35 行

C
35
字号
/* | | Copyright disclaimer: |   This software was developed at the National Institute of Standards |   and Technology by employees of the Federal Government in the course |   of their official duties. Pursuant to title 17 Section 105 of the |   United States Code this software is not subject to copyright |   protection and is in the public domain. | |   We would appreciate acknowledgement if the software is used. |*/#include <stdio.h>#include "interleaver.h"int main(int argc, char *argv[]){    int input[48], output[48], output2[48];    int i;    for (i=0; i < 48; i++) input[i] = i;    printf("after interleaving: ");    wcdma_block_interleaver(12, 4, input, output);    for (i=0; i < 48; i++) printf("%d ", output[i]);    printf("\n");    wcdma_block_deinterleaver(4, 12, output, output2);    printf("after de-interleaving: ");    for (i=0; i < 48; i++) printf("%d ", output2[i]);    printf("\n");    return;}

⌨️ 快捷键说明

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