?? crc_routines.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: Cyclic rendundance Check routines for different | generator polynomials. | Author: Tommi Makelainen | Date: January 28, 1999 | | History: | January 28, 1999 Tommi Makelainen | Initial version. | *//* ----------------------------------------------------------- */#define CRC16 0x1021 /* Generator polynomial (X^16 + X^12 + X^5 + 1) *//* * Init the fast CRC-16 calculation table. */void wcdma_crctable_init (int crc_gen_poly); /* gen. polynomial as bit mask *//* * Calculate CRC for 'input_data' having 'input_len' bytes. */unsigned short wcdma_calc_crc( int *input_data, /* input data byte vector */ int input_len); /* length of input (in bytes) *//* * Calculate CRC for 'input_data' having 'input_len' bits. */unsigned short wcdma_get_crc_value( int input_data[], /* IN: input data bit vector */ int input_len, /* IN: length of input (in bits) */ int crc_bits[]); /* OUT: output crc bit vector (16 bits) */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -