• 大小: 1.86MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-16
  • 语言: 其他
  • 标签: cvsd  pcm  a-l  

资源简介

资源来自于https://github.com/jgaeddert/liquid-dsp

资源截图

代码片段和文件信息

/*
 * Copyright (c) 2007 - 2018 Joseph Gaeddert
 *
 * Permission is hereby granted free of charge to any person obtaining a copy
 * of this software and associated documentation files (the “Software“) to deal
 * in the Software without restriction including without limitation the rights
 * to use copy modify merge publish distribute sublicense and/or sell
 * copies of the Software and to permit persons to whom the Software is
 * furnished to do so subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
 * IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
 * LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

// autotest.c
//
// This file is used in conjunction with autotest_include.h (generated with
// autotest_gen.py) to produce an executable for automatically testing the
// various signal processing algorithms in liquid.

// default include headers
#include 
#include 
#include 
#include 
#include 
#include “autotest/autotest.h“

void usage()
{
    // help
    printf(“Usage: xautotest [OPTION]\n“);
    printf(“Execute autotest scripts for liquid-dsp library.\n“);
    printf(“  -h            display this help and exit\n“);
    printf(“  -t        run specific test\n“);
    printf(“  -p        run specific package\n“);
    printf(“  -r            run all tests random order\n“);
    printf(“  -R      specify random seed value\n“);
    printf(“  -L            lists all scripts\n“);
    printf(“  -l            lists all packages\n“);
    printf(“  -x            stop on fail\n“);
    printf(“  -s    run all tests matching search string\n“);
    printf(“  -v            verbose\n“);
    printf(“  -q            quiet\n“);
    printf(“  -o  output file (json)\n“);
}

// define autotest function pointer
typedef void(autotest_function_t) (void);

// define autotest_t
typedef struct {
    unsigned int id;                // test identification
    autotest_function_t * api;      // test function e.g. autotest_modem()
    const char* name;               // test name
    long unsigned int num_checks;   // number of checks that were run for this test
    long unsigned int num_passed;   // number of checks that passed
    long unsigned int num_failed;   // number of checks that failed
    long unsigned int num_warnings; // number of warnings 
    float percent_passed;           // percent of checks that passed
    int executed;                   // was the test executed?
    int pa

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-03 18:26  liquid-dsp-master\
     文件         746  2019-02-03 18:26  liquid-dsp-master\.travis.yml
     文件        8163  2019-02-03 18:26  liquid-dsp-master\HISTORY
     文件        1067  2019-02-03 18:26  liquid-dsp-master\LICENSE
     文件        7057  2019-02-03 18:26  liquid-dsp-master\README.md
     文件        3510  2019-02-03 18:26  liquid-dsp-master\TROUBLESHOOTING
     目录           0  2019-02-03 18:26  liquid-dsp-master\autotest\
     文件       15627  2019-02-03 18:26  liquid-dsp-master\autotest\autotest.c
     文件       10396  2019-02-03 18:26  liquid-dsp-master\autotest\autotest.h
     文件        5716  2019-02-03 18:26  liquid-dsp-master\autotest\autotestlib.c
     文件        1226  2019-02-03 18:26  liquid-dsp-master\autotest\null_autotest.c
     目录           0  2019-02-03 18:26  liquid-dsp-master\bench\
     文件       16438  2019-02-03 18:26  liquid-dsp-master\bench\bench.c
     文件        1877  2019-02-03 18:26  liquid-dsp-master\bench\example_benchmark.h
     文件       18226  2019-02-03 18:26  liquid-dsp-master\bench\fftbench.c
     文件        1619  2019-02-03 18:26  liquid-dsp-master\bench\main.c
     文件        1624  2019-02-03 18:26  liquid-dsp-master\bench\null_benchmark.c
     文件        1341  2019-02-03 18:26  liquid-dsp-master\bootstrap.sh
     文件       10447  2019-02-03 18:26  liquid-dsp-master\configure.ac
     目录           0  2019-02-03 18:26  liquid-dsp-master\examples\
     文件       26377  2019-02-03 18:26  liquid-dsp-master\examples\README.md
     文件        3780  2019-02-03 18:26  liquid-dsp-master\examples\agc_crcf_example.c
     文件        3963  2019-02-03 18:26  liquid-dsp-master\examples\agc_crcf_qpsk_example.c
     文件        6133  2019-02-03 18:26  liquid-dsp-master\examples\agc_crcf_squelch_example.c
     文件        3496  2019-02-03 18:26  liquid-dsp-master\examples\agc_rrrf_example.c
     文件        5510  2019-02-03 18:26  liquid-dsp-master\examples\ampmodem_example.c
     文件        2075  2019-02-03 18:26  liquid-dsp-master\examples\asgramcf_example.c
     文件        1996  2019-02-03 18:26  liquid-dsp-master\examples\asgramf_example.c
     文件        5265  2019-02-03 18:26  liquid-dsp-master\examples\autocorr_cccf_example.c
     文件        5067  2019-02-03 18:26  liquid-dsp-master\examples\bpacketsync_example.c
     文件        7302  2019-02-03 18:26  liquid-dsp-master\examples\bpresync_example.c
............此处省略907个文件信息

评论

共有 条评论