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

📄 flat.c

📁 This a framework to test new ideas in transmission technology. Actual development is a LDPC-coder in
💻 C
字号:
/***************************************************************************    fading.c  -  Module for the net-server that makes a simple fading channel                            -------------------    begin                :  2002    authors              :  Linus Gasser    emails               :  linus.gasser@epfl.ch ***************************************************************************//***************************************************************************                                 Changes                                 ------- date - name - description 02-12-16 - ineiti - begin  **************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/#include "system.h"#include "debugging.h"#include "server.h"#define DBG_LVL 0/** * @short a simple flat channel *//** * @short initialises the channel */void flat_init() {}/** * @short calculates the sum */void flat_calc( int nb_clients ) {  int n,i,j;  short *rx, *tx;  if ( !nb_clients ) {    return;  }  for ( i = 0; i < MAX_CLIENTS; i++ ) {    if ( client[i].id == -1 ) {      continue;    }    rx = (short*)rx_signal_buffer[i][BLOCK_ACT_RX(tx_block)];    memset( rx, 0, DAQ_DMA_BLOCK_SIZE_BYTES );    for ( j = 0; j < MAX_CLIENTS; j++ ) {      if ( client[j].id == -1 ) {        continue;      }      tx = (short*)tx_signal_buffer[j][BLOCK_ACT_TX(tx_block)];      for ( n = 0; n < DAQ_DMA_BLOCK_SIZE_SAMPLES; n++ ) {        rx[n] += tx[n] / 8;      }    }  }}

⌨️ 快捷键说明

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