mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
4 years ago
|
/**
|
||
6 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
6 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
6 years ago
|
*
|
||
4 years ago
|
* By using this file, you agree to the terms and conditions set
|
||
|
* forth in the LICENSE file which can be found at the top level of
|
||
|
* the distribution.
|
||
6 years ago
|
*
|
||
|
*/
|
||
|
|
||
|
/**********************************************************************************************
|
||
|
* File: tc_interl.h
|
||
|
*
|
||
|
* Description: Turbo code interleaver.
|
||
|
*
|
||
|
* Reference: 3GPP TS 36.212 version 10.0.0 Release 10 Sec. 5.1.3.2.3
|
||
|
*********************************************************************************************/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_TC_INTERL_H
|
||
|
#define SRSRAN_TC_INTERL_H
|
||
6 years ago
|
|
||
4 years ago
|
#include "srsran/config.h"
|
||
6 years ago
|
#include <stdint.h>
|
||
|
|
||
4 years ago
|
typedef struct SRSRAN_API {
|
||
5 years ago
|
uint16_t* forward;
|
||
|
uint16_t* reverse;
|
||
|
uint32_t max_long_cb;
|
||
4 years ago
|
} srsran_tc_interl_t;
|
||
6 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_tc_interl_LTE_gen(srsran_tc_interl_t* h, uint32_t long_cb);
|
||
6 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_tc_interl_LTE_gen_interl(srsran_tc_interl_t* h, uint32_t long_cb, uint32_t interl_win);
|
||
6 years ago
|
|
||
4 years ago
|
SRSRAN_API int srsran_tc_interl_init(srsran_tc_interl_t* h, uint32_t max_long_cb);
|
||
6 years ago
|
|
||
4 years ago
|
SRSRAN_API void srsran_tc_interl_free(srsran_tc_interl_t* h);
|
||
6 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_TC_INTERL_H
|