rrc.c

来自「This a framework to test new ideas in tr」· C语言 代码 · 共 77 行

C
77
字号
/*************************************************************************** *    rrc.c  -  Root Raised Cosine filter (pulse shape filter) *                           ------------------- *   begin                :  2002 *   authors              :  Linus Gasser *   emails               :  linus.gasser@epfl.ch ***************************************************************************//*************************************************************************** *                                Changes *                                ------- * date - name - description * 04/03/06 - ineiti - adjusted description * **************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************//** *  This is a pulse-shaper, using a root-raised cosine with roll-off factor * 0.22. At the same time it converts the complex-signal to a real signal * and upsamples by a factor of 2. So one complex signal is converted into * 4 samples. *  The main application is to prepare the signal for the STM-cards which * take a real, pass-band signal. */#include "spc.h"#define DBG_LVL 4int rcv_module_init( void );void rcv_module_exit( void );int send_module_init( void );void send_module_exit( void );/* * Just call the two init-functions */int spc_module_init(void) {  if( rcv_module_init() < 0 ) {    PR_DBG( 0, "Couldn't init rcv-part\n" );    return -1;  }  if ( send_module_init() < 0 ) {    rcv_module_exit();    PR_DBG( 0, "Couldn't init send-part\n" );    return -1;  }  return 0;}/* * And call the two exit-funcitons */void spc_module_exit( void ) {  rcv_module_exit();  send_module_exit();}module_init( spc_module_init );module_exit( spc_module_exit );

⌨️ 快捷键说明

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