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

📄 midamble.c

📁 软件无线电的平台
💻 C
字号:
/*************************************************************************** *    midamble.c  - Software Radio module to insert a midamble *                           ------------------- *   begin                :  02/10/24 *   authors              :  Linus Gasser *   emails               :  linus.gasser@epfl.ch ***************************************************************************//*************************************************************************** *                                Changes *                                ------- * date - name - description * 02/10/24 - ineiti - begin * 03/07/03 - selvan - added mimo  * 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.                                   * *                                                                         * ***************************************************************************//** *  One of the most important modules: in order to be able to decode a * received signal, one has to make an estimation of the channel which is * then used to 'correct' the signal. This module provides a 'midamble' to * create a well-known series of symbols, and a 'matched_filter', which * tries to recognise the midamble part and correct for the wrongly received * signal. */#include "spc.h"#include "midamble.h"#define DBG_LVL 0/* * This function is called upon "insmod" and is used to register the * different parts of the module to the SPM. */int spc_module_init(void) {  // Initialise the midamble-generator module  if ( send_module_init() ) {    PR_DBG( 0, "Couldn't initilialise send-module!\n" );    return -1;  }  // Initialise the matched-filter module  if ( rcv_module_init() ) {    PR_DBG( 0, "Couldn't initialise rcv-module!\n" );    send_module_exit();    return -1;  }  // And initialise some data-structures  midamble_prepare();  return 0;}/* * This is called upon rmmod */void spc_module_exit( void ) {  PR_DBG( 2, "Midamble is going\n" );  rcv_module_exit();  send_module_exit();}module_init( spc_module_init );module_exit( spc_module_exit );

⌨️ 快捷键说明

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