conversions.h
来自「WCDMA的仿真程序,分别用C和MATLAB两种语言仿真」· C头文件 代码 · 共 58 行
H
58 行
/* | | 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: Data type conversions | Author: Tommi Makelainen, Nokia/NIST | Date: January 5, 1999 | | History: | January 5, 1999 Tommi Makelainen | Initial version. | *//* * Function: bin2antipodal * Desc.: Convert input data vector in binary (0,1) to * antipodal (-1,1) output vector. * * Inputs: * binary input data bit vector in binary (0,1) form * data_len length of input data vector * Outputs: * antipodal output data vector in antipodal (-1,1) form * * Note: */int bin2antipodal(int binary[], int data_len, int antipodal[]);/* * Function: antipodal2bin * Desc.: Convert input data vector in antipodal (-1,1) to * binary (0,1) output vector. * * Inputs: * antipodal input data bit vector in antipodal (-1,1) form * data_len length of input data vector * Outputs: * binary output data vector in binary (0,1) form * * Note: */int antipodal2bin(int antipodal[], int data_len, int binary[]);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?