📄 blockcollect.h
字号:
/* | | Copyright disclaimer: | This software was developed at the National Institute of Standards | and Technology by employees of the Federal Government in the course | of their official duties. Pursuant to title 17 Section 105 of the | United States Code this software is not subject to copyright | protection and is in the public domain. | | We would appreciate acknowledgement if the software is used. |*//* | Project: WCDMA simulation environment | Module: Collects received symbols from rake and outputs | data when desired amount of symbols is available. | Author: Tommi Makelainen, Nokia/NIST | Date: April 20, 1999 | | History: | April 20, 1999 Tommi Makelainen | Initial version. | *//* ------------ S T A T I C D A T A S T R U C T U R E S ----------- *//* * Data type for a symbol buffer. */struct symbol_buffer_type { int size; /* block size to collect */ int fill_index; /* index to first free slot in ring buffer */ int read_index; /* index to first output in ring buffer */ double *buffer; /* buffer */};typedef struct symbol_buffer_type symbol_buffer_t;/* * Max number of symbol collecting buffers. */#define MAX_SYMBOL_BUFFERS 20/* -------------------------------------------------------------------- *//* * Function: wcdma_symbolbuffer_init * Desc.: Inits symbol collect buffer. * * Note: */int wcdma_symbolbuffer_init( int block_size); /* IN: block size to collect *//* -------------------------------------------------------------------- *//* * Function: wcdma_symbolbuffer_free * Desc.: Frees one frame buffer. * * Note: */void wcdma_symbolbuffer_free(int instance);/* -------------------------------------------------------------------- *//* * Function: wcdma_symbolbuffer * Desc.: Collects input symbols until symbols enough for * one frame is available. Then outputs one frame. * * Note: */int wcdma_symbolbuffer( int instance, /* IN: instance number */ double data[], /* IN: input data symbol vector */ int data_len, /* IN: length of input data vector */ int *output_ready, /* OUT: 1=output available, 0=no output */ double out[]); /* OUT: output symbols for one block *//* -------------------------------------------------------------------- */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -