?? ldpc.c
字號:
/*************************************************************************** * ldpc.c - The main module for LDPC-2fold * ------------------- * begin : 2003/09/01 * authors : Nicolae Chiurtu * emails : nicolae.chiurtu@epfl.ch ***************************************************************************//*************************************************************************** * Changes * ------- * date - name - description * 2003/09/01 - nicou - 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. * * * ***************************************************************************//** * LDPC codes are Low Density Parity Check codes used in favor of * convolutional codes. Usually they are calculated on a SISO channel. * This module tries to enhance the case for a 4x4 MIMO channel. The * theory has been written down by Nicolae Chiurtu. */#include "lookup.h"#include "spc.h"#include "graphcreate.h"#define DBG_LVL 4int ics_rcv_module_init( void );void ics_rcv_module_exit( void );int rcv_module_init( void );void rcv_module_exit( void );int send_module_init( void );void send_module_exit( void );/* * Just call the two init-functions */int spc_module_init(void){ // Call functions to initialise global variables // init_tree(); lookup_init(); if( rcv_module_init() < 0 ){ PR_DBG( 0, "Couldn't init rcv-part\n" ); lookup_exit(); return -1; } if ( send_module_init() < 0 ){ rcv_module_exit(); lookup_exit(); PR_DBG( 0, "Couldn't init send-part\n" ); return -1; } if ( ics_rcv_module_init() < 0 ) { rcv_module_exit(); send_module_exit(); lookup_exit(); PR_DBG( 0, "Couldn't init ics_rcv-part\n" ); return -1; } return 0;}/* * And call the two exit-funcitons */void spc_module_exit( void ){ lookup_exit(); ics_rcv_module_exit(); rcv_module_exit(); send_module_exit();}module_init( spc_module_init );module_exit( spc_module_exit );
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -