mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 17:10:03 +02:00
329 lines
45 KiB
HTML
329 lines
45 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.5"/>
|
|
<title>My Project: mainReceiver.cpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">My Project
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.5 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Macros</a></div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">mainReceiver.cpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="mainReceiver_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "sls_receiver_defs.h"</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="slsReceiverUsers_8h.html">slsReceiverUsers.h</a>"</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <iostream></span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <string.h></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <signal.h></span> <span class="comment">//SIGINT</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <cstdlib></span> <span class="comment">//system</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">//#include "utilities.h"</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">//#include "logger.h"</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <sys/types.h></span> <span class="comment">//wait</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <sys/wait.h></span> <span class="comment">//wait</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <string></span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <unistd.h></span> <span class="comment">//usleep</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <errno.h></span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <syscall.h></span> <span class="comment">//tid</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">using namespace </span>std;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#aeac6a4b86729a7e07100fb58600d6481"> 38</a></span> <span class="preprocessor">#define PRINT_IN_COLOR(c,f, ...) printf ("\033[%dm" f RESET, 30 + c+1, ##__VA_ARGS__)</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#a0d26a166bb416ff34512de6fe9e098bd"> 42</a></span> <span class="keywordtype">bool</span> <a class="code" href="mainReceiver_8cpp.html#a0d26a166bb416ff34512de6fe9e098bd">keeprunning</a>;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#ac72dad9b593583bd4bf508a979c00f70"> 48</a></span> <span class="keywordtype">void</span> <a class="code" href="mainReceiver_8cpp.html#ac72dad9b593583bd4bf508a979c00f70">sigInterruptHandler</a>(<span class="keywordtype">int</span> p){</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="mainReceiver_8cpp.html#a0d26a166bb416ff34512de6fe9e098bd">keeprunning</a> = <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> }</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#a0d20b69b0ad703df78459e1033d5c1d4"> 55</a></span> <span class="keywordtype">void</span> <a class="code" href="mainReceiver_8cpp.html#a0d20b69b0ad703df78459e1033d5c1d4">printHelp</a>() {</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  cprintf(RESET, <span class="stringliteral">"Usage:\n"</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="stringliteral">"./slsMultiReceiver(detReceiver) [start_tcp_port] [num_receivers] [1 for call back, 0 for none]\n\n"</span>);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  exit(EXIT_FAILURE);</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#a1ec49915ff49957985ebfe6ccc5cd1b3"> 72</a></span> <span class="keywordtype">int</span> <a class="code" href="mainReceiver_8cpp.html#a1ec49915ff49957985ebfe6ccc5cd1b3">StartAcq</a>(<span class="keywordtype">char</span>* filepath, <span class="keywordtype">char</span>* filename, uint64_t fileindex, uint32_t datasize, <span class="keywordtype">void</span>*p){</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  cprintf(BLUE, <span class="stringliteral">"#### StartAcq: filepath:%s filename:%s fileindex:%llu datasize:%u ####\n"</span>,</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  filepath, filename, (<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)fileindex, datasize);</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  cprintf(BLUE, <span class="stringliteral">"--StartAcq: returning 0\n"</span>);</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> 0;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> }</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#a013a16dd72eca4216a42196c4d9c0335"> 85</a></span> <span class="keywordtype">void</span> <a class="code" href="mainReceiver_8cpp.html#a013a16dd72eca4216a42196c4d9c0335">AcquisitionFinished</a>(uint64_t frames, <span class="keywordtype">void</span>*p){</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  cprintf(BLUE, <span class="stringliteral">"#### AcquisitionFinished: frames:%llu ####\n"</span>,(<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)frames);</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> }</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#a009e34ab0d3ebfcf32f4421a2b462311"> 98</a></span> <span class="keywordtype">void</span> <a class="code" href="mainReceiver_8cpp.html#a009e34ab0d3ebfcf32f4421a2b462311">GetData</a>(<span class="keywordtype">char</span>* metadata, <span class="keywordtype">char</span>* datapointer, uint32_t datasize, <span class="keywordtype">void</span>* p){</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  slsReceiverDefs::sls_receiver_header* header = (slsReceiverDefs::sls_receiver_header*)metadata;</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  slsReceiverDefs::sls_detector_header detectorHeader = header->detHeader;</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="mainReceiver_8cpp.html#aeac6a4b86729a7e07100fb58600d6481">PRINT_IN_COLOR</a> (detectorHeader.modId?detectorHeader.modId:detectorHeader.row,</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="stringliteral">"#### %d GetData: ####\n"</span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="stringliteral">"frameNumber: %llu\t\texpLength: %u\t\tpacketNumber: %u\t\tbunchId: %llu"</span></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="stringliteral">"\t\ttimestamp: %llu\t\tmodId: %u\t\t"</span></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="stringliteral">"row: %u\t\tcolumn: %u\t\treserved: %u\t\tdebug: %u"</span></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="stringliteral">"\t\troundRNumber: %u\t\tdetType: %u\t\tversion: %u"</span></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">//"\t\tpacketsMask:%s"</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="stringliteral">"\t\tfirstbytedata: 0x%x\t\tdatsize: %u\n\n"</span>,</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  detectorHeader.row, (<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)detectorHeader.frameNumber,</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  detectorHeader.expLength, detectorHeader.packetNumber, (<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)detectorHeader.bunchId,</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  (<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)detectorHeader.timestamp, detectorHeader.modId,</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  detectorHeader.row, detectorHeader.column, detectorHeader.reserved,</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  detectorHeader.debug, detectorHeader.roundRNumber,</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  detectorHeader.detType, detectorHeader.version,</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="comment">//header->packetsMask.to_string().c_str(),</span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  ((uint8_t)(*((uint8_t*)(datapointer)))), datasize);</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#a8e11c5abfd4b3684eef27775aac7071e"> 132</a></span> <span class="keywordtype">void</span> <a class="code" href="mainReceiver_8cpp.html#a009e34ab0d3ebfcf32f4421a2b462311">GetData</a>(<span class="keywordtype">char</span>* metadata, <span class="keywordtype">char</span>* datapointer, uint32_t &revDatasize, <span class="keywordtype">void</span>* p){</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  slsReceiverDefs::sls_receiver_header* header = (slsReceiverDefs::sls_receiver_header*)metadata;</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  slsReceiverDefs::sls_detector_header detectorHeader = header->detHeader;</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="mainReceiver_8cpp.html#aeac6a4b86729a7e07100fb58600d6481">PRINT_IN_COLOR</a> (detectorHeader.modId?detectorHeader.modId:detectorHeader.row,</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="stringliteral">"#### %d GetData: ####\n"</span></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="stringliteral">"frameNumber: %llu\t\texpLength: %u\t\tpacketNumber: %u\t\tbunchId: %llu"</span></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="stringliteral">"\t\ttimestamp: %llu\t\tmodId: %u\t\t"</span></div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="stringliteral">"row: %u\t\tcolumn: %u\t\treserved: %u\t\tdebug: %u"</span></div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="stringliteral">"\t\troundRNumber: %u\t\tdetType: %u\t\tversion: %u"</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">//"\t\tpacketsMask:%s"</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="stringliteral">"\t\tfirstbytedata: 0x%x\t\tdatsize: %u\n\n"</span>,</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  detectorHeader.row, (<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)detectorHeader.frameNumber,</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  detectorHeader.expLength, detectorHeader.packetNumber, (<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)detectorHeader.bunchId,</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  (<span class="keywordtype">long</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)detectorHeader.timestamp, detectorHeader.modId,</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  detectorHeader.row, detectorHeader.column, detectorHeader.reserved,</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  detectorHeader.debug, detectorHeader.roundRNumber,</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  detectorHeader.detType, detectorHeader.version,</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="comment">//header->packetsMask.to_string().c_str(),</span></div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  ((uint8_t)(*((uint8_t*)(datapointer)))), revDatasize);</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="comment">// if data is modified, eg ROI and size is reduced</span></div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  revDatasize = 26000;</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="mainReceiver_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97"> 167</a></span> <span class="keywordtype">int</span> <a class="code" href="mainClient_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[]) {</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordtype">int</span> numReceivers = 1;</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">int</span> startTCPPort = 1954;</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordtype">int</span> withCallback = 0;</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="mainReceiver_8cpp.html#a0d26a166bb416ff34512de6fe9e098bd">keeprunning</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">if</span> ( (argc != 4) || (!sscanf(argv[1],<span class="stringliteral">"%d"</span>, &startTCPPort)) || (!sscanf(argv[2],<span class="stringliteral">"%d"</span>, &numReceivers)) || (!sscanf(argv[3],<span class="stringliteral">"%d"</span>, &withCallback)) )</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="mainReceiver_8cpp.html#a0d20b69b0ad703df78459e1033d5c1d4">printHelp</a>();</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  cprintf(BLUE,<span class="stringliteral">"Parent Process Created [ Tid: %ld ]\n"</span>, (<span class="keywordtype">long</span>)syscall(SYS_gettid));</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  cprintf(RESET, <span class="stringliteral">"Number of Receivers: %d\n"</span>, numReceivers);</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  cprintf(RESET, <span class="stringliteral">"Start TCP Port: %d\n"</span>, startTCPPort);</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  cprintf(RESET, <span class="stringliteral">"Callback Enable: %d\n"</span>, withCallback);</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">struct </span>sigaction sa;</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  sa.sa_flags=0; <span class="comment">// no flags</span></div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  sa.sa_handler=<a class="code" href="mainReceiver_8cpp.html#ac72dad9b593583bd4bf508a979c00f70">sigInterruptHandler</a>; <span class="comment">// handler function</span></div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  sigemptyset(&sa.sa_mask); <span class="comment">// dont block additional signals during invocation of handler</span></div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">if</span> (sigaction(SIGINT, &sa, NULL) == -1) {</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  cprintf(RED, <span class="stringliteral">"Could not set handler function for SIGINT\n"</span>);</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  }</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">struct </span>sigaction asa;</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  asa.sa_flags=0; <span class="comment">// no flags</span></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  asa.sa_handler=SIG_IGN; <span class="comment">// handler function</span></div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  sigemptyset(&asa.sa_mask); <span class="comment">// dont block additional signals during invocation of handler</span></div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">if</span> (sigaction(SIGPIPE, &asa, NULL) == -1) {</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  cprintf(RED, <span class="stringliteral">"Could not set handler function for SIGPIPE\n"</span>);</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  }</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < numReceivers; ++i) {</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  pid_t pid = fork();</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">if</span> (pid < 0) {</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  cprintf(RED,<span class="stringliteral">"fork() failed. Killing all the receiver objects\n"</span>);</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keyword">raise</span>(SIGINT);</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  }</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pid == 0) {</div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  cprintf(BLUE,<span class="stringliteral">"Child process %d [ Tid: %ld ]\n"</span>, i, (<span class="keywordtype">long</span>)syscall(SYS_gettid));</div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordtype">char</span> temp[10];</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  sprintf(temp,<span class="stringliteral">"%d"</span>,startTCPPort + i);</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordtype">char</span>* args[] = {(<span class="keywordtype">char</span>*)<span class="stringliteral">"ignored"</span>, (<span class="keywordtype">char</span>*)<span class="stringliteral">"--rx_tcpport"</span>, temp};</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordtype">int</span> ret = slsReceiverDefs::OK;</div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="classslsReceiverUsers.html">slsReceiverUsers</a> *receiver = <span class="keyword">new</span> <a class="code" href="classslsReceiverUsers.html">slsReceiverUsers</a>(3, args, ret);</div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span>(ret==slsReceiverDefs::FAIL){</div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">delete</span> receiver;</div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  exit(EXIT_FAILURE);</div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  }</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">if</span> (withCallback) {</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  cprintf(BLUE, <span class="stringliteral">"Registering StartAcq()\n"</span>);</div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  receiver-><a class="code" href="classslsReceiverUsers.html#a5ffca5973503b62cefb4a5e3b8f89dfb">registerCallBackStartAcquisition</a>(<a class="code" href="mainReceiver_8cpp.html#a1ec49915ff49957985ebfe6ccc5cd1b3">StartAcq</a>, NULL);</div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  cprintf(BLUE, <span class="stringliteral">"Registering AcquisitionFinished()\n"</span>);</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  receiver-><a class="code" href="classslsReceiverUsers.html#adacc5da9dd812d62936ac456a73c0738">registerCallBackAcquisitionFinished</a>(<a class="code" href="mainReceiver_8cpp.html#a013a16dd72eca4216a42196c4d9c0335">AcquisitionFinished</a>, NULL);</div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="comment">/* - Call back for raw data */</span></div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  cprintf(BLUE, <span class="stringliteral">"Registering GetData() \n"</span>);</div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordflow">if</span> (withCallback == 1) receiver-><a class="code" href="classslsReceiverUsers.html#ad7126b940f6d8f11295ed6eed3e0bad4">registerCallBackRawDataReady</a>(<a class="code" href="mainReceiver_8cpp.html#a009e34ab0d3ebfcf32f4421a2b462311">GetData</a>,NULL);</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (withCallback == 2) receiver-><a class="code" href="classslsReceiverUsers.html#ae10c5eea94bf3bc63ae1acc210582069">registerCallBackRawDataModifyReady</a>(<a class="code" href="mainReceiver_8cpp.html#a009e34ab0d3ebfcf32f4421a2b462311">GetData</a>,NULL);</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> </div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">if</span> (receiver-><a class="code" href="classslsReceiverUsers.html#aef40b4987367b8a0116bcb66534dd7b7">start</a>() == slsReceiverDefs::FAIL){</div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keyword">delete</span> receiver;</div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  cprintf(BLUE,<span class="stringliteral">"Exiting Child Process [ Tid: %ld ]\n"</span>, (<span class="keywordtype">long</span>)syscall(SYS_gettid));</div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  exit(EXIT_FAILURE);</div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  }</div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">while</span>(<a class="code" href="mainReceiver_8cpp.html#a0d26a166bb416ff34512de6fe9e098bd">keeprunning</a>)</div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  pause();</div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">delete</span> receiver;</div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  cprintf(BLUE,<span class="stringliteral">"Exiting Child Process [ Tid: %ld ]\n"</span>, (<span class="keywordtype">long</span>)syscall(SYS_gettid));</div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  exit(EXIT_SUCCESS);</div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  }</div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  }</div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  sa.sa_flags=0; <span class="comment">// no flags</span></div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  sa.sa_handler=SIG_IGN; <span class="comment">// handler function</span></div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  sigemptyset(&sa.sa_mask); <span class="comment">// dont block additional signals during invocation of handler</span></div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">if</span> (sigaction(SIGINT, &sa, NULL) == -1) {</div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  cprintf(RED, <span class="stringliteral">"Could not set handler function for SIGINT\n"</span>);</div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  }</div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> </div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  cout << <span class="stringliteral">"Ready ... "</span> << endl;</div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  cprintf(RESET, <span class="stringliteral">"\n[ Press \'Ctrl+c\' to exit ]\n"</span>);</div>
|
|
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div>
|
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordflow">for</span>(;;) {</div>
|
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  pid_t childPid = waitpid (-1, NULL, 0);</div>
|
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div>
|
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="comment">// no child closed</span></div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">if</span> (childPid == -1) {</div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keywordflow">if</span> (errno == ECHILD) {</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  cprintf(GREEN,<span class="stringliteral">"All Child Processes have been closed\n"</span>);</div>
|
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  cprintf(RED, <span class="stringliteral">"Unexpected error from waitpid(): (%s)\n"</span>,strerror(errno));</div>
|
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  }</div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  }</div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="comment">//child closed</span></div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  cprintf(BLUE,<span class="stringliteral">"Exiting Child Process [ Tid: %ld ]\n"</span>, (<span class="keywordtype">long</span> <span class="keywordtype">int</span>) childPid);</div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  }</div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  cout << <span class="stringliteral">"Goodbye!"</span> << endl;</div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">return</span> 0;</div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> }</div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div>
|
|
<div class="ttc" id="classslsReceiverUsers_html_ad7126b940f6d8f11295ed6eed3e0bad4"><div class="ttname"><a href="classslsReceiverUsers.html#ad7126b940f6d8f11295ed6eed3e0bad4">slsReceiverUsers::registerCallBackRawDataReady</a></div><div class="ttdeci">void registerCallBackRawDataReady(void(*func)(char *header, char *datapointer, uint32_t datasize, void *), void *arg)</div><div class="ttdoc">register callback to be called when data are available (to process and/or save the data)...</div></div>
|
|
<div class="ttc" id="mainReceiver_8cpp_html_a0d26a166bb416ff34512de6fe9e098bd"><div class="ttname"><a href="mainReceiver_8cpp.html#a0d26a166bb416ff34512de6fe9e098bd">keeprunning</a></div><div class="ttdeci">bool keeprunning</div><div class="ttdef"><b>Definition:</b> <a href="mainReceiver_8cpp_source.html#l00042">mainReceiver.cpp:42</a></div></div>
|
|
<div class="ttc" id="mainReceiver_8cpp_html_a1ec49915ff49957985ebfe6ccc5cd1b3"><div class="ttname"><a href="mainReceiver_8cpp.html#a1ec49915ff49957985ebfe6ccc5cd1b3">StartAcq</a></div><div class="ttdeci">int StartAcq(char *filepath, char *filename, uint64_t fileindex, uint32_t datasize, void *p)</div><div class="ttdef"><b>Definition:</b> <a href="mainReceiver_8cpp_source.html#l00072">mainReceiver.cpp:72</a></div></div>
|
|
<div class="ttc" id="mainClient_8cpp_html_a3c04138a5bfe5d72780bb7e82a18e627"><div class="ttname"><a href="mainClient_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a></div><div class="ttdeci">int main(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> <a href="mainClient_8cpp_source.html#l00049">mainClient.cpp:49</a></div></div>
|
|
<div class="ttc" id="classslsReceiverUsers_html_adacc5da9dd812d62936ac456a73c0738"><div class="ttname"><a href="classslsReceiverUsers.html#adacc5da9dd812d62936ac456a73c0738">slsReceiverUsers::registerCallBackAcquisitionFinished</a></div><div class="ttdeci">void registerCallBackAcquisitionFinished(void(*func)(uint64_t nf, void *), void *arg)</div><div class="ttdoc">register callback for end of acquisition </div></div>
|
|
<div class="ttc" id="mainReceiver_8cpp_html_a013a16dd72eca4216a42196c4d9c0335"><div class="ttname"><a href="mainReceiver_8cpp.html#a013a16dd72eca4216a42196c4d9c0335">AcquisitionFinished</a></div><div class="ttdeci">void AcquisitionFinished(uint64_t frames, void *p)</div><div class="ttdef"><b>Definition:</b> <a href="mainReceiver_8cpp_source.html#l00085">mainReceiver.cpp:85</a></div></div>
|
|
<div class="ttc" id="mainReceiver_8cpp_html_a0d20b69b0ad703df78459e1033d5c1d4"><div class="ttname"><a href="mainReceiver_8cpp.html#a0d20b69b0ad703df78459e1033d5c1d4">printHelp</a></div><div class="ttdeci">void printHelp()</div><div class="ttdef"><b>Definition:</b> <a href="mainReceiver_8cpp_source.html#l00055">mainReceiver.cpp:55</a></div></div>
|
|
<div class="ttc" id="slsReceiverUsers_8h_html"><div class="ttname"><a href="slsReceiverUsers_8h.html">slsReceiverUsers.h</a></div></div>
|
|
<div class="ttc" id="classslsReceiverUsers_html"><div class="ttname"><a href="classslsReceiverUsers.html">slsReceiverUsers</a></div><div class="ttdoc">Class for implementing the SLS data receiver in the users application. Callbacks can be defined for p...</div><div class="ttdef"><b>Definition:</b> <a href="slsReceiverUsers_8h_source.html#l00015">slsReceiverUsers.h:15</a></div></div>
|
|
<div class="ttc" id="classslsReceiverUsers_html_aef40b4987367b8a0116bcb66534dd7b7"><div class="ttname"><a href="classslsReceiverUsers.html#aef40b4987367b8a0116bcb66534dd7b7">slsReceiverUsers::start</a></div><div class="ttdeci">int start()</div></div>
|
|
<div class="ttc" id="mainReceiver_8cpp_html_aeac6a4b86729a7e07100fb58600d6481"><div class="ttname"><a href="mainReceiver_8cpp.html#aeac6a4b86729a7e07100fb58600d6481">PRINT_IN_COLOR</a></div><div class="ttdeci">#define PRINT_IN_COLOR(c, f,...)</div><div class="ttdef"><b>Definition:</b> <a href="mainReceiver_8cpp_source.html#l00038">mainReceiver.cpp:38</a></div></div>
|
|
<div class="ttc" id="mainReceiver_8cpp_html_ac72dad9b593583bd4bf508a979c00f70"><div class="ttname"><a href="mainReceiver_8cpp.html#ac72dad9b593583bd4bf508a979c00f70">sigInterruptHandler</a></div><div class="ttdeci">void sigInterruptHandler(int p)</div><div class="ttdef"><b>Definition:</b> <a href="mainReceiver_8cpp_source.html#l00048">mainReceiver.cpp:48</a></div></div>
|
|
<div class="ttc" id="mainReceiver_8cpp_html_a009e34ab0d3ebfcf32f4421a2b462311"><div class="ttname"><a href="mainReceiver_8cpp.html#a009e34ab0d3ebfcf32f4421a2b462311">GetData</a></div><div class="ttdeci">void GetData(char *metadata, char *datapointer, uint32_t datasize, void *p)</div><div class="ttdef"><b>Definition:</b> <a href="mainReceiver_8cpp_source.html#l00098">mainReceiver.cpp:98</a></div></div>
|
|
<div class="ttc" id="classslsReceiverUsers_html_a5ffca5973503b62cefb4a5e3b8f89dfb"><div class="ttname"><a href="classslsReceiverUsers.html#a5ffca5973503b62cefb4a5e3b8f89dfb">slsReceiverUsers::registerCallBackStartAcquisition</a></div><div class="ttdeci">void registerCallBackStartAcquisition(int(*func)(char *filepath, char *filename, uint64_t fileindex, uint32_t datasize, void *), void *arg)</div><div class="ttdoc">register calbback for starting the acquisition </div></div>
|
|
<div class="ttc" id="classslsReceiverUsers_html_ae10c5eea94bf3bc63ae1acc210582069"><div class="ttname"><a href="classslsReceiverUsers.html#ae10c5eea94bf3bc63ae1acc210582069">slsReceiverUsers::registerCallBackRawDataModifyReady</a></div><div class="ttdeci">void registerCallBackRawDataModifyReady(void(*func)(char *header, char *datapointer, uint32_t &revDatasize, void *), void *arg)</div><div class="ttdoc">register callback to be called when data are available (to process and/or save the data)...</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|