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

📄 qpsk_test.c

📁 adi bf dsp QAM 位映射查表法源码
💻 C
字号:
/*******************************************************************************
Copyright(c) 2000 - 2002 Analog Devices. All Rights Reserved.
Developed by Joint Development Software Application Team, IPDC, Bangalore, India
for Blackfin DSPs  ( Micro Signal Architecture 1.0 specification).

By using this module you agree to the terms of the Analog Devices License
Agreement for DSP Software. 
********************************************************************************
File Name       : test_qpsk.c
Description     : This module tests qpsk() routine.
*******************************************************************************/
#include<stdio.h>
#include "tqpsk.h"

void _qpsk(int n, short table[], char I[], char Q[], char in[]);

int error_flag = 0;
void (*f1)();
int cycle_count[10];

void main(int argc, char *argv[])
{
    int i,j,n;

    f1 = _qpsk;
    
// Test case 1:

    n = 6;
    
    cycle_count[0] = Compute_Cycle_Count(n,I,table,Q,in);
                            //This function inturn calls qpsk()
    
    for( i = 0 ; i <24 ; i++)
    {
       if((I[i]!=I_exp[i]) || (Q[i]!=Q_exp[i]))
            error_flag = error_flag | 1;
    }

    #ifdef PRINTF_SUPPORT
        if(error_flag & 1)
            printf("Test Case 1 failed\n");
        else
            printf("Test Case 1 passed\n");
    #endif
    
}

⌨️ 快捷键说明

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