Commit 9e85b0be authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Merge branch 'master' into TEST

parents e2d1475f 93daa06e
<map id="driver_obs" name="driver_obs">
<area shape="rect" id="node2" href="$classDriver__Obs__Serial.html" title="Driver_Obs_Serial" alt="" coords="155,80,283,107"/>
<area shape="rect" id="node3" href="$classdriver__obs__gsm.html" title="driver_obs_gsm" alt="" coords="88,155,203,181"/>
<area shape="rect" id="node6" href="$classdriver__obs__obsdaq.html" title="driver_obs_obsdaq" alt="" coords="227,155,357,181"/>
<area shape="rect" id="node4" href="$classdriver__obs__gsm19.html" title="driver_obs_gsm19" alt="" coords="5,229,133,256"/>
<area shape="rect" id="node5" href="$classdriver__obs__gsm90.html" title="driver_obs_gsm90" alt="" coords="157,229,285,256"/>
</map>
...@@ -70,8 +70,6 @@ Inheritance diagram for driver_obs_obsdaq:</div> ...@@ -70,8 +70,6 @@ Inheritance diagram for driver_obs_obsdaq:</div>
<div class="dyncontent"> <div class="dyncontent">
<div class="center"><img src="classdriver__obs__obsdaq__inherit__graph.png" border="0" usemap="#driver__obs__obsdaq_inherit__map" alt="Inheritance graph"/></div> <div class="center"><img src="classdriver__obs__obsdaq__inherit__graph.png" border="0" usemap="#driver__obs__obsdaq_inherit__map" alt="Inheritance graph"/></div>
<map name="driver__obs__obsdaq_inherit__map" id="driver__obs__obsdaq_inherit__map"> <map name="driver__obs__obsdaq_inherit__map" id="driver__obs__obsdaq_inherit__map">
<area shape="rect" id="node2" href="classDriver__Obs__Serial.html" title="Driver_Obs_Serial" alt="" coords="7,80,135,107"/>
<area shape="rect" id="node3" href="classdriver__obs.html" title="driver_obs" alt="" coords="29,5,112,32"/>
</map> </map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader"> <div class="dynheader">
...@@ -79,10 +77,6 @@ Collaboration diagram for driver_obs_obsdaq:</div> ...@@ -79,10 +77,6 @@ Collaboration diagram for driver_obs_obsdaq:</div>
<div class="dyncontent"> <div class="dyncontent">
<div class="center"><img src="classdriver__obs__obsdaq__coll__graph.png" border="0" usemap="#driver__obs__obsdaq_coll__map" alt="Collaboration graph"/></div> <div class="center"><img src="classdriver__obs__obsdaq__coll__graph.png" border="0" usemap="#driver__obs__obsdaq_coll__map" alt="Collaboration graph"/></div>
<map name="driver__obs__obsdaq_coll__map" id="driver__obs__obsdaq_coll__map"> <map name="driver__obs__obsdaq_coll__map" id="driver__obs__obsdaq_coll__map">
<area shape="rect" id="node2" href="classDriver__Obs__Serial.html" title="Driver_Obs_Serial" alt="" coords="60,171,188,197"/>
<area shape="rect" id="node3" href="classdriver__obs.html" title="driver_obs" alt="" coords="83,95,165,121"/>
<area shape="rect" id="node4" href="classObs__Calibration.html" title="Obs_Calibration" alt="" coords="5,5,120,32"/>
<area shape="rect" id="node5" href="classbuffer__obs.html" title="buffer_obs" alt="" coords="144,5,227,32"/>
</map> </map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls"> <table class="memberdecls">
......
<map id="driver_obs_obsdaq" name="driver_obs_obsdaq">
<area shape="rect" id="node2" href="$classDriver__Obs__Serial.html" title="Driver_Obs_Serial" alt="" coords="60,171,188,197"/>
<area shape="rect" id="node3" href="$classdriver__obs.html" title="driver_obs" alt="" coords="83,95,165,121"/>
<area shape="rect" id="node4" href="$classObs__Calibration.html" title="Obs_Calibration" alt="" coords="5,5,120,32"/>
<area shape="rect" id="node5" href="$classbuffer__obs.html" title="buffer_obs" alt="" coords="144,5,227,32"/>
</map>
<map id="driver_obs_obsdaq" name="driver_obs_obsdaq">
<area shape="rect" id="node2" href="$classDriver__Obs__Serial.html" title="Driver_Obs_Serial" alt="" coords="7,80,135,107"/>
<area shape="rect" id="node3" href="$classdriver__obs.html" title="driver_obs" alt="" coords="29,5,112,32"/>
</map>
<map id="src" name="src">
<area shape="rect" id="node1" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html" title="src" alt="" coords="5,5,77,53"/>
</map>
7a70b70504fc7536b3850e506e5e71ee
\ No newline at end of file
<map id="include" name="include">
<area shape="rect" id="node1" href="dir_d44c64559bbebec7f509842c48db8b23.html" title="include" alt="" coords="5,5,77,53"/>
</map>
2bcd495df4f645331d5fa1a762fad147
\ No newline at end of file
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GeomagLogger: PRIVATE Directory Reference</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/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GeomagLogger
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_e4b23dd6589894ffb7f8381b689e6bea.html">PRIVATE</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">PRIVATE Directory Reference</div> </div>
</div><!--header-->
<div class="contents">
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
...@@ -66,12 +66,13 @@ $(function() { ...@@ -66,12 +66,13 @@ $(function() {
<div class="title">driver_obs_gsm90.hpp</div> </div> <div class="title">driver_obs_gsm90.hpp</div> </div>
</div><!--header--> </div><!--header-->
<div class="contents"> <div class="contents">
<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">* WRITTEN BY ACHIM MORSCHHAUSER, GFZ POTSDAM, April 2016 *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">* mors//gfz-potsdam.de *</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">* This class provides the driver for a GemSys GSM-90 proton magnetometer. *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">* *</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">* It is based on the abstract observatory driver class driver_obs. *</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">* TODO 20160520 AM Try different commands to save GSM from dubious state</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">* when testing the baud rate. May be achieved by over-</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">* writing set_baudrate.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">* *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">********************************************************************************/</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef _DRIVER_OBS_GSM90_H</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define _DRIVER_OBS_GSM90_H</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;string&gt;</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;driver_obs_gsm.hpp&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;data_obs_scalar.hpp&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;data_obs.hpp&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;buffer_obs.hpp&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</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;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">//TODO Automatic check if GSM-90 or GSM-19 is used.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment">/****************************************************************************</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> ****************************************************************************</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * *</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * This class provides the driver for a GSM-90. *</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> * *</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> * It is based on the generic GSM driver class driver_obs_gsm *</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment"> * *</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment"> ****************************************************************************</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment"> ***************************************************************************/</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classdriver__obs__gsm90.html"> 37</a></span>&#160;<span class="keyword">class </span><a class="code" href="classdriver__obs__gsm90.html">driver_obs_gsm90</a> : <span class="keyword">public</span> <a class="code" href="classdriver__obs__gsm.html">driver_obs_gsm</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"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment">// Constructors</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__obs__gsm90.html#a361ee2ee1d920ae70eac72821edde40d">driver_obs_gsm90</a>(std::string port, <a class="code" href="classbuffer__obs.html">buffer_obs</a>* <a class="code" href="classdriver__obs.html#a5953d64be5b3006aa8fb439db8ab1129">buffer</a>);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__obs__gsm90.html#a361ee2ee1d920ae70eac72821edde40d">driver_obs_gsm90</a>(std::string port, <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer, <span class="keywordtype">int</span> baud);</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"> 50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="comment">// Public Methods</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__obs__gsm90.html#aa51ab2388523ab4783894c90ff756485">freerun</a>(<span class="keywordtype">double</span> <a class="code" href="classdriver__obs.html#a46b9d8013cd13df2cb45fcbb05f55691">freq</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"> 58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="comment">// Private Methods</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keywordtype">int</span> init();</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;};</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"> 70</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _DRIVER_OBS_GSM90_H */</span><span class="preprocessor"></span></div><div class="ttc" id="classdriver__obs_html_a46b9d8013cd13df2cb45fcbb05f55691"><div class="ttname"><a href="classdriver__obs.html#a46b9d8013cd13df2cb45fcbb05f55691">driver_obs::freq</a></div><div class="ttdeci">double freq</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:36</div></div> <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">* WRITTEN BY ACHIM MORSCHHAUSER, GFZ POTSDAM, April 2016 *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">* mors//gfz-potsdam.de *</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">* This class provides the driver for a GemSys GSM-90 proton magnetometer. *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">* *</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">* It is based on the abstract observatory driver class driver_obs. *</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">* TODO 20160520 AM Try different commands to save GSM from dubious state</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">* when testing the baud rate. May be achieved by over-</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">* writing set_baudrate.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">* *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">********************************************************************************/</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef _DRIVER_OBS_GSM90_H</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define _DRIVER_OBS_GSM90_H</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;string&gt;</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;driver_obs_gsm.hpp&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;data_obs_scalar.hpp&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;data_obs.hpp&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;buffer_obs.hpp&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</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;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">//TODO Automatic check if GSM-90 or GSM-19 is used.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment">/****************************************************************************</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"> ****************************************************************************</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment"> * *</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment"> * This class provides the driver for a GSM-90. *</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment"> * *</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment"> * It is based on the generic GSM driver class driver_obs_gsm *</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment"> * *</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="comment"> ****************************************************************************</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment"> ***************************************************************************/</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classdriver__obs__gsm90.html"> 37</a></span>&#160;<span class="keyword">class </span><a class="code" href="classdriver__obs__gsm90.html">driver_obs_gsm90</a> : <span class="keyword">public</span> <a class="code" href="classdriver__obs__gsm.html">driver_obs_gsm</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"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment">// Constructors</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__obs__gsm90.html#a361ee2ee1d920ae70eac72821edde40d">driver_obs_gsm90</a>(std::string port, <a class="code" href="classbuffer__obs.html">buffer_obs</a>* <a class="code" href="classdriver__obs.html#a5953d64be5b3006aa8fb439db8ab1129">buffer</a>);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__obs__gsm90.html#a361ee2ee1d920ae70eac72821edde40d">driver_obs_gsm90</a>(std::string port, <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer, <span class="keywordtype">int</span> baud);</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"> 50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="comment">// Public Methods</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__obs__gsm90.html#aa51ab2388523ab4783894c90ff756485">freerun</a>(<span class="keywordtype">double</span> <a class="code" href="classdriver__obs.html#a46b9d8013cd13df2cb45fcbb05f55691">freq</a>);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__obs__gsm90.html#af95f3de241ccc9d1810bfbd8e26f936d">run</a>(<span class="keywordtype">double</span> freq);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment">// Private Methods</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="keywordtype">int</span> init();</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="keywordtype">int</span> set_cycle(<span class="keywordtype">double</span> freq);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</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"> 74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _DRIVER_OBS_GSM90_H */</span><span class="preprocessor"></span></div><div class="ttc" id="classdriver__obs_html_a46b9d8013cd13df2cb45fcbb05f55691"><div class="ttname"><a href="classdriver__obs.html#a46b9d8013cd13df2cb45fcbb05f55691">driver_obs::freq</a></div><div class="ttdeci">double freq</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:36</div></div>
<div class="ttc" id="classbuffer__obs_html"><div class="ttname"><a href="classbuffer__obs.html">buffer_obs</a></div><div class="ttdef"><b>Definition:</b> buffer_obs.hpp:18</div></div> <div class="ttc" id="classbuffer__obs_html"><div class="ttname"><a href="classbuffer__obs.html">buffer_obs</a></div><div class="ttdef"><b>Definition:</b> buffer_obs.hpp:18</div></div>
<div class="ttc" id="classdriver__obs_html_a5953d64be5b3006aa8fb439db8ab1129"><div class="ttname"><a href="classdriver__obs.html#a5953d64be5b3006aa8fb439db8ab1129">driver_obs::buffer</a></div><div class="ttdeci">buffer_obs * buffer</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:30</div></div> <div class="ttc" id="classdriver__obs_html_a5953d64be5b3006aa8fb439db8ab1129"><div class="ttname"><a href="classdriver__obs.html#a5953d64be5b3006aa8fb439db8ab1129">driver_obs::buffer</a></div><div class="ttdeci">buffer_obs * buffer</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:30</div></div>
<div class="ttc" id="classdriver__obs__gsm90_html_a361ee2ee1d920ae70eac72821edde40d"><div class="ttname"><a href="classdriver__obs__gsm90.html#a361ee2ee1d920ae70eac72821edde40d">driver_obs_gsm90::driver_obs_gsm90</a></div><div class="ttdeci">driver_obs_gsm90(std::string port, buffer_obs *buffer)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm90.cpp:36</div></div> <div class="ttc" id="classdriver__obs__gsm90_html_a361ee2ee1d920ae70eac72821edde40d"><div class="ttname"><a href="classdriver__obs__gsm90.html#a361ee2ee1d920ae70eac72821edde40d">driver_obs_gsm90::driver_obs_gsm90</a></div><div class="ttdeci">driver_obs_gsm90(std::string port, buffer_obs *buffer)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm90.cpp:36</div></div>
<div class="ttc" id="classdriver__obs__gsm90_html"><div class="ttname"><a href="classdriver__obs__gsm90.html">driver_obs_gsm90</a></div><div class="ttdef"><b>Definition:</b> driver_obs_gsm90.hpp:37</div></div> <div class="ttc" id="classdriver__obs__gsm90_html"><div class="ttname"><a href="classdriver__obs__gsm90.html">driver_obs_gsm90</a></div><div class="ttdef"><b>Definition:</b> driver_obs_gsm90.hpp:37</div></div>
<div class="ttc" id="classdriver__obs__gsm90_html_aa51ab2388523ab4783894c90ff756485"><div class="ttname"><a href="classdriver__obs__gsm90.html#aa51ab2388523ab4783894c90ff756485">driver_obs_gsm90::freerun</a></div><div class="ttdeci">int freerun(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm90.cpp:70</div></div> <div class="ttc" id="classdriver__obs__gsm90_html_af95f3de241ccc9d1810bfbd8e26f936d"><div class="ttname"><a href="classdriver__obs__gsm90.html#af95f3de241ccc9d1810bfbd8e26f936d">driver_obs_gsm90::run</a></div><div class="ttdeci">int run(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm90.cpp:70</div></div>
<div class="ttc" id="classdriver__obs__gsm90_html_aa51ab2388523ab4783894c90ff756485"><div class="ttname"><a href="classdriver__obs__gsm90.html#aa51ab2388523ab4783894c90ff756485">driver_obs_gsm90::freerun</a></div><div class="ttdeci">int freerun(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm90.cpp:108</div></div>
<div class="ttc" id="classdriver__obs__gsm_html"><div class="ttname"><a href="classdriver__obs__gsm.html">driver_obs_gsm</a></div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.hpp:31</div></div> <div class="ttc" id="classdriver__obs__gsm_html"><div class="ttname"><a href="classdriver__obs__gsm.html">driver_obs_gsm</a></div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.hpp:31</div></div>
</div><!-- fragment --></div><!-- contents --> </div><!-- fragment --></div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->
......
...@@ -72,7 +72,7 @@ $(function() { ...@@ -72,7 +72,7 @@ $(function() {
<div class="ttc" id="classdriver__obs__gsm_html_abc7a62e0099577fcc7c566bc4760270e"><div class="ttname"><a href="classdriver__obs__gsm.html#abc7a62e0099577fcc7c566bc4760270e">driver_obs_gsm::driver_obs_gsm</a></div><div class="ttdeci">driver_obs_gsm(std::string port, buffer_obs *buffer, const char *init_char)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:34</div></div> <div class="ttc" id="classdriver__obs__gsm_html_abc7a62e0099577fcc7c566bc4760270e"><div class="ttname"><a href="classdriver__obs__gsm.html#abc7a62e0099577fcc7c566bc4760270e">driver_obs_gsm::driver_obs_gsm</a></div><div class="ttdeci">driver_obs_gsm(std::string port, buffer_obs *buffer, const char *init_char)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:34</div></div>
<div class="ttc" id="classdriver__obs__gsm_html_a683a581d16e390495a8c79f7500bfa8f"><div class="ttname"><a href="classdriver__obs__gsm.html#a683a581d16e390495a8c79f7500bfa8f">driver_obs_gsm::run</a></div><div class="ttdeci">virtual int run(double freq_in)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:129</div></div> <div class="ttc" id="classdriver__obs__gsm_html_a683a581d16e390495a8c79f7500bfa8f"><div class="ttname"><a href="classdriver__obs__gsm.html#a683a581d16e390495a8c79f7500bfa8f">driver_obs_gsm::run</a></div><div class="ttdeci">virtual int run(double freq_in)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:129</div></div>
<div class="ttc" id="classdata__obs_html"><div class="ttname"><a href="classdata__obs.html">data_obs</a></div><div class="ttdef"><b>Definition:</b> data_obs.hpp:18</div></div> <div class="ttc" id="classdata__obs_html"><div class="ttname"><a href="classdata__obs.html">data_obs</a></div><div class="ttdef"><b>Definition:</b> data_obs.hpp:18</div></div>
<div class="ttc" id="classdriver__obs__gsm_html_abaca6e42c6070a71d2c368e45dab58df"><div class="ttname"><a href="classdriver__obs__gsm.html#abaca6e42c6070a71d2c368e45dab58df">driver_obs_gsm::stop</a></div><div class="ttdeci">virtual int stop()</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:311</div></div> <div class="ttc" id="classdriver__obs__gsm_html_abaca6e42c6070a71d2c368e45dab58df"><div class="ttname"><a href="classdriver__obs__gsm.html#abaca6e42c6070a71d2c368e45dab58df">driver_obs_gsm::stop</a></div><div class="ttdeci">virtual int stop()</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:318</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html"><div class="ttname"><a href="classDriver__Obs__Serial.html">Driver_Obs_Serial</a></div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.hpp:16</div></div> <div class="ttc" id="classDriver__Obs__Serial_html"><div class="ttname"><a href="classDriver__Obs__Serial.html">Driver_Obs_Serial</a></div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.hpp:16</div></div>
<div class="ttc" id="classdata__obs__scalar_html"><div class="ttname"><a href="classdata__obs__scalar.html">data_obs_scalar</a></div><div class="ttdef"><b>Definition:</b> data_obs_scalar.hpp:19</div></div> <div class="ttc" id="classdata__obs__scalar_html"><div class="ttname"><a href="classdata__obs__scalar.html">data_obs_scalar</a></div><div class="ttdef"><b>Definition:</b> data_obs_scalar.hpp:19</div></div>
<div class="ttc" id="classdriver__obs__gsm_html_a70ea84c41476132eda0dbf2d292e57dd"><div class="ttname"><a href="classdriver__obs__gsm.html#a70ea84c41476132eda0dbf2d292e57dd">driver_obs_gsm::freerun</a></div><div class="ttdeci">virtual int freerun(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:73</div></div> <div class="ttc" id="classdriver__obs__gsm_html_a70ea84c41476132eda0dbf2d292e57dd"><div class="ttname"><a href="classdriver__obs__gsm.html#a70ea84c41476132eda0dbf2d292e57dd">driver_obs_gsm::freerun</a></div><div class="ttdeci">virtual int freerun(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_gsm.cpp:73</div></div>
......
...@@ -70,18 +70,18 @@ $(function() { ...@@ -70,18 +70,18 @@ $(function() {
<div class="ttc" id="classbuffer__obs_html"><div class="ttname"><a href="classbuffer__obs.html">buffer_obs</a></div><div class="ttdef"><b>Definition:</b> buffer_obs.hpp:18</div></div> <div class="ttc" id="classbuffer__obs_html"><div class="ttname"><a href="classbuffer__obs.html">buffer_obs</a></div><div class="ttdef"><b>Definition:</b> buffer_obs.hpp:18</div></div>
<div class="ttc" id="classdata__obs__vector_html"><div class="ttname"><a href="classdata__obs__vector.html">data_obs_vector</a></div><div class="ttdef"><b>Definition:</b> data_obs_vector.hpp:19</div></div> <div class="ttc" id="classdata__obs__vector_html"><div class="ttname"><a href="classdata__obs__vector.html">data_obs_vector</a></div><div class="ttdef"><b>Definition:</b> data_obs_vector.hpp:19</div></div>
<div class="ttc" id="classdriver__obs_html_a5953d64be5b3006aa8fb439db8ab1129"><div class="ttname"><a href="classdriver__obs.html#a5953d64be5b3006aa8fb439db8ab1129">driver_obs::buffer</a></div><div class="ttdeci">buffer_obs * buffer</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:30</div></div> <div class="ttc" id="classdriver__obs_html_a5953d64be5b3006aa8fb439db8ab1129"><div class="ttname"><a href="classdriver__obs.html#a5953d64be5b3006aa8fb439db8ab1129">driver_obs::buffer</a></div><div class="ttdeci">buffer_obs * buffer</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:30</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html_a93e36452dff03ceb39c5565180b2aad9"><div class="ttname"><a href="classdriver__obs__obsdaq.html#a93e36452dff03ceb39c5565180b2aad9">driver_obs_obsdaq::freerun</a></div><div class="ttdeci">int freerun(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:292</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html_a93e36452dff03ceb39c5565180b2aad9"><div class="ttname"><a href="classdriver__obs__obsdaq.html#a93e36452dff03ceb39c5565180b2aad9">driver_obs_obsdaq::freerun</a></div><div class="ttdeci">int freerun(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:281</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html_a32a2661aeb306b3b225b7ddeb81149c1"><div class="ttname"><a href="classdriver__obs__obsdaq.html#a32a2661aeb306b3b225b7ddeb81149c1">driver_obs_obsdaq::full_calibrate</a></div><div class="ttdeci">int full_calibrate(int channel, int repeat)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:549</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html_a32a2661aeb306b3b225b7ddeb81149c1"><div class="ttname"><a href="classdriver__obs__obsdaq.html#a32a2661aeb306b3b225b7ddeb81149c1">driver_obs_obsdaq::full_calibrate</a></div><div class="ttdeci">int full_calibrate(int channel, int repeat)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:538</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html_ae3a5cd67df9b32dc89d9ca3c454e0bfa"><div class="ttname"><a href="classdriver__obs__obsdaq.html#ae3a5cd67df9b32dc89d9ca3c454e0bfa">driver_obs_obsdaq::auto_calibrate</a></div><div class="ttdeci">int auto_calibrate(int channel, int repeat)</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html_ae3a5cd67df9b32dc89d9ca3c454e0bfa"><div class="ttname"><a href="classdriver__obs__obsdaq.html#ae3a5cd67df9b32dc89d9ca3c454e0bfa">driver_obs_obsdaq::auto_calibrate</a></div><div class="ttdeci">int auto_calibrate(int channel, int repeat)</div></div>
<div class="ttc" id="classObs__Calibration__Vector_html"><div class="ttname"><a href="classObs__Calibration__Vector.html">Obs_Calibration_Vector</a></div><div class="ttdef"><b>Definition:</b> Obs_Calibration_Vector.hpp:12</div></div> <div class="ttc" id="classObs__Calibration__Vector_html"><div class="ttname"><a href="classObs__Calibration__Vector.html">Obs_Calibration_Vector</a></div><div class="ttdef"><b>Definition:</b> Obs_Calibration_Vector.hpp:12</div></div>
<div class="ttc" id="classdata__obs_html"><div class="ttname"><a href="classdata__obs.html">data_obs</a></div><div class="ttdef"><b>Definition:</b> data_obs.hpp:18</div></div> <div class="ttc" id="classdata__obs_html"><div class="ttname"><a href="classdata__obs.html">data_obs</a></div><div class="ttdef"><b>Definition:</b> data_obs.hpp:18</div></div>
<div class="ttc" id="classdriver__obs_html_a8f79ecaafffb6dff7a6d143027fcc928"><div class="ttname"><a href="classdriver__obs.html#a8f79ecaafffb6dff7a6d143027fcc928">driver_obs::cal</a></div><div class="ttdeci">Obs_Calibration_Vector * cal</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:33</div></div> <div class="ttc" id="classdriver__obs_html_a8f79ecaafffb6dff7a6d143027fcc928"><div class="ttname"><a href="classdriver__obs.html#a8f79ecaafffb6dff7a6d143027fcc928">driver_obs::cal</a></div><div class="ttdeci">Obs_Calibration_Vector * cal</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:33</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html_aa1983d3f41669000cbecda9055545906"><div class="ttname"><a href="classdriver__obs__obsdaq.html#aa1983d3f41669000cbecda9055545906">driver_obs_obsdaq::run</a></div><div class="ttdeci">int run(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:225</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html_aa1983d3f41669000cbecda9055545906"><div class="ttname"><a href="classdriver__obs__obsdaq.html#aa1983d3f41669000cbecda9055545906">driver_obs_obsdaq::run</a></div><div class="ttdeci">int run(double freq)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:214</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html"><div class="ttname"><a href="classDriver__Obs__Serial.html">Driver_Obs_Serial</a></div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.hpp:16</div></div> <div class="ttc" id="classDriver__Obs__Serial_html"><div class="ttname"><a href="classDriver__Obs__Serial.html">Driver_Obs_Serial</a></div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.hpp:16</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html"><div class="ttname"><a href="classdriver__obs__obsdaq.html">driver_obs_obsdaq</a></div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.hpp:34</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html"><div class="ttname"><a href="classdriver__obs__obsdaq.html">driver_obs_obsdaq</a></div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.hpp:34</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html_a95fab3872f363ca72aae76a623580067"><div class="ttname"><a href="classdriver__obs__obsdaq.html#a95fab3872f363ca72aae76a623580067">driver_obs_obsdaq::driver_obs_obsdaq</a></div><div class="ttdeci">driver_obs_obsdaq(std::string port, buffer_obs *buffer, Obs_Calibration_Vector *cal, int addr=0x0F)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:62</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html_a95fab3872f363ca72aae76a623580067"><div class="ttname"><a href="classdriver__obs__obsdaq.html#a95fab3872f363ca72aae76a623580067">driver_obs_obsdaq::driver_obs_obsdaq</a></div><div class="ttdeci">driver_obs_obsdaq(std::string port, buffer_obs *buffer, Obs_Calibration_Vector *cal, int addr=0x0F)</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:63</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html_ae37ca1455b552ccb3b57dac86b792c6b"><div class="ttname"><a href="classdriver__obs__obsdaq.html#ae37ca1455b552ccb3b57dac86b792c6b">driver_obs_obsdaq::set_term</a></div><div class="ttdeci">int set_term()</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:568</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html_ae37ca1455b552ccb3b57dac86b792c6b"><div class="ttname"><a href="classdriver__obs__obsdaq.html#ae37ca1455b552ccb3b57dac86b792c6b">driver_obs_obsdaq::set_term</a></div><div class="ttdeci">int set_term()</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:557</div></div>
<div class="ttc" id="classdriver__obs__obsdaq_html_afb7bb673f07ba90aee20b765080d6fdf"><div class="ttname"><a href="classdriver__obs__obsdaq.html#afb7bb673f07ba90aee20b765080d6fdf">driver_obs_obsdaq::stop</a></div><div class="ttdeci">int stop()</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:391</div></div> <div class="ttc" id="classdriver__obs__obsdaq_html_afb7bb673f07ba90aee20b765080d6fdf"><div class="ttname"><a href="classdriver__obs__obsdaq.html#afb7bb673f07ba90aee20b765080d6fdf">driver_obs_obsdaq::stop</a></div><div class="ttdeci">int stop()</div><div class="ttdef"><b>Definition:</b> driver_obs_obsdaq.cpp:380</div></div>
</div><!-- fragment --></div><!-- contents --> </div><!-- fragment --></div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->
<hr class="footer"/><address class="footer"><small> <hr class="footer"/><address class="footer"><small>
......
...@@ -66,16 +66,16 @@ $(function() { ...@@ -66,16 +66,16 @@ $(function() {
<div class="title">driver_serial.hpp</div> </div> <div class="title">driver_serial.hpp</div> </div>
</div><!--header--> </div><!--header-->
<div class="contents"> <div class="contents">
<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">* WRITTEN BY ACHIM MORSCHHAUSER, GFZ POTSDAM, April 2016 *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">* mors//gfz-potsdam.de *</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">* This class provides the driver for a serial port on a POSIX system. *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">* *</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">********************************************************************************/</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef _DRIVER_SERIAL_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define _DRIVER_SERIAL_H</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// C Headers</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;time.h&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;termios.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// C++ Headers</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classdriver__serial.html"> 18</a></span>&#160;<span class="keyword">class </span><a class="code" href="classdriver__serial.html">driver_serial</a></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;{</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="comment">// Private class variables</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="comment">//</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="comment">// Valid baudrates</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> valid_baudrates_size;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> *valid_baudrates;</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="comment">// Serial Port Parameters</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">private</span>: std::string port;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">private</span>: <span class="keyword">struct </span>termios tio;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> fd;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="comment">// Serial Port configuration</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> baud;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">char</span>* term;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="comment">// Constructors</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="comment">// Public Methods</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">set_baud</a>(<span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> *cmd);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *cmd);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">waitanswer</a>(<span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout, <span class="keyword">struct</span> timespec *recv_time);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">receive_raw</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">get_baudrates</a>(<span class="keywordtype">int</span>** valid_baudrates, <span class="keywordtype">int</span>* valid_baudrates_size);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">uninit</a>();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">flush</a>();</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">set_term</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</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; <span class="comment">//</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="comment">// Private Methods</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="comment">//</span></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="keyword">private</span>:</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordtype">int</span> init();</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</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;};</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _DRIVER_SERIAL_H */</span><span class="preprocessor"></span></div><div class="ttc" id="classdriver__serial_html_a83992e08c767f80ea3edf5cdc49499fb"><div class="ttname"><a href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">driver_serial::set_term</a></div><div class="ttdeci">int set_term(const char *term, int termlen)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:618</div></div> <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">* WRITTEN BY ACHIM MORSCHHAUSER, GFZ POTSDAM, April 2016 *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">* mors//gfz-potsdam.de *</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">* This class provides the driver for a serial port on a POSIX system. *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">* *</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">********************************************************************************/</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef _DRIVER_SERIAL_H</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define _DRIVER_SERIAL_H</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// C Headers</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;time.h&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;termios.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// C++ Headers</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classdriver__serial.html"> 18</a></span>&#160;<span class="keyword">class </span><a class="code" href="classdriver__serial.html">driver_serial</a></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;{</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="comment">// Private class variables</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="comment">//</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="comment">// Valid baudrates</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> valid_baudrates_size;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> *valid_baudrates;</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="comment">// Serial Port Parameters</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">private</span>: std::string port;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">private</span>: <span class="keyword">struct </span>termios tio;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> fd;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="comment">// Serial Port configuration</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">int</span> baud;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">private</span>: <span class="keywordtype">char</span>* term;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="comment">// Constructors</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="comment">// Public Methods</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="comment">//</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">set_baud</a>(<span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> *cmd);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *cmd);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">waitanswer</a>(<span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout, <span class="keyword">struct</span> timespec *recv_time);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">receive_raw</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">get_baudrates</a>(<span class="keywordtype">int</span>** valid_baudrates, <span class="keywordtype">int</span>* valid_baudrates_size);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">uninit</a>();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">flush</a>();</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">set_term</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</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; <span class="comment">//</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="comment">// Private Methods</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="comment">//</span></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="keyword">private</span>:</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordtype">int</span> init();</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</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;};</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _DRIVER_SERIAL_H */</span><span class="preprocessor"></span></div><div class="ttc" id="classdriver__serial_html_a83992e08c767f80ea3edf5cdc49499fb"><div class="ttname"><a href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">driver_serial::set_term</a></div><div class="ttdeci">int set_term(const char *term, int termlen)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:620</div></div>
<div class="ttc" id="classdriver__serial_html_a8f5b48343677b5ecc0328ec59b2a6cb5"><div class="ttname"><a href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">driver_serial::get_baudrates</a></div><div class="ttdeci">int get_baudrates(int **valid_baudrates, int *valid_baudrates_size)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:572</div></div> <div class="ttc" id="classdriver__serial_html_a8f5b48343677b5ecc0328ec59b2a6cb5"><div class="ttname"><a href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">driver_serial::get_baudrates</a></div><div class="ttdeci">int get_baudrates(int **valid_baudrates, int *valid_baudrates_size)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:574</div></div>
<div class="ttc" id="classdriver__serial_html_ac188da06dd874b474d4c722596d05ab8"><div class="ttname"><a href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">driver_serial::flush</a></div><div class="ttdeci">int flush()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:605</div></div> <div class="ttc" id="classdriver__serial_html_ac188da06dd874b474d4c722596d05ab8"><div class="ttname"><a href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">driver_serial::flush</a></div><div class="ttdeci">int flush()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:607</div></div>
<div class="ttc" id="classdriver__serial_html"><div class="ttname"><a href="classdriver__serial.html">driver_serial</a></div><div class="ttdef"><b>Definition:</b> driver_serial.hpp:18</div></div> <div class="ttc" id="classdriver__serial_html"><div class="ttname"><a href="classdriver__serial.html">driver_serial</a></div><div class="ttdef"><b>Definition:</b> driver_serial.hpp:18</div></div>
<div class="ttc" id="classdriver__serial_html_a269f176c3a9f658c8c025fd58428e0b7"><div class="ttname"><a href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">driver_serial::receive_raw</a></div><div class="ttdeci">int receive_raw(char *buf, int buflen, double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:105</div></div> <div class="ttc" id="classdriver__serial_html_a269f176c3a9f658c8c025fd58428e0b7"><div class="ttname"><a href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">driver_serial::receive_raw</a></div><div class="ttdeci">int receive_raw(char *buf, int buflen, double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:105</div></div>
<div class="ttc" id="classdriver__serial_html_a44ccce2e2d1182aef5748987f346af88"><div class="ttname"><a href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">driver_serial::uninit</a></div><div class="ttdeci">int uninit()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:589</div></div> <div class="ttc" id="classdriver__serial_html_a44ccce2e2d1182aef5748987f346af88"><div class="ttname"><a href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">driver_serial::uninit</a></div><div class="ttdeci">int uninit()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:591</div></div>
<div class="ttc" id="classdriver__serial_html_aad701ba0cc4393bcd7ab3366e70b5e7c"><div class="ttname"><a href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">driver_serial::send</a></div><div class="ttdeci">int send(char *cmd)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:404</div></div> <div class="ttc" id="classdriver__serial_html_aad701ba0cc4393bcd7ab3366e70b5e7c"><div class="ttname"><a href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">driver_serial::send</a></div><div class="ttdeci">int send(char *cmd)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:406</div></div>
<div class="ttc" id="classdriver__serial_html_a0411d9a837cbe88c0e50abe2b829a183"><div class="ttname"><a href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">driver_serial::receive</a></div><div class="ttdeci">int receive(char *buf, int buflen, double timeout, struct timespec *recv_time)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:178</div></div> <div class="ttc" id="classdriver__serial_html_a0411d9a837cbe88c0e50abe2b829a183"><div class="ttname"><a href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">driver_serial::receive</a></div><div class="ttdeci">int receive(char *buf, int buflen, double timeout, struct timespec *recv_time)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:178</div></div>
<div class="ttc" id="classdriver__serial_html_ae456ad2f0185eda24549e93846c10dfc"><div class="ttname"><a href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">driver_serial::set_baud</a></div><div class="ttdeci">int set_baud(int baud)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:441</div></div> <div class="ttc" id="classdriver__serial_html_ae456ad2f0185eda24549e93846c10dfc"><div class="ttname"><a href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">driver_serial::set_baud</a></div><div class="ttdeci">int set_baud(int baud)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:443</div></div>
<div class="ttc" id="classdriver__serial_html_a228a624c62ee47162825441029c9c767"><div class="ttname"><a href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">driver_serial::waitanswer</a></div><div class="ttdeci">int waitanswer(double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:296</div></div> <div class="ttc" id="classdriver__serial_html_a228a624c62ee47162825441029c9c767"><div class="ttname"><a href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">driver_serial::waitanswer</a></div><div class="ttdeci">int waitanswer(double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:298</div></div>
</div><!-- fragment --></div><!-- contents --> </div><!-- fragment --></div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->
<hr class="footer"/><address class="footer"><small> <hr class="footer"/><address class="footer"><small>
......
...@@ -66,16 +66,16 @@ $(function() { ...@@ -66,16 +66,16 @@ $(function() {
<div class="title">driver_serial_emulate.hpp</div> </div> <div class="title">driver_serial_emulate.hpp</div> </div>
</div><!--header--> </div><!--header-->
<div class="contents"> <div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef _DRIVER_SERIAL_EMULATE_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define _DRIVER_SERIAL_EMULATE_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;time.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;termios.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">class </span><a class="code" href="classdriver__serial.html">driver_serial</a></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;{</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// Valid baudrates</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> valid_baudrates_size;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> *valid_baudrates;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// Port referring to device file</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">private</span>: std::string port;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">/* POSIX termios structure that describes the serial port */</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">private</span>: <span class="keyword">struct </span>termios tio;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">/* Serial device file descriptor */</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> fd;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">// Baudrate</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">private</span>: speed_t baud;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">// Termination characters</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">char</span>* term;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">// Constructors</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">set_baud</a>(<span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> *cmd);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *cmd);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">waitanswer</a>(<span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout, <span class="keyword">struct</span> timespec *recv_time);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">receive_raw</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">set_term</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">get_baudrates</a>(<span class="keywordtype">int</span>** valid_baudrates, <span class="keywordtype">int</span>* valid_baudrates_size);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">uninit</a>();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">flush</a>();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> init();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _DRIVER_SERIAL_H */</span><span class="preprocessor"></span></div><div class="ttc" id="classdriver__serial_html_a83992e08c767f80ea3edf5cdc49499fb"><div class="ttname"><a href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">driver_serial::set_term</a></div><div class="ttdeci">int set_term(const char *term, int termlen)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:618</div></div> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef _DRIVER_SERIAL_EMULATE_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define _DRIVER_SERIAL_EMULATE_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;time.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;termios.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="keyword">class </span><a class="code" href="classdriver__serial.html">driver_serial</a></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;{</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// Valid baudrates</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> valid_baudrates_size;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> *valid_baudrates;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// Port referring to device file</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">private</span>: std::string port;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">/* POSIX termios structure that describes the serial port */</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">private</span>: <span class="keyword">struct </span>termios tio;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">/* Serial device file descriptor */</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> fd;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">// Baudrate</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="keyword">private</span>: speed_t baud;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">// Termination characters</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">char</span>* term;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">// Constructors</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string port, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">public</span>: <a class="code" href="classdriver__serial.html">driver_serial</a>(std::string, <span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen, <span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">set_baud</a>(<span class="keywordtype">int</span> baud);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> *cmd);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">send</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *cmd);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">waitanswer</a>(<span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout, <span class="keyword">struct</span> timespec *recv_time);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">receive</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">receive_raw</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> buflen, <span class="keywordtype">double</span> timeout);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">set_term</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* term, <span class="keywordtype">int</span> termlen);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">get_baudrates</a>(<span class="keywordtype">int</span>** valid_baudrates, <span class="keywordtype">int</span>* valid_baudrates_size);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">uninit</a>();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="keyword">public</span>: <span class="keywordtype">int</span> <a class="code" href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">flush</a>();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">private</span>: <span class="keywordtype">int</span> init();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _DRIVER_SERIAL_H */</span><span class="preprocessor"></span></div><div class="ttc" id="classdriver__serial_html_a83992e08c767f80ea3edf5cdc49499fb"><div class="ttname"><a href="classdriver__serial.html#a83992e08c767f80ea3edf5cdc49499fb">driver_serial::set_term</a></div><div class="ttdeci">int set_term(const char *term, int termlen)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:620</div></div>
<div class="ttc" id="classdriver__serial_html_a8f5b48343677b5ecc0328ec59b2a6cb5"><div class="ttname"><a href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">driver_serial::get_baudrates</a></div><div class="ttdeci">int get_baudrates(int **valid_baudrates, int *valid_baudrates_size)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:572</div></div> <div class="ttc" id="classdriver__serial_html_a8f5b48343677b5ecc0328ec59b2a6cb5"><div class="ttname"><a href="classdriver__serial.html#a8f5b48343677b5ecc0328ec59b2a6cb5">driver_serial::get_baudrates</a></div><div class="ttdeci">int get_baudrates(int **valid_baudrates, int *valid_baudrates_size)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:574</div></div>
<div class="ttc" id="classdriver__serial_html_ac188da06dd874b474d4c722596d05ab8"><div class="ttname"><a href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">driver_serial::flush</a></div><div class="ttdeci">int flush()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:605</div></div> <div class="ttc" id="classdriver__serial_html_ac188da06dd874b474d4c722596d05ab8"><div class="ttname"><a href="classdriver__serial.html#ac188da06dd874b474d4c722596d05ab8">driver_serial::flush</a></div><div class="ttdeci">int flush()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:607</div></div>
<div class="ttc" id="classdriver__serial_html"><div class="ttname"><a href="classdriver__serial.html">driver_serial</a></div><div class="ttdef"><b>Definition:</b> driver_serial.hpp:18</div></div> <div class="ttc" id="classdriver__serial_html"><div class="ttname"><a href="classdriver__serial.html">driver_serial</a></div><div class="ttdef"><b>Definition:</b> driver_serial.hpp:18</div></div>
<div class="ttc" id="classdriver__serial_html_a269f176c3a9f658c8c025fd58428e0b7"><div class="ttname"><a href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">driver_serial::receive_raw</a></div><div class="ttdeci">int receive_raw(char *buf, int buflen, double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:105</div></div> <div class="ttc" id="classdriver__serial_html_a269f176c3a9f658c8c025fd58428e0b7"><div class="ttname"><a href="classdriver__serial.html#a269f176c3a9f658c8c025fd58428e0b7">driver_serial::receive_raw</a></div><div class="ttdeci">int receive_raw(char *buf, int buflen, double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:105</div></div>
<div class="ttc" id="classdriver__serial_html_a44ccce2e2d1182aef5748987f346af88"><div class="ttname"><a href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">driver_serial::uninit</a></div><div class="ttdeci">int uninit()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:589</div></div> <div class="ttc" id="classdriver__serial_html_a44ccce2e2d1182aef5748987f346af88"><div class="ttname"><a href="classdriver__serial.html#a44ccce2e2d1182aef5748987f346af88">driver_serial::uninit</a></div><div class="ttdeci">int uninit()</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:591</div></div>
<div class="ttc" id="classdriver__serial_html_aad701ba0cc4393bcd7ab3366e70b5e7c"><div class="ttname"><a href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">driver_serial::send</a></div><div class="ttdeci">int send(char *cmd)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:404</div></div> <div class="ttc" id="classdriver__serial_html_aad701ba0cc4393bcd7ab3366e70b5e7c"><div class="ttname"><a href="classdriver__serial.html#aad701ba0cc4393bcd7ab3366e70b5e7c">driver_serial::send</a></div><div class="ttdeci">int send(char *cmd)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:406</div></div>
<div class="ttc" id="classdriver__serial_html_a0411d9a837cbe88c0e50abe2b829a183"><div class="ttname"><a href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">driver_serial::receive</a></div><div class="ttdeci">int receive(char *buf, int buflen, double timeout, struct timespec *recv_time)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:178</div></div> <div class="ttc" id="classdriver__serial_html_a0411d9a837cbe88c0e50abe2b829a183"><div class="ttname"><a href="classdriver__serial.html#a0411d9a837cbe88c0e50abe2b829a183">driver_serial::receive</a></div><div class="ttdeci">int receive(char *buf, int buflen, double timeout, struct timespec *recv_time)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:178</div></div>
<div class="ttc" id="classdriver__serial_html_ae456ad2f0185eda24549e93846c10dfc"><div class="ttname"><a href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">driver_serial::set_baud</a></div><div class="ttdeci">int set_baud(int baud)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:441</div></div> <div class="ttc" id="classdriver__serial_html_ae456ad2f0185eda24549e93846c10dfc"><div class="ttname"><a href="classdriver__serial.html#ae456ad2f0185eda24549e93846c10dfc">driver_serial::set_baud</a></div><div class="ttdeci">int set_baud(int baud)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:443</div></div>
<div class="ttc" id="classdriver__serial_html_a228a624c62ee47162825441029c9c767"><div class="ttname"><a href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">driver_serial::waitanswer</a></div><div class="ttdeci">int waitanswer(double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:296</div></div> <div class="ttc" id="classdriver__serial_html_a228a624c62ee47162825441029c9c767"><div class="ttname"><a href="classdriver__serial.html#a228a624c62ee47162825441029c9c767">driver_serial::waitanswer</a></div><div class="ttdeci">int waitanswer(double timeout)</div><div class="ttdef"><b>Definition:</b> driver_serial.cpp:298</div></div>
</div><!-- fragment --></div><!-- contents --> </div><!-- fragment --></div><!-- contents -->
<!-- start footer part --> <!-- start footer part -->
<hr class="footer"/><address class="footer"><small> <hr class="footer"/><address class="footer"><small>
......
...@@ -250,6 +250,7 @@ $(function() { ...@@ -250,6 +250,7 @@ $(function() {
</li> </li>
<li>run() <li>run()
: <a class="el" href="classdriver__obs.html#ac82acc4fc5bdb1c7f0f26307255b8bd9">driver_obs</a> : <a class="el" href="classdriver__obs.html#ac82acc4fc5bdb1c7f0f26307255b8bd9">driver_obs</a>
, <a class="el" href="classdriver__obs__gsm90.html#af95f3de241ccc9d1810bfbd8e26f936d">driver_obs_gsm90</a>
, <a class="el" href="classdriver__obs__gsm.html#a683a581d16e390495a8c79f7500bfa8f">driver_obs_gsm</a> , <a class="el" href="classdriver__obs__gsm.html#a683a581d16e390495a8c79f7500bfa8f">driver_obs_gsm</a>
, <a class="el" href="classdriver__obs__obsdaq.html#aa1983d3f41669000cbecda9055545906">driver_obs_obsdaq</a> , <a class="el" href="classdriver__obs__obsdaq.html#aa1983d3f41669000cbecda9055545906">driver_obs_obsdaq</a>
, <a class="el" href="classDriver__Obs__Serial.html#ace908dd3123aff8d1193d8f70ac0fe4f">Driver_Obs_Serial</a> , <a class="el" href="classDriver__Obs__Serial.html#ace908dd3123aff8d1193d8f70ac0fe4f">Driver_Obs_Serial</a>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment