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

📄 server.h

📁 This a framework to test new ideas in transmission technology. Actual development is a LDPC-coder in
💻 H
字号:
/***************************************************************************    server.h  -  The things needed for the channel-simulations                            -------------------    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 "antenna.h"#include <complex.h>/** * @short maximum clients and the channel-structures */#define MAX_CLIENTS 16#define CHANNEL_LENGTH 1#define BLOCK_BUFFER 16#define RX_TX_DELAY 0#if 0#define BLOCK_ACT_TX ( tx_block % BLOCK_BUFFER )#define BLOCK_ACT_RX ( ( tx_block + RX_TX_DELAY ) % BLOCK_BUFFER )#else#define BLOCK_ACT_TX(x) ( ( x % BLOCK_BUFFER ) + 1 )#define BLOCK_ACT_RX(x) ( ( ( x + RX_TX_DELAY ) % BLOCK_BUFFER ) + 1 )#endifextern double rx_gain[MAX_CLIENTS], tx_gain[MAX_CLIENTS];extern char tx_signal_buffer[MAX_CLIENTS][BLOCK_BUFFER+1][DAQ_DMA_BLOCK_SIZE_BYTES];extern char rx_signal_buffer[MAX_CLIENTS][BLOCK_BUFFER+1][DAQ_DMA_BLOCK_SIZE_BYTES];extern int nbr_clients, tx_block;extern double channel_tap[MAX_CLIENTS+1][MAX_CLIENTS+1][CHANNEL_LENGTH];extern double complex channel_tap_cplx[MAX_CLIENTS+1][MAX_CLIENTS+1][CHANNEL_LENGTH];struct client_params{  int sockfd;  int id;  int gid;  pthread_t thr;};extern struct client_params client[MAX_CLIENTS];

⌨️ 快捷键说明

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