add Doxygen documentation
[o-du/phy.git] / docs / API / common_8c_source.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
6 <meta name="generator" content="Doxygen 1.8.13"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>o-du/phy: common.c Source File</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="search/search.css" rel="stylesheet" type="text/css"/>
13 <script type="text/javascript" src="search/searchdata.js"></script>
14 <script type="text/javascript" src="search/search.js"></script>
15 <link href="doxygen.css" rel="stylesheet" type="text/css" />
16 </head>
17 <body>
18 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
19 <div id="titlearea">
20 <table cellspacing="0" cellpadding="0">
21  <tbody>
22  <tr style="height: 56px;">
23   <td id="projectalign" style="padding-left: 0.5em;">
24    <div id="projectname">o-du/phy
25    </div>
26    <div id="projectbrief">Intel O-RAN/X-RAN Generated Doxygen Documentation</div>
27   </td>
28  </tr>
29  </tbody>
30 </table>
31 </div>
32 <!-- end header part -->
33 <!-- Generated by Doxygen 1.8.13 -->
34 <script type="text/javascript">
35 var searchBox = new SearchBox("searchBox", "search",false,'Search');
36 </script>
37 <script type="text/javascript" src="menudata.js"></script>
38 <script type="text/javascript" src="menu.js"></script>
39 <script type="text/javascript">
40 $(function() {
41   initMenu('',true,false,'search.php','Search');
42   $(document).ready(function() { init_search(); });
43 });
44 </script>
45 <div id="main-nav"></div>
46 <!-- window showing the filter options -->
47 <div id="MSearchSelectWindow"
48      onmouseover="return searchBox.OnSearchSelectShow()"
49      onmouseout="return searchBox.OnSearchSelectHide()"
50      onkeydown="return searchBox.OnSearchSelectKey(event)">
51 </div>
52
53 <!-- iframe showing the search results (closed by default) -->
54 <div id="MSearchResultsWindow">
55 <iframe src="javascript:void(0)" frameborder="0" 
56         name="MSearchResults" id="MSearchResults">
57 </iframe>
58 </div>
59
60 <div id="nav-path" class="navpath">
61   <ul>
62 <li class="navelem"><a class="el" href="dir_a4c74d6baed87eba72f3b201b7b4b8f2.html">fhi_lib</a></li><li class="navelem"><a class="el" href="dir_4b76f00ffa3e05ab9c225ea6671f6b6c.html">app</a></li><li class="navelem"><a class="el" href="dir_dd7de4ccd45f8474612b8f6c09959d91.html">src</a></li>  </ul>
63 </div>
64 </div><!-- top -->
65 <div class="header">
66   <div class="headertitle">
67 <div class="title">common.c</div>  </div>
68 </div><!--header-->
69 <div class="contents">
70 <a href="common_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">*   Copyright (c) 2019 Intel.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">*   you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">*   You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">*       http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">*   Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">*   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*   See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">*   limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">*</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*******************************************************************************/</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;assert.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;err.h&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;arpa/inet.h&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;sys/time.h&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;time.h&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="common_8h.html">common.h</a>&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="xran__fh__o__du_8h.html">xran_fh_o_du.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="xran__pkt_8h.html">xran_pkt.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="xran__pkt__up_8h.html">xran_pkt_up.h</a>&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="xran__cp__api_8h.html">xran_cp_api.h</a>&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="xran__up__api_8h.html">xran_up_api.h</a>&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="xran__mlog__lnx_8h.html">xran_mlog_lnx.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">extern</span> <span class="keyword">enum</span> <a class="code" href="common_8h.html#a3f6c4cb016839c3f57ab648b84dc4d8a">app_state</a> <a class="code" href="common_8c.html#a9dc062894f50c14d43977487568e69bc">state</a>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="common_8h.html#a9aedc75ff69810f3a7ff424e562e77de">   36</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="common_8c.html#a9aedc75ff69810f3a7ff424e562e77de">iq_playback_buffer_size_dl</a> = <a class="code" href="common_8h.html#a49c6511dd7755629147643fc2cfdf893">IQ_PLAYBACK_BUFFER_BYTES</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="common_8h.html#afd05de12c89b35af48a21e0d9620c2a1">   37</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="common_8c.html#afd05de12c89b35af48a21e0d9620c2a1">iq_playback_buffer_size_ul</a> = <a class="code" href="common_8h.html#a49c6511dd7755629147643fc2cfdf893">IQ_PLAYBACK_BUFFER_BYTES</a>;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="common_8h.html#ad1ab6e8c4efe2805b76180b34ce4c019">   39</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="common_8c.html#ad1ab6e8c4efe2805b76180b34ce4c019">iq_bfw_buffer_size_dl</a> = <a class="code" href="common_8h.html#a49c6511dd7755629147643fc2cfdf893">IQ_PLAYBACK_BUFFER_BYTES</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="common_8h.html#a8b3edaed699562559db744c8e2aa36b1">   40</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="common_8c.html#a8b3edaed699562559db744c8e2aa36b1">iq_bfw_buffer_size_ul</a> = <a class="code" href="common_8h.html#a49c6511dd7755629147643fc2cfdf893">IQ_PLAYBACK_BUFFER_BYTES</a>;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="common_8h.html#a325598fd5fa9c647766e2b1fe43f596f">   42</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="common_8c.html#a325598fd5fa9c647766e2b1fe43f596f">iq_srs_buffer_size_ul</a> = <a class="code" href="common_8h.html#a49c6511dd7755629147643fc2cfdf893">IQ_PLAYBACK_BUFFER_BYTES</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="common_8h.html#ae3e0286957f26fa1804745d15f82724d">   44</a></span>&#160;uint8_t <a class="code" href="common_8c.html#ae3e0286957f26fa1804745d15f82724d">numCCPorts</a> = 1;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">/* Number of antennas supported by front-end */</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="common_8h.html#ae69cd45536b5b80a0eac08ee522d8aa2">   47</a></span>&#160;uint8_t <a class="code" href="common_8c.html#ae69cd45536b5b80a0eac08ee522d8aa2">num_eAxc</a> = 4;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">/* Number of CPRI ports supported by front-end */</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="common_8h.html#a5977cef6d782ed0a89fee2038495b544">   50</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a5977cef6d782ed0a89fee2038495b544">p_tx_play_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="common_8h.html#ac6ec5442d9ec39fac4367ad38b9d3d6a">   51</a></span>&#160;int32_t <a class="code" href="common_8c.html#ac6ec5442d9ec39fac4367ad38b9d3d6a">tx_play_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="common_8h.html#ab0ca5bc3c9f6c0b230c9ea169747a438">   52</a></span>&#160;int32_t <a class="code" href="common_8c.html#ab0ca5bc3c9f6c0b230c9ea169747a438">tx_play_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="common_8h.html#a248b83fea05a7a50c94dcfd9b12fa6e1">   54</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a248b83fea05a7a50c94dcfd9b12fa6e1">p_tx_prach_play_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="common_8h.html#a116f357e6a56ff1a8d34d2c31691b007">   55</a></span>&#160;int32_t <a class="code" href="common_8c.html#a116f357e6a56ff1a8d34d2c31691b007">tx_prach_play_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="common_8h.html#a28929b3487c517117e716b7d45865c88">   56</a></span>&#160;int32_t <a class="code" href="common_8c.html#a28929b3487c517117e716b7d45865c88">tx_prach_play_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="common_8h.html#aaff80269195e14fa4426e20f250f7f7f">   58</a></span>&#160;int16_t *<a class="code" href="common_8c.html#aaff80269195e14fa4426e20f250f7f7f">p_tx_srs_play_buffer</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>*<a class="code" href="xran__fh__o__du_8h.html#af3e0ced3530652b3c92220c8783b55fa">XRAN_MAX_ANT_ARRAY_ELM_NR</a>];</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="common_8h.html#a3ef30d69e5522784df0a9ead30cc9415">   59</a></span>&#160;int32_t <a class="code" href="common_8c.html#a3ef30d69e5522784df0a9ead30cc9415">tx_srs_play_buffer_size</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>*<a class="code" href="xran__fh__o__du_8h.html#af3e0ced3530652b3c92220c8783b55fa">XRAN_MAX_ANT_ARRAY_ELM_NR</a>];</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="common_8h.html#a7abef2666634dec9ece3f2e8de21dfb0">   60</a></span>&#160;int32_t <a class="code" href="common_8c.html#a7abef2666634dec9ece3f2e8de21dfb0">tx_srs_play_buffer_position</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>*<a class="code" href="xran__fh__o__du_8h.html#af3e0ced3530652b3c92220c8783b55fa">XRAN_MAX_ANT_ARRAY_ELM_NR</a>];</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="common_8h.html#a8b2889ff178b629b4256ad3b87a18776">   62</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a8b2889ff178b629b4256ad3b87a18776">p_rx_log_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="common_8h.html#abc08d2b5f2da30c4a1e5d258dfe8dfc7">   63</a></span>&#160;int32_t <a class="code" href="common_8c.html#abc08d2b5f2da30c4a1e5d258dfe8dfc7">rx_log_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="common_8h.html#adb25475aaf7dcca7350334f201c161c4">   64</a></span>&#160;int32_t <a class="code" href="common_8c.html#adb25475aaf7dcca7350334f201c161c4">rx_log_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="common_8h.html#a205302b4106968d8d580e286ce56ec8e">   66</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a205302b4106968d8d580e286ce56ec8e">p_prach_log_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="common_8h.html#a2d2caffb405333647be9e6f3e2590b5e">   67</a></span>&#160;int32_t <a class="code" href="common_8c.html#a2d2caffb405333647be9e6f3e2590b5e">prach_log_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="common_8h.html#afde5189915e37caf48edbef9138f966c">   68</a></span>&#160;int32_t <a class="code" href="common_8c.html#afde5189915e37caf48edbef9138f966c">prach_log_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="common_8h.html#a54f6ae53fc4ffc697c0677f660afceb2">   70</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a54f6ae53fc4ffc697c0677f660afceb2">p_srs_log_buffer</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>*<a class="code" href="xran__fh__o__du_8h.html#af3e0ced3530652b3c92220c8783b55fa">XRAN_MAX_ANT_ARRAY_ELM_NR</a>];</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="common_8h.html#a9903f17a482557ec30123a63d9f52c7f">   71</a></span>&#160;int32_t <a class="code" href="common_8c.html#a9903f17a482557ec30123a63d9f52c7f">srs_log_buffer_size</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>*<a class="code" href="xran__fh__o__du_8h.html#af3e0ced3530652b3c92220c8783b55fa">XRAN_MAX_ANT_ARRAY_ELM_NR</a>];</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="common_8h.html#a54295c1c12a237fac044d84d8c0ff0d9">   72</a></span>&#160;int32_t <a class="code" href="common_8c.html#a54295c1c12a237fac044d84d8c0ff0d9">srs_log_buffer_position</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>*<a class="code" href="xran__fh__o__du_8h.html#af3e0ced3530652b3c92220c8783b55fa">XRAN_MAX_ANT_ARRAY_ELM_NR</a>];</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="common_8h.html#a9f1fca36999b354b0c35757f7e307185">   74</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a9f1fca36999b354b0c35757f7e307185">p_tx_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="common_8h.html#ad23ecec0666a9c37160556488199ad5d">   75</a></span>&#160;int32_t <a class="code" href="common_8c.html#ad23ecec0666a9c37160556488199ad5d">tx_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="common_8h.html#a66fcfd58fda188d4f58af523ed76258e">   77</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a66fcfd58fda188d4f58af523ed76258e">p_rx_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="common_8h.html#ac33fae2fa6f1f85b151fe0d60c132931">   78</a></span>&#160;int32_t <a class="code" href="common_8c.html#ac33fae2fa6f1f85b151fe0d60c132931">rx_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">/* beamforming weights for UL (O-DU) */</span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="common_8h.html#a77bd4ecb90ef07ddc1420242672b1587">   81</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a77bd4ecb90ef07ddc1420242672b1587">p_tx_dl_bfw_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="common_8h.html#aad7c467bc9da44318d2e8cf2f4472f17">   82</a></span>&#160;int32_t <a class="code" href="common_8c.html#aad7c467bc9da44318d2e8cf2f4472f17">tx_dl_bfw_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="common_8h.html#a364dd5820c1bb3fc2f760e5b6cab5b98">   83</a></span>&#160;int32_t <a class="code" href="common_8c.html#a364dd5820c1bb3fc2f760e5b6cab5b98">tx_dl_bfw_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">/* beamforming weights for UL (O-DU) */</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="common_8h.html#a95b1981d7d33eb50789dbc55d5d2755f">   86</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a95b1981d7d33eb50789dbc55d5d2755f">p_tx_ul_bfw_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="common_8h.html#a2fca7a2340a727f72d85407c5e153ed4">   87</a></span>&#160;int32_t <a class="code" href="common_8c.html#a2fca7a2340a727f72d85407c5e153ed4">tx_ul_bfw_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="common_8h.html#adc7a94af3a9c52fdb09e8733264eee4a">   88</a></span>&#160;int32_t <a class="code" href="common_8c.html#adc7a94af3a9c52fdb09e8733264eee4a">tx_ul_bfw_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">/* beamforming weights for UL (O-RU) */</span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="common_8h.html#a0029e17870631ef2db8bb2e0cd0f9d3a">   91</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a0029e17870631ef2db8bb2e0cd0f9d3a">p_rx_dl_bfw_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="common_8h.html#a75c2080232a140585589adea6b446d61">   92</a></span>&#160;int32_t <a class="code" href="common_8c.html#a75c2080232a140585589adea6b446d61">rx_dl_bfw_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="common_8h.html#a69ceaec7b612ecba9628a4a078ff319a">   93</a></span>&#160;int32_t <a class="code" href="common_8c.html#a69ceaec7b612ecba9628a4a078ff319a">rx_dl_bfw_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">/* beamforming weights for UL (O-RU) */</span></div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="common_8h.html#a6aa805f25383d5191fbfe3ed4a4f3ce7">   96</a></span>&#160;int16_t *<a class="code" href="common_8c.html#a6aa805f25383d5191fbfe3ed4a4f3ce7">p_rx_ul_bfw_buffer</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="common_8h.html#ada292a2cdef3b215f7a2f0e84c8c027c">   97</a></span>&#160;int32_t <a class="code" href="common_8c.html#ada292a2cdef3b215f7a2f0e84c8c027c">rx_ul_bfw_buffer_size</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="common_8h.html#a49b46cf2c43d8dade13dce8a3e3cdba9">   98</a></span>&#160;int32_t <a class="code" href="common_8c.html#a49b46cf2c43d8dade13dce8a3e3cdba9">rx_ul_bfw_buffer_position</a>[<a class="code" href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a>];</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">// F1 Tables 38.101-1 Table 5.3.2-1. Maximum transmission bandwidth configuration NRB</span></div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">  101</a></span>&#160;uint16_t <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[3][13] =</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;{</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="comment">//  5MHz    10MHz   15MHz   20 MHz  25 MHz  30 MHz  40 MHz  50MHz   60 MHz  70 MHz  80 MHz   90 MHz  100 MHz</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        {25,    52,     79,     106,    133,    160,    216,    270,    0,         0,      0,      0,      0},         <span class="comment">// Numerology 0 (15KHz)</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        {11,    24,     38,     51,     65,     78,     106,    133,    162,       0,    217,    245,    273},         <span class="comment">// Numerology 1 (30KHz)</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        {0,     11,     18,     24,     31,     38,     51,     65,     79,        0,    107,    121,    135}          <span class="comment">// Numerology 2 (60KHz)</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;};</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">// F2 Tables 38.101-2 Table 5.3.2-1. Maximum transmission bandwidth configuration NRB</span></div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="common_8c.html#ac5b0db7e5c13fb0650285fa9f40a5038">  110</a></span>&#160;uint16_t <a class="code" href="common_8c.html#ac5b0db7e5c13fb0650285fa9f40a5038">nNumRbsPerSymF2</a>[2][4] =</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;{</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="comment">//  50Mhz  100MHz  200MHz   400MHz</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        {66,    132,    264,     0},        <span class="comment">// Numerology 2 (60KHz)</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        {32,    66,     132,     264}       <span class="comment">// Numerology 3 (120KHz)</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;};</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment">// 38.211 - Table 4.2.1</span></div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="common_8c.html#a8734b8bf5121975264c578e7a875adf6">  118</a></span>&#160;uint16_t <a class="code" href="common_8c.html#a8734b8bf5121975264c578e7a875adf6">nSubCarrierSpacing</a>[5] =</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    15,     <span class="comment">// mu = 0</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    30,     <span class="comment">// mu = 1</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    60,     <span class="comment">// mu = 2</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    120,    <span class="comment">// mu = 3</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    240     <span class="comment">// mu = 4</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;};</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment">// TTI interval in us (slot duration)</span></div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="common_8c.html#a2d77acfd0f679f0a8a73ef14abc706a9">  128</a></span>&#160;uint16_t <a class="code" href="common_8c.html#a2d77acfd0f679f0a8a73ef14abc706a9">nTtiInterval</a>[4] =</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;{</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    1000,     <span class="comment">// mu = 0</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    500,     <span class="comment">// mu = 1</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    250,     <span class="comment">// mu = 2</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    125,     <span class="comment">// mu = 3</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;};</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment">// F1 Tables 38.101-1 Table F.5.3. Window length for normal CP</span></div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="common_8c.html#ad39b126a8b9123072b41967be14235ba">  138</a></span>&#160;uint16_t <a class="code" href="common_8c.html#ad39b126a8b9123072b41967be14235ba">nCpSizeF1</a>[3][13][2] =</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;{</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="comment">//    5MHz      10MHz      15MHz       20 MHz      25 MHz     30 MHz      40 MHz       50MHz       60 MHz      70 MHz     80 MHz     90 MHz     100 MHz</span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        {{40, 36}, {80, 72}, {120, 108}, {160, 144}, {160, 144}, {240, 216}, {320, 288}, {320, 288},     {0, 0},     {0, 0},     {0, 0},     {0, 0},     {0, 0}},        <span class="comment">// Numerology 0 (15KHz)</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        {{22, 18}, {44, 36},   {66, 54},   {88, 72},   {88, 72}, {132, 108}, {176, 144}, {176, 144}, {264, 216}, {264, 216}, {352, 288}, {352, 288}, {352, 288}},       <span class="comment">// Numerology 1 (30KHz)</span></div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        {  {0, 0}, {26, 18},   {39, 27},   {52, 36},   {52, 36},   {78, 54},  {104, 72},  {104, 72}, {156, 108}, {156, 108}, {208, 144}, {208, 144}, {208, 144}},       <span class="comment">// Numerology 2 (60KHz)</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;};</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="comment">// F2 Tables 38.101-2 Table F.5.3. Window length for normal CP</span></div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="common_8c.html#a41b634e3c43560c0a29f60ddbf491d99">  147</a></span>&#160;int16_t <a class="code" href="common_8c.html#a41b634e3c43560c0a29f60ddbf491d99">nCpSizeF2</a>[2][4][2] =</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;{</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="comment">//    50Mhz    100MHz      200MHz     400MHz</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        {  {0, 0}, {104, 72}, {208, 144}, {416, 288}}, <span class="comment">// Numerology 2 (60KHz)</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        {{68, 36}, {136, 72}, {272, 144}, {544, 288}}, <span class="comment">// Numerology 3 (120KHz)</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;};</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="common_8c.html#aa4df1a21858f512ae1335aa50df1ce87">  154</a></span>&#160;uint32_t <a class="code" href="common_8c.html#aa4df1a21858f512ae1335aa50df1ce87">gMaxSlotNum</a>;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="common_8c.html#a791aa78c25664db4024f849dff35373a">  155</a></span>&#160;uint32_t <a class="code" href="common_8c.html#a791aa78c25664db4024f849dff35373a">gNumDLCtx</a>;</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="common_8c.html#ad54ed8a4092cdbdec6d5aacbd61d696c">  156</a></span>&#160;uint32_t <a class="code" href="common_8c.html#ad54ed8a4092cdbdec6d5aacbd61d696c">gNumULCtx</a>;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="common_8c.html#a76a0e379fc6f77567418d4e796e779db">  157</a></span>&#160;uint32_t <a class="code" href="common_8c.html#a76a0e379fc6f77567418d4e796e779db">gDLResetAdvance</a>;</div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="common_8c.html#a187e00334790a43d509b23b49bf9a741">  158</a></span>&#160;uint32_t <a class="code" href="common_8c.html#a187e00334790a43d509b23b49bf9a741">gDLProcAdvance</a>;</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="common_8c.html#aca5989a141a0f1335592b2ad78a84349">  159</a></span>&#160;uint32_t <a class="code" href="common_8c.html#aca5989a141a0f1335592b2ad78a84349">gULProcAdvance</a>;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="keyword">static</span> uint16_t g_NumSlotTDDLoop[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>] = { <a class="code" href="xran__fh__o__du_8h.html#acd3869dff9738650c847e456c6ab21ae">XRAN_NUM_OF_SLOT_IN_TDD_LOOP</a> };</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keyword">static</span> uint16_t g_NumDLSymSp[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>][<a class="code" href="xran__fh__o__du_8h.html#acd3869dff9738650c847e456c6ab21ae">XRAN_NUM_OF_SLOT_IN_TDD_LOOP</a>] = {0};</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="keyword">static</span> uint16_t g_NumULSymSp[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>][<a class="code" href="xran__fh__o__du_8h.html#acd3869dff9738650c847e456c6ab21ae">XRAN_NUM_OF_SLOT_IN_TDD_LOOP</a>] = {0};</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="keyword">static</span> uint8_t g_SlotType[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>][<a class="code" href="xran__fh__o__du_8h.html#acd3869dff9738650c847e456c6ab21ae">XRAN_NUM_OF_SLOT_IN_TDD_LOOP</a>] = {{<a class="code" href="xran__fh__o__du_8h.html#a81efa76a214d1fd1b9b409bdea15c87c">XRAN_SLOT_TYPE_INVALID</a>}};</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">  165</a></span>&#160;<span class="keywordtype">float</span> <a class="code" href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">g_UlRate</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>] = {0.0};</div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">  166</a></span>&#160;<span class="keywordtype">float</span> <a class="code" href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">g_DlRate</a>[<a class="code" href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a>] = {0.0};</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="common_8h.html#a7443b72e990584de0b5b2a9306ed820a">  168</a></span>&#160;uint32_t <a class="code" href="common_8c.html#a7443b72e990584de0b5b2a9306ed820a">app_xran_get_tti_interval</a>(uint8_t nMu)</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;{</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordflow">if</span> (nMu &lt; 4)</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    {</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="common_8c.html#a2d77acfd0f679f0a8a73ef14abc706a9">nTtiInterval</a>[nMu];</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    {</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        printf(<span class="stringliteral">&quot;ERROR: %s Mu[%d] is not valid\n&quot;</span>,__FUNCTION__, nMu);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    }</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;}</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="common_8h.html#a4a9173ba3c1f1bdf4b1ea9f8e531c561">  182</a></span>&#160;uint32_t <a class="code" href="common_8c.html#a4a9173ba3c1f1bdf4b1ea9f8e531c561">app_xran_get_scs</a>(uint8_t nMu)</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;{</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    <span class="keywordflow">if</span> (nMu &lt;= 3)</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    {</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="common_8c.html#a8734b8bf5121975264c578e7a875adf6">nSubCarrierSpacing</a>[nMu];</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    }</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    {</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        printf(<span class="stringliteral">&quot;ERROR: %s Mu[%d] is not valid\n&quot;</span>,__FUNCTION__, nMu);</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    }</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;}</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="comment">//-------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="comment"></span><span class="comment">//-------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="common_8h.html#abd62743e637f8bee2b0d3b1e2b4ecaac">  213</a></span>&#160;uint16_t <a class="code" href="common_8c.html#abd62743e637f8bee2b0d3b1e2b4ecaac">app_xran_get_num_rbs</a>(uint32_t nNumerology, uint32_t nBandwidth, uint32_t nAbsFrePointA)</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;{</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    uint32_t error = 1;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    uint16_t <a class="code" href="gen__test_8m.html#a887ee7a54247d19e5e93955a7b9663ae">numRBs</a> = 0;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keywordflow">if</span> (nAbsFrePointA &lt;= 6000000)</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    {</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="comment">// F1 Tables 38.101-1 Table 5.3.2-1. Maximum transmission bandwidth configuration NRB</span></div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keywordflow">if</span> (nNumerology &lt; 3)</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        {</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            <span class="keywordflow">switch</span>(nBandwidth)</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            {</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5fe3b6ce32a0f5d07b8d09757b0ca6ae">PHY_BW_5_0_MHZ</a>:</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][0];</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                    error = 0;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa0ffa9b60f3de26c5f0c091a92e2690ce">PHY_BW_10_0_MHZ</a>:</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][1];</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                    error = 0;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa3b9413cb26be463cb08bc3e45f1ba0e4">PHY_BW_15_0_MHZ</a>:</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][2];</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                    error = 0;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa827e54f2b9563a648648617dabae6b86">PHY_BW_20_0_MHZ</a>:</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][3];</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                    error = 0;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa34ebc504f2878c8e57b28ecb2aa5a3d6">PHY_BW_25_0_MHZ</a>:</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][4];</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                    error = 0;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5e3415eba2853d7a163296722d39ce0a">PHY_BW_30_0_MHZ</a>:</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][5];</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                    error = 0;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa038fd5bff3233ab71354371731be0cca">PHY_BW_40_0_MHZ</a>:</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][6];</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;                    error = 0;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afab80d02a26ce30cff1a0c353fa40ee648">PHY_BW_50_0_MHZ</a>:</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][7];</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                    error = 0;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa069b1b1bc047d5fa38058f1df13cab23">PHY_BW_60_0_MHZ</a>:</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][8];</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                    error = 0;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa80603099c73c2d2a53541404c4daea10">PHY_BW_70_0_MHZ</a>:</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][9];</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                    error = 0;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afac06c5f55eeae8d0e44ae09b1b15a4153">PHY_BW_80_0_MHZ</a>:</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][10];</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                    error = 0;</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5662647cfc4da498383a327296832f1e">PHY_BW_90_0_MHZ</a>:</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][11];</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                    error = 0;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afab0667ae8b27d5f90b2f876dc2fa60a8a">PHY_BW_100_0_MHZ</a>:</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                    numRBs = <a class="code" href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a>[nNumerology][12];</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                    error = 0;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                <span class="keywordflow">default</span>:</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                    error = 1;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            }</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        }</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    }</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    {</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keywordflow">if</span> ((nNumerology &gt;= 2) &amp;&amp; (nNumerology &lt;= 3))</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        {</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            <span class="comment">// F2 Tables 38.101-2 Table 5.3.2-1. Maximum transmission bandwidth configuration NRB</span></div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="keywordflow">switch</span>(nBandwidth)</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;            {</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afab80d02a26ce30cff1a0c353fa40ee648">PHY_BW_50_0_MHZ</a>:</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                    numRBs = <a class="code" href="common_8c.html#ac5b0db7e5c13fb0650285fa9f40a5038">nNumRbsPerSymF2</a>[nNumerology-2][0];</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                    error = 0;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afab0667ae8b27d5f90b2f876dc2fa60a8a">PHY_BW_100_0_MHZ</a>:</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                    numRBs = <a class="code" href="common_8c.html#ac5b0db7e5c13fb0650285fa9f40a5038">nNumRbsPerSymF2</a>[nNumerology-2][1];</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                    error = 0;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5d3a9ef2cafdd5f4c3b5c9dd9332406b">PHY_BW_200_0_MHZ</a>:</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                    numRBs = <a class="code" href="common_8c.html#ac5b0db7e5c13fb0650285fa9f40a5038">nNumRbsPerSymF2</a>[nNumerology-2][2];</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                    error = 0;</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;                <span class="keywordflow">case</span> <a class="code" href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa2e5709bbf9b2c3443fa150a0b9d7bd01">PHY_BW_400_0_MHZ</a>:</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                    numRBs = <a class="code" href="common_8c.html#ac5b0db7e5c13fb0650285fa9f40a5038">nNumRbsPerSymF2</a>[nNumerology-2][3];</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                    error = 0;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                <span class="keywordflow">default</span>:</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                    error = 1;</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;            }</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        }</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    }</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordflow">if</span> (error)</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    {</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        printf(<span class="stringliteral">&quot;ERROR: %s: nNumerology[%d] nBandwidth[%d] nAbsFrePointA[%d]\n&quot;</span>,__FUNCTION__, nNumerology, nBandwidth, nAbsFrePointA);</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    }</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    {</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        printf(<span class="stringliteral">&quot;%s: nNumerology[%d] nBandwidth[%d] nAbsFrePointA[%d] numRBs[%d]\n&quot;</span>,__FUNCTION__, nNumerology, nBandwidth, nAbsFrePointA, numRBs);</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    }</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="gen__test_8m.html#a887ee7a54247d19e5e93955a7b9663ae">numRBs</a>;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;}</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="comment">//-------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="comment"></span><span class="comment">//-------------------------------------------------------------------------------------------</span></div><div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="common_8h.html#a6d7aac49f30b5d75a7a8436fbbc36cd7">  338</a></span>&#160;uint32_t <a class="code" href="common_8c.html#a6d7aac49f30b5d75a7a8436fbbc36cd7">app_xran_cal_nrarfcn</a>(uint32_t nCenterFreq)</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;{</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    uint32_t nDeltaFglobal,nFoffs,nNoffs;</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    uint32_t nNRARFCN = 0;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    <span class="keywordflow">if</span>(nCenterFreq &gt; 0 &amp;&amp; nCenterFreq &lt; 3000*1000)</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    {</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        nDeltaFglobal = 5;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        nFoffs = 0;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        nNoffs = 0;</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    }</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(nCenterFreq &gt;= 3000*1000 &amp;&amp; nCenterFreq &lt; 24250*1000)</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    {</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        nDeltaFglobal = 15;</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        nFoffs = 3000*1000;</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        nNoffs = 600000;</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    }</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(nCenterFreq &gt;= 24250*1000 &amp;&amp; nCenterFreq &lt;= 100000*1000)</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    {</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        nDeltaFglobal = 60;</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        nFoffs = 24250080;</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        nNoffs = 2016667;</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    }</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    {</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;         printf(<span class="stringliteral">&quot;@@@@ incorrect center frerquency %d\n&quot;</span>,nCenterFreq);</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;         <span class="keywordflow">return</span> (0);</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    }</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    nNRARFCN = ((nCenterFreq - nFoffs)/nDeltaFglobal) + nNoffs;</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    printf(<span class="stringliteral">&quot;%s: nCenterFreq[%d] nDeltaFglobal[%d] nFoffs[%d] nNoffs[%d] nNRARFCN[%d]\n&quot;</span>, __FUNCTION__, nCenterFreq, nDeltaFglobal, nFoffs, nNoffs, nNRARFCN);</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    <span class="keywordflow">return</span> (nNRARFCN);</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;}</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;</div><div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="common_8c.html#a2b515e829520e3af448a4d00d22de161">  373</a></span>&#160;int32_t <a class="code" href="common_8c.html#a2b515e829520e3af448a4d00d22de161">app_xran_slot_limit</a>(int32_t nSfIdx)</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;{</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordflow">while</span> (nSfIdx &lt; 0) {</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        nSfIdx += <a class="code" href="common_8c.html#aa4df1a21858f512ae1335aa50df1ce87">gMaxSlotNum</a>;</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    }</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keywordflow">while</span> (nSfIdx &gt;= <a class="code" href="common_8c.html#aa4df1a21858f512ae1335aa50df1ce87">gMaxSlotNum</a>) {</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        nSfIdx -= <a class="code" href="common_8c.html#aa4df1a21858f512ae1335aa50df1ce87">gMaxSlotNum</a>;</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    }</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    <span class="keywordflow">return</span> nSfIdx;</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;}</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;</div><div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="common_8c.html#a15e01f62daf328aef8184ea50c9955fa">  386</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="common_8c.html#a15e01f62daf328aef8184ea50c9955fa">app_xran_clear_slot_type</a>(uint32_t nPhyInstanceId)</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;{</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <a class="code" href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">g_UlRate</a>[nPhyInstanceId] = 0.0;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <a class="code" href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">g_DlRate</a>[nPhyInstanceId] = 0.0;</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    g_NumSlotTDDLoop[nPhyInstanceId] = 1;</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;}</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;</div><div class="line"><a name="l00393"></a><span class="lineno"><a class="line" href="common_8h.html#ae41dd953f43c314e9c7688d18cf69e8b">  393</a></span>&#160;int32_t <a class="code" href="common_8c.html#ae41dd953f43c314e9c7688d18cf69e8b">app_xran_set_slot_type</a>(uint32_t nPhyInstanceId, uint32_t nFrameDuplexType, uint32_t nTddPeriod, <span class="keyword">struct</span> <a class="code" href="structxran__slot__config.html">xran_slot_config</a> *psSlotConfig)</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;{</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    uint32_t nSlotNum, nSymNum, nVal, i;</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    uint32_t numDlSym, numUlSym, numGuardSym;</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    uint32_t numDlSlots = 0, numUlSlots = 0, numSpDlSlots = 0, numSpUlSlots = 0, numSpSlots = 0;</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <span class="keywordtype">char</span> sSlotPattern[<a class="code" href="xran__fh__o__du_8h.html#a581b66d2fea333f0a2e9ca3f9589fd89">XRAN_SLOT_TYPE_LAST</a>][10] = {<span class="stringliteral">&quot;IN\0&quot;</span>, <span class="stringliteral">&quot;DL\0&quot;</span>, <span class="stringliteral">&quot;UL\0&quot;</span>, <span class="stringliteral">&quot;SP\0&quot;</span>, <span class="stringliteral">&quot;FD\0&quot;</span>};</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    <span class="comment">// nPhyInstanceId    Carrier ID</span></div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <span class="comment">// nFrameDuplexType  0 = FDD 1 = TDD</span></div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    <span class="comment">// nTddPeriod        Tdd Periodicity</span></div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    <span class="comment">// psSlotConfig[80]  Slot Config Structure for nTddPeriod Slots</span></div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;    <a class="code" href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">g_UlRate</a>[nPhyInstanceId] = 0.0;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    <a class="code" href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">g_DlRate</a>[nPhyInstanceId] = 0.0;</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    g_NumSlotTDDLoop[nPhyInstanceId] = nTddPeriod;</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="xran__fh__o__du_8h.html#acd3869dff9738650c847e456c6ab21ae">XRAN_NUM_OF_SLOT_IN_TDD_LOOP</a>; i++)</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    {</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        g_SlotType[nPhyInstanceId][i] = <a class="code" href="xran__fh__o__du_8h.html#a81efa76a214d1fd1b9b409bdea15c87c">XRAN_SLOT_TYPE_INVALID</a>;</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        g_NumDLSymSp[nPhyInstanceId][i] = 0;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        g_NumULSymSp[nPhyInstanceId][i] = 0;</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    }</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    <span class="keywordflow">if</span> (nFrameDuplexType == <a class="code" href="xran__fh__o__du_8h.html#a1784f85d62401cba0ffb49c4d2467aaea852ad6bfdec7d14a64425c01c16d00c0">XRAN_FDD</a>)</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    {</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="xran__fh__o__du_8h.html#acd3869dff9738650c847e456c6ab21ae">XRAN_NUM_OF_SLOT_IN_TDD_LOOP</a>; i++)</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        {</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;            g_SlotType[nPhyInstanceId][i] = <a class="code" href="xran__fh__o__du_8h.html#ad997c19049d5e80611e4360b1ed79b80">XRAN_SLOT_TYPE_FDD</a>;</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        }</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        g_NumSlotTDDLoop[nPhyInstanceId] = 1;</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        <a class="code" href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">g_DlRate</a>[nPhyInstanceId] = 1.0;</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        <a class="code" href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">g_UlRate</a>[nPhyInstanceId] = 1.0;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    }</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    {</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <span class="keywordflow">for</span> (nSlotNum = 0; nSlotNum &lt; nTddPeriod; nSlotNum++)</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        {</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;            numDlSym = 0;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;            numUlSym = 0;</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;            numGuardSym = 0;</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;            <span class="keywordflow">for</span> (nSymNum = 0; nSymNum &lt; <a class="code" href="xran__fh__o__du_8h.html#a87d92ec177ed9c388685a91051f66205">XRAN_NUM_OF_SYMBOL_PER_SLOT</a>; nSymNum++)</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;            {</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;                <span class="keywordflow">switch</span>(psSlotConfig[nSlotNum].nSymbolType[nSymNum])</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;                {</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;                    <span class="keywordflow">case</span> <a class="code" href="xran__fh__o__du_8h.html#aa7db41b67e2cd3be904b7332d8df6657">XRAN_SYMBOL_TYPE_DL</a>:</div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;                        numDlSym++;</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;                    <span class="keywordflow">break</span>;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;                    <span class="keywordflow">case</span> <a class="code" href="xran__fh__o__du_8h.html#a0e0df6a907cf2724cf3e531d7f18fb3c">XRAN_SYMBOL_TYPE_GUARD</a>:</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;                        numGuardSym++;</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;                    <span class="keywordflow">break</span>;</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;                    <span class="keywordflow">default</span>:</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;                        numUlSym++;</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                    <span class="keywordflow">break</span>;</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;                }</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;            }</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;            <span class="comment">// printf(&quot;nSlotNum[%d] : numDlSym[%d] numGuardSym[%d] numUlSym[%d]\n&quot;, nSlotNum, numDlSym, numGuardSym, numUlSym);</span></div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;</div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;            <span class="keywordflow">if</span> ((numUlSym == 0) &amp;&amp; (numGuardSym == 0))</div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;            {</div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;                g_SlotType[nPhyInstanceId][nSlotNum] = <a class="code" href="xran__fh__o__du_8h.html#a3640d50cafb5ccc15b73219309f60a3b">XRAN_SLOT_TYPE_DL</a>;</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;                numDlSlots++;</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;            }</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((numDlSym == 0) &amp;&amp; (numGuardSym == 0))</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;            {</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;                g_SlotType[nPhyInstanceId][nSlotNum] = <a class="code" href="xran__fh__o__du_8h.html#a3167443dbf786f9b87a133119a8f69e8">XRAN_SLOT_TYPE_UL</a>;</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;                numUlSlots++;</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;            }</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;            {</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;                g_SlotType[nPhyInstanceId][nSlotNum] = <a class="code" href="xran__fh__o__du_8h.html#a37ddab95bdd53de1ee17a3607a183eae">XRAN_SLOT_TYPE_SP</a>;</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;                numSpSlots++;</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;                <span class="keywordflow">if</span> (numDlSym)</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;                {</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;                    numSpDlSlots++;</div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;                    g_NumDLSymSp[nPhyInstanceId][nSlotNum] = numDlSym;</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;                }</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;                <span class="keywordflow">if</span> (numUlSym)</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;                {</div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;                    numSpUlSlots++;</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;                    g_NumULSymSp[nPhyInstanceId][nSlotNum] = numUlSym;</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;                }</div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;            }</div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;            <span class="comment">// printf(&quot;            numDlSlots[%d] numUlSlots[%d] numSpSlots[%d] numSpDlSlots[%d] numSpUlSlots[%d]\n&quot;, numDlSlots, numUlSlots, numSpSlots, numSpDlSlots, numSpUlSlots);</span></div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        }</div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;</div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        <a class="code" href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">g_DlRate</a>[nPhyInstanceId] = (float)(numDlSlots + numSpDlSlots) / (float)nTddPeriod;</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        <a class="code" href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">g_UlRate</a>[nPhyInstanceId] = (float)(numUlSlots + numSpUlSlots) / (float)nTddPeriod;</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    }</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;</div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;    printf(<span class="stringliteral">&quot;set_slot_type: nPhyInstanceId[%d] nFrameDuplexType[%d], nTddPeriod[%d]\n&quot;</span>,</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        nPhyInstanceId, nFrameDuplexType, nTddPeriod);</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    printf(<span class="stringliteral">&quot;DLRate[%f] ULRate[%f]\n&quot;</span>, <a class="code" href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">g_DlRate</a>[nPhyInstanceId], <a class="code" href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">g_UlRate</a>[nPhyInstanceId]);</div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    nVal = (g_NumSlotTDDLoop[nPhyInstanceId] &lt; 10) ? g_NumSlotTDDLoop[nPhyInstanceId] : 10;</div><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;</div><div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    printf(<span class="stringliteral">&quot;SlotPattern:\n&quot;</span>);</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    printf(<span class="stringliteral">&quot;Slot:   &quot;</span>);</div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    <span class="keywordflow">for</span> (nSlotNum = 0; nSlotNum &lt; nVal; nSlotNum++)</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    {</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        printf(<span class="stringliteral">&quot;%d    &quot;</span>, nSlotNum);</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    }</div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    printf(<span class="stringliteral">&quot;\n&quot;</span>);</div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    printf(<span class="stringliteral">&quot;  %3d   &quot;</span>, 0);</div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;    <span class="keywordflow">for</span> (nSlotNum = 0, i = 0; nSlotNum &lt; g_NumSlotTDDLoop[nPhyInstanceId]; nSlotNum++)</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    {</div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;        printf(<span class="stringliteral">&quot;%s   &quot;</span>, sSlotPattern[g_SlotType[nPhyInstanceId][nSlotNum]]);</div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;        i++;</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <span class="keywordflow">if</span> ((i == 10) &amp;&amp; ((nSlotNum+1) &lt; g_NumSlotTDDLoop[nPhyInstanceId]))</div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;        {</div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;            printf(<span class="stringliteral">&quot;\n&quot;</span>);</div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;            printf(<span class="stringliteral">&quot;  %3d   &quot;</span>, nSlotNum);</div><div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;            i = 0;</div><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;        }</div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    }</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    printf(<span class="stringliteral">&quot;\n\n&quot;</span>);</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;}</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;</div><div class="line"><a name="l00517"></a><span class="lineno"><a class="line" href="common_8c.html#a0c617a0804e2a4eda51b402b03922dc2">  517</a></span>&#160;int32_t <a class="code" href="common_8c.html#a0c617a0804e2a4eda51b402b03922dc2">app_xran_get_slot_type</a>(int32_t nCellIdx, int32_t nSlotdx, int32_t nType)</div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;{</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    int32_t nSfIdxMod, nSfType, ret = 0;</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;    nSfIdxMod = <a class="code" href="common_8c.html#a2b515e829520e3af448a4d00d22de161">app_xran_slot_limit</a>(nSlotdx) % ((g_NumSlotTDDLoop[nCellIdx] &gt; 0) ? g_NumSlotTDDLoop[nCellIdx]: 1);</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;    nSfType = g_SlotType[nCellIdx][nSfIdxMod];</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    <span class="keywordflow">if</span> (nSfType == nType)</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;    {</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        ret = 1;</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    }</div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (nSfType == <a class="code" href="xran__fh__o__du_8h.html#a37ddab95bdd53de1ee17a3607a183eae">XRAN_SLOT_TYPE_SP</a>)</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    {</div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <span class="keywordflow">if</span> ((nType == <a class="code" href="xran__fh__o__du_8h.html#a3640d50cafb5ccc15b73219309f60a3b">XRAN_SLOT_TYPE_DL</a>) &amp;&amp; g_NumDLSymSp[nCellIdx][nSfIdxMod])</div><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;        {</div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;            ret = 1;</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;        }</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        <span class="keywordflow">if</span> ((nType == <a class="code" href="xran__fh__o__du_8h.html#a3167443dbf786f9b87a133119a8f69e8">XRAN_SLOT_TYPE_UL</a>) &amp;&amp; g_NumULSymSp[nCellIdx][nSfIdxMod])</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        {</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;            ret = 1;</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;        }</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;    }</div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (nSfType == <a class="code" href="xran__fh__o__du_8h.html#ad997c19049d5e80611e4360b1ed79b80">XRAN_SLOT_TYPE_FDD</a>)</div><div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;    {</div><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;        ret = 1;</div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    }</div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;}</div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;</div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;</div><div class="line"><a name="l00550"></a><span class="lineno"><a class="line" href="common_8h.html#acd37223937d89e77a1ccbdc6e94b38cc">  550</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="common_8c.html#acd37223937d89e77a1ccbdc6e94b38cc">sys_save_buf_to_file</a>(<span class="keywordtype">char</span> *filename, <span class="keywordtype">char</span> *bufname, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBuffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> buffers_num)</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;{</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;    <span class="keywordflow">if</span> (size)</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    {</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;        <span class="keywordflow">if</span> (filename &amp;&amp; bufname)</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;        {</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;            FILE           *file;</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;            printf(<span class="stringliteral">&quot;Storing %s to file %s: &quot;</span>, bufname, filename);</div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;            file = fopen(filename, <span class="stringliteral">&quot;wb&quot;</span>);</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;            <span class="keywordflow">if</span> (file == NULL)</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;            {</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;                printf(<span class="stringliteral">&quot;can&#39;t open file %s!!!&quot;</span>, filename);</div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;            }</div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;            {</div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;                uint32_t             num;</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;                num = <a class="code" href="gen__test_8m.html#a8e50d67d4be6daacbf6522b5950a6a4d">fwrite</a>(pBuffer, buffers_num, size, file);</div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;                fflush(file);</div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;                <a class="code" href="gen__test_8m.html#a14e2cbac46a5d611bf112b1f4beb7021">fclose</a>(file);</div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;                printf(<span class="stringliteral">&quot;from addr (0x%lx) size (%d) bytes num (%d)&quot;</span>, (uint64_t)pBuffer, size, num);</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;            }</div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;            printf(<span class="stringliteral">&quot; \n&quot;</span>);</div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;        }</div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        {</div><div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;            printf(<span class="stringliteral">&quot; the file name, buffer name are not set!!!&quot;</span>);</div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        }</div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    }</div><div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    {</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        printf(<span class="stringliteral">&quot; the %s is free: size = %d bytes!!!&quot;</span>, bufname, size);</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    }</div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;}</div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;</div><div class="line"><a name="l00584"></a><span class="lineno"><a class="line" href="common_8h.html#a8f27f0a8b6843f5e32ecbce83d487262">  584</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="common_8c.html#a8f27f0a8b6843f5e32ecbce83d487262">sys_load_file_to_buff</a>(<span class="keywordtype">char</span> *filename, <span class="keywordtype">char</span> *bufname, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBuffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> buffers_num)</div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;{</div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  file_size = 0;</div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;    <span class="keywordtype">int</span>  num= 0;</div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;    <span class="keywordflow">if</span> (size)</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    {</div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        <span class="keywordflow">if</span> (filename &amp;&amp; bufname)</div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;        {</div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;            FILE           *file;</div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;            printf(<span class="stringliteral">&quot;Loading file %s to  %s: &quot;</span>, filename, bufname);</div><div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;            file = fopen(filename, <span class="stringliteral">&quot;rb&quot;</span>);</div><div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;</div><div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;</div><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;            <span class="keywordflow">if</span> (file == NULL)</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;            {</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;                printf(<span class="stringliteral">&quot;can&#39;t open file %s!!!&quot;</span>, filename);</div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;                exit(-1);</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;            }</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;            {</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;                fseek(file, 0, SEEK_END);</div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;                file_size = ftell(file);</div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;                fseek(file, 0, SEEK_SET);</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;                <span class="keywordflow">if</span> ((file_size &gt; size) || (file_size == 0))</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;                    file_size = size;</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;                printf(<span class="stringliteral">&quot;Reading IQ samples from file: File Size: %d [Buffer Size: %d]\n&quot;</span>, file_size, size);</div><div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;</div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;                num = fread(pBuffer, buffers_num, size, file);</div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;                fflush(file);</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;                <a class="code" href="gen__test_8m.html#a14e2cbac46a5d611bf112b1f4beb7021">fclose</a>(file);</div><div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;                printf(<span class="stringliteral">&quot;from addr (0x%lx) size (%d) bytes num (%d)&quot;</span>, (uint64_t)pBuffer, file_size, num);</div><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;            }</div><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;            printf(<span class="stringliteral">&quot; \n&quot;</span>);</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;        }</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;        {</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;            printf(<span class="stringliteral">&quot; the file name, buffer name are not set!!!&quot;</span>);</div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;        }</div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    }</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;    {</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;        printf(<span class="stringliteral">&quot; the %s is free: size = %d bytes!!!&quot;</span>, bufname, size);</div><div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    }</div><div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;    <span class="keywordflow">return</span> num;</div><div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;}</div><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;</div><div class="line"><a name="l00635"></a><span class="lineno"><a class="line" href="common_8h.html#ab022cdd736a497eb5cfa7d5dcab0634c">  635</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="common_8c.html#ab022cdd736a497eb5cfa7d5dcab0634c">sys_save_buf_to_file_txt</a>(<span class="keywordtype">char</span> *filename, <span class="keywordtype">char</span> *bufname, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBuffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> buffers_num)</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;{</div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i;</div><div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;    <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;    <span class="keywordflow">if</span> (pBuffer == NULL)</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;</div><div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;    <span class="keywordflow">if</span> (size)</div><div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;    {</div><div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;        <span class="keywordflow">if</span> (filename &amp;&amp; bufname)</div><div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;        {</div><div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;            FILE           *file;</div><div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;            printf(<span class="stringliteral">&quot;Storing %s to file %s: &quot;</span>, bufname, filename);</div><div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;            file = fopen(filename, <span class="stringliteral">&quot;w&quot;</span>);</div><div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;            <span class="keywordflow">if</span> (file == NULL)</div><div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;            {</div><div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;                printf(<span class="stringliteral">&quot;can&#39;t open file %s!!!&quot;</span>, filename);</div><div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;                exit(-1);</div><div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;            }</div><div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;            {</div><div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;                uint32_t num = 0;</div><div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;</div><div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;                <span class="keywordtype">signed</span> <span class="keywordtype">short</span> *ptr = (<span class="keywordtype">signed</span> <span class="keywordtype">short</span>*)pBuffer;</div><div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;                <span class="keywordflow">for</span> (i = 0; i &lt; (size/((<span class="keywordtype">unsigned</span> int)<span class="keyword">sizeof</span>(<span class="keywordtype">signed</span> <span class="keywordtype">short</span>) )); i = i + 2)</div><div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;                {</div><div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;<span class="preprocessor">#ifndef CSCOPE_DEBUG</span></div><div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;                    ret = fprintf(file,<span class="stringliteral">&quot;%d %d\n&quot;</span>, ptr[i], ptr[i + 1]);</div><div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;                    ret = fprintf(file,<span class="stringliteral">&quot;%d %d &quot;</span>, ptr[i], ptr[i + 1]);</div><div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;                    <span class="comment">/*      I data =&gt; Ramp data, from 1 to 792.</span></div><div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;<span class="comment">                            Q data =&gt; Contains time information of the current symbol:</span></div><div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;<span class="comment">                            Bits [15:14] = Antenna-ID</span></div><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;<span class="comment">                            Bits [13:12] = \9300\94</span></div><div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;<span class="comment">                            Bits [11:8]  = Subframe-ID</span></div><div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;<span class="comment">                            Bits [7:4]   = Slot-ID</span></div><div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;<span class="comment">                            Bits [3:0]   = Symbol-ID */</span></div><div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;                            fprintf(file, <span class="stringliteral">&quot;0x%04x: ant %d Subframe-ID %d Slot-ID %d Symbol-ID %d\n&quot;</span>,</div><div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;                                        ptr[i + 1], (ptr[i + 1]&gt;&gt;14) &amp; 0x3,  (ptr[i + 1]&gt;&gt;8) &amp; 0xF,  (ptr[i + 1]&gt;&gt;4) &amp; 0xF, (ptr[i + 1]&gt;&gt;0) &amp; 0xF);</div><div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;                    <span class="keywordflow">if</span> (ret &lt; 0)</div><div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;                    {</div><div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;                        printf(<span class="stringliteral">&quot;fprintf %d\n&quot;</span>, ret);</div><div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;                        <a class="code" href="gen__test_8m.html#a14e2cbac46a5d611bf112b1f4beb7021">fclose</a>(file);</div><div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;                        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;                    }</div><div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;                    num++;</div><div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;                }</div><div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;                fflush(file);</div><div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;                <a class="code" href="gen__test_8m.html#a14e2cbac46a5d611bf112b1f4beb7021">fclose</a>(file);</div><div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;                printf(<span class="stringliteral">&quot;from addr (0x%lx) size (%d) IQ num (%d)&quot;</span>, (uint64_t)pBuffer, size, num);</div><div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;            }</div><div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;            printf(<span class="stringliteral">&quot; \n&quot;</span>);</div><div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;        }</div><div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;        {</div><div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;            printf(<span class="stringliteral">&quot; the file name, buffer name are not set!!!&quot;</span>);</div><div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;        }</div><div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;    }</div><div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;    {</div><div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;        printf(<span class="stringliteral">&quot; the %s is free: size = %d bytes!!!&quot;</span>, bufname, size);</div><div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;    }</div><div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;}</div><div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;</div><div class="ttc" id="common_8c_html_a66fcfd58fda188d4f58af523ed76258e"><div class="ttname"><a href="common_8c.html#a66fcfd58fda188d4f58af523ed76258e">p_rx_buffer</a></div><div class="ttdeci">int16_t * p_rx_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00077">common.c:77</a></div></div>
71 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa2e5709bbf9b2c3443fa150a0b9d7bd01"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa2e5709bbf9b2c3443fa150a0b9d7bd01">PHY_BW_400_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00046">common.h:46</a></div></div>
72 <div class="ttc" id="common_8c_html_afde5189915e37caf48edbef9138f966c"><div class="ttname"><a href="common_8c.html#afde5189915e37caf48edbef9138f966c">prach_log_buffer_position</a></div><div class="ttdeci">int32_t prach_log_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00068">common.c:68</a></div></div>
73 <div class="ttc" id="common_8h_html_a14c306e04a1b3ecdd13b82ab9ca6c9b5"><div class="ttname"><a href="common_8h.html#a14c306e04a1b3ecdd13b82ab9ca6c9b5">MAX_ANT_CARRIER_SUPPORTED</a></div><div class="ttdeci">#define MAX_ANT_CARRIER_SUPPORTED</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00051">common.h:51</a></div></div>
74 <div class="ttc" id="common_8c_html_a8b3edaed699562559db744c8e2aa36b1"><div class="ttname"><a href="common_8c.html#a8b3edaed699562559db744c8e2aa36b1">iq_bfw_buffer_size_ul</a></div><div class="ttdeci">int iq_bfw_buffer_size_ul</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00040">common.c:40</a></div></div>
75 <div class="ttc" id="common_8c_html_a364dd5820c1bb3fc2f760e5b6cab5b98"><div class="ttname"><a href="common_8c.html#a364dd5820c1bb3fc2f760e5b6cab5b98">tx_dl_bfw_buffer_position</a></div><div class="ttdeci">int32_t tx_dl_bfw_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00083">common.c:83</a></div></div>
76 <div class="ttc" id="xran__fh__o__du_8h_html_a0e0df6a907cf2724cf3e531d7f18fb3c"><div class="ttname"><a href="xran__fh__o__du_8h.html#a0e0df6a907cf2724cf3e531d7f18fb3c">XRAN_SYMBOL_TYPE_GUARD</a></div><div class="ttdeci">#define XRAN_SYMBOL_TYPE_GUARD</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00148">xran_fh_o_du.h:148</a></div></div>
77 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa5fe3b6ce32a0f5d07b8d09757b0ca6ae"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5fe3b6ce32a0f5d07b8d09757b0ca6ae">PHY_BW_5_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00044">common.h:44</a></div></div>
78 <div class="ttc" id="xran__fh__o__du_8h_html_af3e0ced3530652b3c92220c8783b55fa"><div class="ttname"><a href="xran__fh__o__du_8h.html#af3e0ced3530652b3c92220c8783b55fa">XRAN_MAX_ANT_ARRAY_ELM_NR</a></div><div class="ttdeci">#define XRAN_MAX_ANT_ARRAY_ELM_NR</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00118">xran_fh_o_du.h:118</a></div></div>
79 <div class="ttc" id="common_8c_html_ada292a2cdef3b215f7a2f0e84c8c027c"><div class="ttname"><a href="common_8c.html#ada292a2cdef3b215f7a2f0e84c8c027c">rx_ul_bfw_buffer_size</a></div><div class="ttdeci">int32_t rx_ul_bfw_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00097">common.c:97</a></div></div>
80 <div class="ttc" id="common_8c_html_a2fca7a2340a727f72d85407c5e153ed4"><div class="ttname"><a href="common_8c.html#a2fca7a2340a727f72d85407c5e153ed4">tx_ul_bfw_buffer_size</a></div><div class="ttdeci">int32_t tx_ul_bfw_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00087">common.c:87</a></div></div>
81 <div class="ttc" id="xran__fh__o__du_8h_html_a581b66d2fea333f0a2e9ca3f9589fd89"><div class="ttname"><a href="xran__fh__o__du_8h.html#a581b66d2fea333f0a2e9ca3f9589fd89">XRAN_SLOT_TYPE_LAST</a></div><div class="ttdeci">#define XRAN_SLOT_TYPE_LAST</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00143">xran_fh_o_du.h:143</a></div></div>
82 <div class="ttc" id="common_8c_html_a6ea36bb781b9c3045bedb81a5af4ec90"><div class="ttname"><a href="common_8c.html#a6ea36bb781b9c3045bedb81a5af4ec90">g_UlRate</a></div><div class="ttdeci">float g_UlRate[XRAN_MAX_SECTOR_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00165">common.c:165</a></div></div>
83 <div class="ttc" id="common_8c_html_abc08d2b5f2da30c4a1e5d258dfe8dfc7"><div class="ttname"><a href="common_8c.html#abc08d2b5f2da30c4a1e5d258dfe8dfc7">rx_log_buffer_size</a></div><div class="ttdeci">int32_t rx_log_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00063">common.c:63</a></div></div>
84 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa5d3a9ef2cafdd5f4c3b5c9dd9332406b"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5d3a9ef2cafdd5f4c3b5c9dd9332406b">PHY_BW_200_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00046">common.h:46</a></div></div>
85 <div class="ttc" id="common_8c_html_a8b2889ff178b629b4256ad3b87a18776"><div class="ttname"><a href="common_8c.html#a8b2889ff178b629b4256ad3b87a18776">p_rx_log_buffer</a></div><div class="ttdeci">int16_t * p_rx_log_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00062">common.c:62</a></div></div>
86 <div class="ttc" id="common_8c_html_a0c617a0804e2a4eda51b402b03922dc2"><div class="ttname"><a href="common_8c.html#a0c617a0804e2a4eda51b402b03922dc2">app_xran_get_slot_type</a></div><div class="ttdeci">int32_t app_xran_get_slot_type(int32_t nCellIdx, int32_t nSlotdx, int32_t nType)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00517">common.c:517</a></div></div>
87 <div class="ttc" id="gen__test_8m_html_a14e2cbac46a5d611bf112b1f4beb7021"><div class="ttname"><a href="gen__test_8m.html#a14e2cbac46a5d611bf112b1f4beb7021">fclose</a></div><div class="ttdeci">fclose(fileID)</div></div>
88 <div class="ttc" id="common_8c_html_ad54ed8a4092cdbdec6d5aacbd61d696c"><div class="ttname"><a href="common_8c.html#ad54ed8a4092cdbdec6d5aacbd61d696c">gNumULCtx</a></div><div class="ttdeci">uint32_t gNumULCtx</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00156">common.c:156</a></div></div>
89 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa0ffa9b60f3de26c5f0c091a92e2690ce"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa0ffa9b60f3de26c5f0c091a92e2690ce">PHY_BW_10_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00044">common.h:44</a></div></div>
90 <div class="ttc" id="common_8c_html_a76a0e379fc6f77567418d4e796e779db"><div class="ttname"><a href="common_8c.html#a76a0e379fc6f77567418d4e796e779db">gDLResetAdvance</a></div><div class="ttdeci">uint32_t gDLResetAdvance</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00157">common.c:157</a></div></div>
91 <div class="ttc" id="common_8c_html_a6aa805f25383d5191fbfe3ed4a4f3ce7"><div class="ttname"><a href="common_8c.html#a6aa805f25383d5191fbfe3ed4a4f3ce7">p_rx_ul_bfw_buffer</a></div><div class="ttdeci">int16_t * p_rx_ul_bfw_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00096">common.c:96</a></div></div>
92 <div class="ttc" id="common_8c_html_aa4df1a21858f512ae1335aa50df1ce87"><div class="ttname"><a href="common_8c.html#aa4df1a21858f512ae1335aa50df1ce87">gMaxSlotNum</a></div><div class="ttdeci">uint32_t gMaxSlotNum</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00154">common.c:154</a></div></div>
93 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa069b1b1bc047d5fa38058f1df13cab23"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa069b1b1bc047d5fa38058f1df13cab23">PHY_BW_60_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00045">common.h:45</a></div></div>
94 <div class="ttc" id="xran__fh__o__du_8h_html_a3640d50cafb5ccc15b73219309f60a3b"><div class="ttname"><a href="xran__fh__o__du_8h.html#a3640d50cafb5ccc15b73219309f60a3b">XRAN_SLOT_TYPE_DL</a></div><div class="ttdeci">#define XRAN_SLOT_TYPE_DL</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00139">xran_fh_o_du.h:139</a></div></div>
95 <div class="ttc" id="common_8c_html_a4a9173ba3c1f1bdf4b1ea9f8e531c561"><div class="ttname"><a href="common_8c.html#a4a9173ba3c1f1bdf4b1ea9f8e531c561">app_xran_get_scs</a></div><div class="ttdeci">uint32_t app_xran_get_scs(uint8_t nMu)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00182">common.c:182</a></div></div>
96 <div class="ttc" id="common_8c_html_a9aedc75ff69810f3a7ff424e562e77de"><div class="ttname"><a href="common_8c.html#a9aedc75ff69810f3a7ff424e562e77de">iq_playback_buffer_size_dl</a></div><div class="ttdeci">int iq_playback_buffer_size_dl</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00036">common.c:36</a></div></div>
97 <div class="ttc" id="common_8c_html_a791aa78c25664db4024f849dff35373a"><div class="ttname"><a href="common_8c.html#a791aa78c25664db4024f849dff35373a">gNumDLCtx</a></div><div class="ttdeci">uint32_t gNumDLCtx</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00155">common.c:155</a></div></div>
98 <div class="ttc" id="common_8c_html_a75c2080232a140585589adea6b446d61"><div class="ttname"><a href="common_8c.html#a75c2080232a140585589adea6b446d61">rx_dl_bfw_buffer_size</a></div><div class="ttdeci">int32_t rx_dl_bfw_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00092">common.c:92</a></div></div>
99 <div class="ttc" id="common_8h_html_a49c6511dd7755629147643fc2cfdf893"><div class="ttname"><a href="common_8h.html#a49c6511dd7755629147643fc2cfdf893">IQ_PLAYBACK_BUFFER_BYTES</a></div><div class="ttdeci">#define IQ_PLAYBACK_BUFFER_BYTES</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00058">common.h:58</a></div></div>
100 <div class="ttc" id="common_8c_html_a116f357e6a56ff1a8d34d2c31691b007"><div class="ttname"><a href="common_8c.html#a116f357e6a56ff1a8d34d2c31691b007">tx_prach_play_buffer_size</a></div><div class="ttdeci">int32_t tx_prach_play_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00055">common.c:55</a></div></div>
101 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa80603099c73c2d2a53541404c4daea10"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa80603099c73c2d2a53541404c4daea10">PHY_BW_70_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00045">common.h:45</a></div></div>
102 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afab80d02a26ce30cff1a0c353fa40ee648"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afab80d02a26ce30cff1a0c353fa40ee648">PHY_BW_50_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00045">common.h:45</a></div></div>
103 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afac06c5f55eeae8d0e44ae09b1b15a4153"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afac06c5f55eeae8d0e44ae09b1b15a4153">PHY_BW_80_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00046">common.h:46</a></div></div>
104 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afab0667ae8b27d5f90b2f876dc2fa60a8a"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afab0667ae8b27d5f90b2f876dc2fa60a8a">PHY_BW_100_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00046">common.h:46</a></div></div>
105 <div class="ttc" id="xran__fh__o__du_8h_html_a34dbe5e515cc78b4ce26fa287e6c1edc"><div class="ttname"><a href="xran__fh__o__du_8h.html#a34dbe5e515cc78b4ce26fa287e6c1edc">XRAN_MAX_SECTOR_NR</a></div><div class="ttdeci">#define XRAN_MAX_SECTOR_NR</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00110">xran_fh_o_du.h:110</a></div></div>
106 <div class="ttc" id="gen__test_8m_html_a8e50d67d4be6daacbf6522b5950a6a4d"><div class="ttname"><a href="gen__test_8m.html#a8e50d67d4be6daacbf6522b5950a6a4d">fwrite</a></div><div class="ttdeci">fwrite(fileID, antX_16, 'int16')</div></div>
107 <div class="ttc" id="common_8c_html_ac5b0db7e5c13fb0650285fa9f40a5038"><div class="ttname"><a href="common_8c.html#ac5b0db7e5c13fb0650285fa9f40a5038">nNumRbsPerSymF2</a></div><div class="ttdeci">uint16_t nNumRbsPerSymF2[2][4]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00110">common.c:110</a></div></div>
108 <div class="ttc" id="common_8c_html_a9f1fca36999b354b0c35757f7e307185"><div class="ttname"><a href="common_8c.html#a9f1fca36999b354b0c35757f7e307185">p_tx_buffer</a></div><div class="ttdeci">int16_t * p_tx_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00074">common.c:74</a></div></div>
109 <div class="ttc" id="gen__test_8m_html_a887ee7a54247d19e5e93955a7b9663ae"><div class="ttname"><a href="gen__test_8m.html#a887ee7a54247d19e5e93955a7b9663ae">numRBs</a></div><div class="ttdeci">numRBs</div><div class="ttdef"><b>Definition:</b> <a href="gen__test_8m_source.html#l00096">gen_test.m:96</a></div></div>
110 <div class="ttc" id="common_8c_html_a15e01f62daf328aef8184ea50c9955fa"><div class="ttname"><a href="common_8c.html#a15e01f62daf328aef8184ea50c9955fa">app_xran_clear_slot_type</a></div><div class="ttdeci">void app_xran_clear_slot_type(uint32_t nPhyInstanceId)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00386">common.c:386</a></div></div>
111 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa3b9413cb26be463cb08bc3e45f1ba0e4"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa3b9413cb26be463cb08bc3e45f1ba0e4">PHY_BW_15_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00044">common.h:44</a></div></div>
112 <div class="ttc" id="common_8c_html_ac33fae2fa6f1f85b151fe0d60c132931"><div class="ttname"><a href="common_8c.html#ac33fae2fa6f1f85b151fe0d60c132931">rx_buffer_size</a></div><div class="ttdeci">int32_t rx_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00078">common.c:78</a></div></div>
113 <div class="ttc" id="xran__fh__o__du_8h_html_acd3869dff9738650c847e456c6ab21ae"><div class="ttname"><a href="xran__fh__o__du_8h.html#acd3869dff9738650c847e456c6ab21ae">XRAN_NUM_OF_SLOT_IN_TDD_LOOP</a></div><div class="ttdeci">#define XRAN_NUM_OF_SLOT_IN_TDD_LOOP</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00151">xran_fh_o_du.h:151</a></div></div>
114 <div class="ttc" id="common_8c_html_a8f27f0a8b6843f5e32ecbce83d487262"><div class="ttname"><a href="common_8c.html#a8f27f0a8b6843f5e32ecbce83d487262">sys_load_file_to_buff</a></div><div class="ttdeci">int sys_load_file_to_buff(char *filename, char *bufname, unsigned char *pBuffer, unsigned int size, unsigned int buffers_num)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00584">common.c:584</a></div></div>
115 <div class="ttc" id="common_8c_html_aad7c467bc9da44318d2e8cf2f4472f17"><div class="ttname"><a href="common_8c.html#aad7c467bc9da44318d2e8cf2f4472f17">tx_dl_bfw_buffer_size</a></div><div class="ttdeci">int32_t tx_dl_bfw_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00082">common.c:82</a></div></div>
116 <div class="ttc" id="common_8c_html_ab022cdd736a497eb5cfa7d5dcab0634c"><div class="ttname"><a href="common_8c.html#ab022cdd736a497eb5cfa7d5dcab0634c">sys_save_buf_to_file_txt</a></div><div class="ttdeci">void sys_save_buf_to_file_txt(char *filename, char *bufname, unsigned char *pBuffer, unsigned int size, unsigned int buffers_num)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00635">common.c:635</a></div></div>
117 <div class="ttc" id="xran__fh__o__du_8h_html_a81efa76a214d1fd1b9b409bdea15c87c"><div class="ttname"><a href="xran__fh__o__du_8h.html#a81efa76a214d1fd1b9b409bdea15c87c">XRAN_SLOT_TYPE_INVALID</a></div><div class="ttdeci">#define XRAN_SLOT_TYPE_INVALID</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00138">xran_fh_o_du.h:138</a></div></div>
118 <div class="ttc" id="common_8c_html_a41b634e3c43560c0a29f60ddbf491d99"><div class="ttname"><a href="common_8c.html#a41b634e3c43560c0a29f60ddbf491d99">nCpSizeF2</a></div><div class="ttdeci">int16_t nCpSizeF2[2][4][2]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00147">common.c:147</a></div></div>
119 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa34ebc504f2878c8e57b28ecb2aa5a3d6"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa34ebc504f2878c8e57b28ecb2aa5a3d6">PHY_BW_25_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00044">common.h:44</a></div></div>
120 <div class="ttc" id="common_8c_html_a49b46cf2c43d8dade13dce8a3e3cdba9"><div class="ttname"><a href="common_8c.html#a49b46cf2c43d8dade13dce8a3e3cdba9">rx_ul_bfw_buffer_position</a></div><div class="ttdeci">int32_t rx_ul_bfw_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00098">common.c:98</a></div></div>
121 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa038fd5bff3233ab71354371731be0cca"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa038fd5bff3233ab71354371731be0cca">PHY_BW_40_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00045">common.h:45</a></div></div>
122 <div class="ttc" id="common_8c_html_a3ef30d69e5522784df0a9ead30cc9415"><div class="ttname"><a href="common_8c.html#a3ef30d69e5522784df0a9ead30cc9415">tx_srs_play_buffer_size</a></div><div class="ttdeci">int32_t tx_srs_play_buffer_size[XRAN_MAX_SECTOR_NR *XRAN_MAX_ANT_ARRAY_ELM_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00059">common.c:59</a></div></div>
123 <div class="ttc" id="common_8c_html_acd37223937d89e77a1ccbdc6e94b38cc"><div class="ttname"><a href="common_8c.html#acd37223937d89e77a1ccbdc6e94b38cc">sys_save_buf_to_file</a></div><div class="ttdeci">void sys_save_buf_to_file(char *filename, char *bufname, unsigned char *pBuffer, unsigned int size, unsigned int buffers_num)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00550">common.c:550</a></div></div>
124 <div class="ttc" id="common_8c_html_a2b515e829520e3af448a4d00d22de161"><div class="ttname"><a href="common_8c.html#a2b515e829520e3af448a4d00d22de161">app_xran_slot_limit</a></div><div class="ttdeci">int32_t app_xran_slot_limit(int32_t nSfIdx)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00373">common.c:373</a></div></div>
125 <div class="ttc" id="common_8c_html_abd62743e637f8bee2b0d3b1e2b4ecaac"><div class="ttname"><a href="common_8c.html#abd62743e637f8bee2b0d3b1e2b4ecaac">app_xran_get_num_rbs</a></div><div class="ttdeci">uint16_t app_xran_get_num_rbs(uint32_t nNumerology, uint32_t nBandwidth, uint32_t nAbsFrePointA)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00213">common.c:213</a></div></div>
126 <div class="ttc" id="common_8c_html_a95b1981d7d33eb50789dbc55d5d2755f"><div class="ttname"><a href="common_8c.html#a95b1981d7d33eb50789dbc55d5d2755f">p_tx_ul_bfw_buffer</a></div><div class="ttdeci">int16_t * p_tx_ul_bfw_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00086">common.c:86</a></div></div>
127 <div class="ttc" id="common_8c_html_a5977cef6d782ed0a89fee2038495b544"><div class="ttname"><a href="common_8c.html#a5977cef6d782ed0a89fee2038495b544">p_tx_play_buffer</a></div><div class="ttdeci">int16_t * p_tx_play_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00050">common.c:50</a></div></div>
128 <div class="ttc" id="xran__fh__o__du_8h_html_a1784f85d62401cba0ffb49c4d2467aaea852ad6bfdec7d14a64425c01c16d00c0"><div class="ttname"><a href="xran__fh__o__du_8h.html#a1784f85d62401cba0ffb49c4d2467aaea852ad6bfdec7d14a64425c01c16d00c0">XRAN_FDD</a></div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00186">xran_fh_o_du.h:186</a></div></div>
129 <div class="ttc" id="common_8c_html_a2d77acfd0f679f0a8a73ef14abc706a9"><div class="ttname"><a href="common_8c.html#a2d77acfd0f679f0a8a73ef14abc706a9">nTtiInterval</a></div><div class="ttdeci">uint16_t nTtiInterval[4]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00128">common.c:128</a></div></div>
130 <div class="ttc" id="common_8c_html_a0029e17870631ef2db8bb2e0cd0f9d3a"><div class="ttname"><a href="common_8c.html#a0029e17870631ef2db8bb2e0cd0f9d3a">p_rx_dl_bfw_buffer</a></div><div class="ttdeci">int16_t * p_rx_dl_bfw_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00091">common.c:91</a></div></div>
131 <div class="ttc" id="common_8c_html_a7abef2666634dec9ece3f2e8de21dfb0"><div class="ttname"><a href="common_8c.html#a7abef2666634dec9ece3f2e8de21dfb0">tx_srs_play_buffer_position</a></div><div class="ttdeci">int32_t tx_srs_play_buffer_position[XRAN_MAX_SECTOR_NR *XRAN_MAX_ANT_ARRAY_ELM_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00060">common.c:60</a></div></div>
132 <div class="ttc" id="common_8c_html_a6d7aac49f30b5d75a7a8436fbbc36cd7"><div class="ttname"><a href="common_8c.html#a6d7aac49f30b5d75a7a8436fbbc36cd7">app_xran_cal_nrarfcn</a></div><div class="ttdeci">uint32_t app_xran_cal_nrarfcn(uint32_t nCenterFreq)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00338">common.c:338</a></div></div>
133 <div class="ttc" id="common_8c_html_a54f6ae53fc4ffc697c0677f660afceb2"><div class="ttname"><a href="common_8c.html#a54f6ae53fc4ffc697c0677f660afceb2">p_srs_log_buffer</a></div><div class="ttdeci">int16_t * p_srs_log_buffer[XRAN_MAX_SECTOR_NR *XRAN_MAX_ANT_ARRAY_ELM_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00070">common.c:70</a></div></div>
134 <div class="ttc" id="xran__fh__o__du_8h_html_aa7db41b67e2cd3be904b7332d8df6657"><div class="ttname"><a href="xran__fh__o__du_8h.html#aa7db41b67e2cd3be904b7332d8df6657">XRAN_SYMBOL_TYPE_DL</a></div><div class="ttdeci">#define XRAN_SYMBOL_TYPE_DL</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00146">xran_fh_o_du.h:146</a></div></div>
135 <div class="ttc" id="common_8c_html_ae69cd45536b5b80a0eac08ee522d8aa2"><div class="ttname"><a href="common_8c.html#ae69cd45536b5b80a0eac08ee522d8aa2">num_eAxc</a></div><div class="ttdeci">uint8_t num_eAxc</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00047">common.c:47</a></div></div>
136 <div class="ttc" id="common_8c_html_ae41dd953f43c314e9c7688d18cf69e8b"><div class="ttname"><a href="common_8c.html#ae41dd953f43c314e9c7688d18cf69e8b">app_xran_set_slot_type</a></div><div class="ttdeci">int32_t app_xran_set_slot_type(uint32_t nPhyInstanceId, uint32_t nFrameDuplexType, uint32_t nTddPeriod, struct xran_slot_config *psSlotConfig)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00393">common.c:393</a></div></div>
137 <div class="ttc" id="xran__fh__o__du_8h_html_ad997c19049d5e80611e4360b1ed79b80"><div class="ttname"><a href="xran__fh__o__du_8h.html#ad997c19049d5e80611e4360b1ed79b80">XRAN_SLOT_TYPE_FDD</a></div><div class="ttdeci">#define XRAN_SLOT_TYPE_FDD</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00142">xran_fh_o_du.h:142</a></div></div>
138 <div class="ttc" id="common_8c_html_afd05de12c89b35af48a21e0d9620c2a1"><div class="ttname"><a href="common_8c.html#afd05de12c89b35af48a21e0d9620c2a1">iq_playback_buffer_size_ul</a></div><div class="ttdeci">int iq_playback_buffer_size_ul</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00037">common.c:37</a></div></div>
139 <div class="ttc" id="common_8c_html_a2d2caffb405333647be9e6f3e2590b5e"><div class="ttname"><a href="common_8c.html#a2d2caffb405333647be9e6f3e2590b5e">prach_log_buffer_size</a></div><div class="ttdeci">int32_t prach_log_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00067">common.c:67</a></div></div>
140 <div class="ttc" id="xran__up__api_8h_html"><div class="ttname"><a href="xran__up__api_8h.html">xran_up_api.h</a></div><div class="ttdoc">This file provides the definitions for User Plane Messages APIs. </div></div>
141 <div class="ttc" id="common_8c_html_ab6a2b393cac2724a10352f4fc5a54a3c"><div class="ttname"><a href="common_8c.html#ab6a2b393cac2724a10352f4fc5a54a3c">g_DlRate</a></div><div class="ttdeci">float g_DlRate[XRAN_MAX_SECTOR_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00166">common.c:166</a></div></div>
142 <div class="ttc" id="common_8c_html_a8734b8bf5121975264c578e7a875adf6"><div class="ttname"><a href="common_8c.html#a8734b8bf5121975264c578e7a875adf6">nSubCarrierSpacing</a></div><div class="ttdeci">uint16_t nSubCarrierSpacing[5]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00118">common.c:118</a></div></div>
143 <div class="ttc" id="common_8c_html_ad39b126a8b9123072b41967be14235ba"><div class="ttname"><a href="common_8c.html#ad39b126a8b9123072b41967be14235ba">nCpSizeF1</a></div><div class="ttdeci">uint16_t nCpSizeF1[3][13][2]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00138">common.c:138</a></div></div>
144 <div class="ttc" id="common_8c_html_ab0ca5bc3c9f6c0b230c9ea169747a438"><div class="ttname"><a href="common_8c.html#ab0ca5bc3c9f6c0b230c9ea169747a438">tx_play_buffer_position</a></div><div class="ttdeci">int32_t tx_play_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00052">common.c:52</a></div></div>
145 <div class="ttc" id="common_8c_html_ad23ecec0666a9c37160556488199ad5d"><div class="ttname"><a href="common_8c.html#ad23ecec0666a9c37160556488199ad5d">tx_buffer_size</a></div><div class="ttdeci">int32_t tx_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00075">common.c:75</a></div></div>
146 <div class="ttc" id="xran__fh__o__du_8h_html_a87d92ec177ed9c388685a91051f66205"><div class="ttname"><a href="xran__fh__o__du_8h.html#a87d92ec177ed9c388685a91051f66205">XRAN_NUM_OF_SYMBOL_PER_SLOT</a></div><div class="ttdeci">#define XRAN_NUM_OF_SYMBOL_PER_SLOT</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00122">xran_fh_o_du.h:122</a></div></div>
147 <div class="ttc" id="common_8c_html_a28929b3487c517117e716b7d45865c88"><div class="ttname"><a href="common_8c.html#a28929b3487c517117e716b7d45865c88">tx_prach_play_buffer_position</a></div><div class="ttdeci">int32_t tx_prach_play_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00056">common.c:56</a></div></div>
148 <div class="ttc" id="common_8c_html_a77bd4ecb90ef07ddc1420242672b1587"><div class="ttname"><a href="common_8c.html#a77bd4ecb90ef07ddc1420242672b1587">p_tx_dl_bfw_buffer</a></div><div class="ttdeci">int16_t * p_tx_dl_bfw_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00081">common.c:81</a></div></div>
149 <div class="ttc" id="common_8c_html_ae3e0286957f26fa1804745d15f82724d"><div class="ttname"><a href="common_8c.html#ae3e0286957f26fa1804745d15f82724d">numCCPorts</a></div><div class="ttdeci">uint8_t numCCPorts</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00044">common.c:44</a></div></div>
150 <div class="ttc" id="common_8c_html_adeaca85bff8e90492381b51b5dd5b55c"><div class="ttname"><a href="common_8c.html#adeaca85bff8e90492381b51b5dd5b55c">nNumRbsPerSymF1</a></div><div class="ttdeci">uint16_t nNumRbsPerSymF1[3][13]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00101">common.c:101</a></div></div>
151 <div class="ttc" id="xran__pkt_8h_html"><div class="ttname"><a href="xran__pkt_8h.html">xran_pkt.h</a></div><div class="ttdoc">Definitions and support functions to process XRAN packet. </div></div>
152 <div class="ttc" id="common_8h_html_a3f6c4cb016839c3f57ab648b84dc4d8a"><div class="ttname"><a href="common_8h.html#a3f6c4cb016839c3f57ab648b84dc4d8a">app_state</a></div><div class="ttdeci">app_state</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00036">common.h:36</a></div></div>
153 <div class="ttc" id="xran__fh__o__du_8h_html"><div class="ttname"><a href="xran__fh__o__du_8h.html">xran_fh_o_du.h</a></div><div class="ttdoc">This file provides public interface to xRAN Front Haul layer implementation as defined in the ORAN-WG...</div></div>
154 <div class="ttc" id="common_8c_html_a54295c1c12a237fac044d84d8c0ff0d9"><div class="ttname"><a href="common_8c.html#a54295c1c12a237fac044d84d8c0ff0d9">srs_log_buffer_position</a></div><div class="ttdeci">int32_t srs_log_buffer_position[XRAN_MAX_SECTOR_NR *XRAN_MAX_ANT_ARRAY_ELM_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00072">common.c:72</a></div></div>
155 <div class="ttc" id="xran__mlog__lnx_8h_html"><div class="ttname"><a href="xran__mlog__lnx_8h.html">xran_mlog_lnx.h</a></div></div>
156 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa827e54f2b9563a648648617dabae6b86"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa827e54f2b9563a648648617dabae6b86">PHY_BW_20_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00044">common.h:44</a></div></div>
157 <div class="ttc" id="xran__pkt__up_8h_html"><div class="ttname"><a href="xran__pkt__up_8h.html">xran_pkt_up.h</a></div><div class="ttdoc">Definitions and support functions to process XRAN packet. </div></div>
158 <div class="ttc" id="common_8c_html_a325598fd5fa9c647766e2b1fe43f596f"><div class="ttname"><a href="common_8c.html#a325598fd5fa9c647766e2b1fe43f596f">iq_srs_buffer_size_ul</a></div><div class="ttdeci">int iq_srs_buffer_size_ul</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00042">common.c:42</a></div></div>
159 <div class="ttc" id="xran__fh__o__du_8h_html_a37ddab95bdd53de1ee17a3607a183eae"><div class="ttname"><a href="xran__fh__o__du_8h.html#a37ddab95bdd53de1ee17a3607a183eae">XRAN_SLOT_TYPE_SP</a></div><div class="ttdeci">#define XRAN_SLOT_TYPE_SP</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00141">xran_fh_o_du.h:141</a></div></div>
160 <div class="ttc" id="common_8c_html_a69ceaec7b612ecba9628a4a078ff319a"><div class="ttname"><a href="common_8c.html#a69ceaec7b612ecba9628a4a078ff319a">rx_dl_bfw_buffer_position</a></div><div class="ttdeci">int32_t rx_dl_bfw_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00093">common.c:93</a></div></div>
161 <div class="ttc" id="common_8c_html_a248b83fea05a7a50c94dcfd9b12fa6e1"><div class="ttname"><a href="common_8c.html#a248b83fea05a7a50c94dcfd9b12fa6e1">p_tx_prach_play_buffer</a></div><div class="ttdeci">int16_t * p_tx_prach_play_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00054">common.c:54</a></div></div>
162 <div class="ttc" id="common_8h_html"><div class="ttname"><a href="common_8h.html">common.h</a></div></div>
163 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa5662647cfc4da498383a327296832f1e"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5662647cfc4da498383a327296832f1e">PHY_BW_90_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00046">common.h:46</a></div></div>
164 <div class="ttc" id="common_8c_html_aca5989a141a0f1335592b2ad78a84349"><div class="ttname"><a href="common_8c.html#aca5989a141a0f1335592b2ad78a84349">gULProcAdvance</a></div><div class="ttdeci">uint32_t gULProcAdvance</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00159">common.c:159</a></div></div>
165 <div class="ttc" id="common_8h_html_ace60ebb76d1266cd70c6b0a2cdb975afa5e3415eba2853d7a163296722d39ce0a"><div class="ttname"><a href="common_8h.html#ace60ebb76d1266cd70c6b0a2cdb975afa5e3415eba2853d7a163296722d39ce0a">PHY_BW_30_0_MHZ</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00045">common.h:45</a></div></div>
166 <div class="ttc" id="common_8c_html_adb25475aaf7dcca7350334f201c161c4"><div class="ttname"><a href="common_8c.html#adb25475aaf7dcca7350334f201c161c4">rx_log_buffer_position</a></div><div class="ttdeci">int32_t rx_log_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00064">common.c:64</a></div></div>
167 <div class="ttc" id="structxran__slot__config_html"><div class="ttname"><a href="structxran__slot__config.html">xran_slot_config</a></div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00453">xran_fh_o_du.h:453</a></div></div>
168 <div class="ttc" id="common_8c_html_a187e00334790a43d509b23b49bf9a741"><div class="ttname"><a href="common_8c.html#a187e00334790a43d509b23b49bf9a741">gDLProcAdvance</a></div><div class="ttdeci">uint32_t gDLProcAdvance</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00158">common.c:158</a></div></div>
169 <div class="ttc" id="common_8c_html_ad1ab6e8c4efe2805b76180b34ce4c019"><div class="ttname"><a href="common_8c.html#ad1ab6e8c4efe2805b76180b34ce4c019">iq_bfw_buffer_size_dl</a></div><div class="ttdeci">int iq_bfw_buffer_size_dl</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00039">common.c:39</a></div></div>
170 <div class="ttc" id="common_8c_html_a7443b72e990584de0b5b2a9306ed820a"><div class="ttname"><a href="common_8c.html#a7443b72e990584de0b5b2a9306ed820a">app_xran_get_tti_interval</a></div><div class="ttdeci">uint32_t app_xran_get_tti_interval(uint8_t nMu)</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00168">common.c:168</a></div></div>
171 <div class="ttc" id="common_8c_html_adc7a94af3a9c52fdb09e8733264eee4a"><div class="ttname"><a href="common_8c.html#adc7a94af3a9c52fdb09e8733264eee4a">tx_ul_bfw_buffer_position</a></div><div class="ttdeci">int32_t tx_ul_bfw_buffer_position[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00088">common.c:88</a></div></div>
172 <div class="ttc" id="common_8c_html_ac6ec5442d9ec39fac4367ad38b9d3d6a"><div class="ttname"><a href="common_8c.html#ac6ec5442d9ec39fac4367ad38b9d3d6a">tx_play_buffer_size</a></div><div class="ttdeci">int32_t tx_play_buffer_size[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00051">common.c:51</a></div></div>
173 <div class="ttc" id="common_8c_html_a9903f17a482557ec30123a63d9f52c7f"><div class="ttname"><a href="common_8c.html#a9903f17a482557ec30123a63d9f52c7f">srs_log_buffer_size</a></div><div class="ttdeci">int32_t srs_log_buffer_size[XRAN_MAX_SECTOR_NR *XRAN_MAX_ANT_ARRAY_ELM_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00071">common.c:71</a></div></div>
174 <div class="ttc" id="xran__cp__api_8h_html"><div class="ttname"><a href="xran__cp__api_8h.html">xran_cp_api.h</a></div><div class="ttdoc">This file provides the definitions for Control Plane Messages APIs. </div></div>
175 <div class="ttc" id="common_8c_html_a205302b4106968d8d580e286ce56ec8e"><div class="ttname"><a href="common_8c.html#a205302b4106968d8d580e286ce56ec8e">p_prach_log_buffer</a></div><div class="ttdeci">int16_t * p_prach_log_buffer[MAX_ANT_CARRIER_SUPPORTED]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00066">common.c:66</a></div></div>
176 <div class="ttc" id="common_8c_html_aaff80269195e14fa4426e20f250f7f7f"><div class="ttname"><a href="common_8c.html#aaff80269195e14fa4426e20f250f7f7f">p_tx_srs_play_buffer</a></div><div class="ttdeci">int16_t * p_tx_srs_play_buffer[XRAN_MAX_SECTOR_NR *XRAN_MAX_ANT_ARRAY_ELM_NR]</div><div class="ttdef"><b>Definition:</b> <a href="common_8c_source.html#l00058">common.c:58</a></div></div>
177 <div class="ttc" id="xran__fh__o__du_8h_html_a3167443dbf786f9b87a133119a8f69e8"><div class="ttname"><a href="xran__fh__o__du_8h.html#a3167443dbf786f9b87a133119a8f69e8">XRAN_SLOT_TYPE_UL</a></div><div class="ttdeci">#define XRAN_SLOT_TYPE_UL</div><div class="ttdef"><b>Definition:</b> <a href="xran__fh__o__du_8h_source.html#l00140">xran_fh_o_du.h:140</a></div></div>
178 <div class="ttc" id="common_8c_html_a9dc062894f50c14d43977487568e69bc"><div class="ttname"><a href="common_8c.html#a9dc062894f50c14d43977487568e69bc">state</a></div><div class="ttdeci">enum app_state state</div><div class="ttdef"><b>Definition:</b> <a href="sample-app_8c_source.html#l00062">sample-app.c:62</a></div></div>
179 </div><!-- fragment --></div><!-- contents -->
180 <!-- start footer part -->
181 <hr class="footer"/><address class="footer"><small>
182 Generated by &#160;<a href="http://www.doxygen.org/index.html">
183 <img class="footer" src="doxygen.png" alt="doxygen"/>
184 </a> 1.8.13
185 </small></address>
186 </body>
187 </html>