NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
LTENR_Multiplexing.h
1#pragma once
2/************************************************************************************
3* Copyright (C) 2023 *
4* TETCOS, Bangalore. India *
5* *
6* Tetcos owns the intellectual property rights in the Product and its content. *
7* The copying, redistribution, reselling or publication of any or all of the *
8* Product or its content without express prior written consent of Tetcos is *
9* prohibited. Ownership and / or any other right relating to the software and all *
10* intellectual property rights therein shall remain at all times with Tetcos. *
11* *
12* This source code is licensed per the NetSim license agreement. *
13* *
14* No portion of this source code may be used as the basis for a derivative work, *
15* or used, for any purpose other than its intended use per the NetSim license *
16* agreement. *
17* *
18* This source code and the algorithms contained within it are confidential trade *
19* secrets of TETCOS and may not be used as the basis for any other software, *
20* hardware, product or service. *
21* *
22* Author: Shashi Kant Suman *
23* *
24* ----------------------------------------------------------------------------------*/
25#ifndef _NETSIM_LTENR_MULTIPLEXING_H_
26#define _NETSIM_LTENR_MULTIPLEXING_H_
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include "main.h"
32
33#pragma region GLOBALVARIABLE_CONSTANT
34#define CRC_SIZE 3 //bytes
35#define LTENR_MAC_HDR_LEN 0 //bytes
36 UINT MACHDRID;
37#pragma endregion
38
39#pragma region LIFTING_SIZE_TABLE
40 typedef struct stru_LIFTING_SIZE_TABLE {
41 int LiftingSize;
42 int Index;
43 }LIFTING_SIZE_TABLE, * ptrLIFTING_SIZE_TABLE;
44 /*
45 * Lookup table for minimum Z value for which Zc*kb>=K_
46 */
47 static LIFTING_SIZE_TABLE LDPCLiftingSizeTable[] =
48 {
49 {2, 0},
50 {3, 1},
51 {4, 0},
52 {5, 2},
53 {6, 1},
54 {7, 3},
55 {8, 0},
56 {9, 4},
57 {10, 2},
58 {11, 5},
59 {12, 1},
60 {13, 6},
61 {14, 3},
62 {15, 7},
63 {16, 0},
64 {18, 4},
65 {20, 2},
66 {22, 5},
67 {24, 1},
68 {26, 6},
69 {28, 3},
70 {30, 7},
71 {32, 0},
72 {36, 4},
73 {40, 2},
74 {44, 5},
75 {48, 1},
76 {52, 6},
77 {56, 3},
78 {60, 7},
79 {64, 0},
80 {72, 4},
81 {80, 2},
82 {88, 5},
83 {96, 1},
84 {104, 6},
85 {112, 3},
86 {120, 7},
87 {128, 0},
88 {144, 4},
89 {160 ,2},
90 {176 ,5},
91 {192 ,1},
92 {208 ,6},
93 {224 ,3},
94 {240 ,7},
95 {256, 0},
96 {288, 4},
97 {320 ,2},
98 {352 ,5},
99 {384, 1},
100 };
101
102#pragma endregion
103
104#ifdef __cplusplus
105}
106#endif
107#endif /* _NETSIM_LTENR_MULTIPLEXING_H_ */