Commit ad955f4b authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

First commit

parents
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.toolchain.gnu.base.1663858962">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.base.1663858962" moduleId="org.eclipse.cdt.core.settings" name="Default">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.base.1663858962" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
<folderInfo id="cdt.managedbuild.toolchain.gnu.base.1663858962.248206080" name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.base.1800402429" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.base">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.gnu.platform.base.1098168777" name="Debug Platform" osList="linux,hpux,aix,qnx" superClass="cdt.managedbuild.target.gnu.platform.base"/>
<builder id="cdt.managedbuild.target.gnu.builder.base.669591988" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.base"/>
<tool id="cdt.managedbuild.tool.gnu.archiver.base.1287841722" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.326397945" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base">
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.660407633" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.compiler.base.904039079" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base">
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1497888134" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.c.linker.base.612870065" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.1381152794" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base">
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1917184002" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="cdt.managedbuild.tool.gnu.assembler.base.984110530" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.base">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.2117883099" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="DataLogger.null.510672065" name="DataLogger"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
<buildTargets>
<target name="Serial_Virtual" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>Serial_Virtual</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
</buildTargets>
</storageModule>
<storageModule moduleId="refreshScope" versionNumber="2">
<configuration configurationName="Default">
<resource resourceType="PROJECT" workspacePath="/DataLogger"/>
</configuration>
</storageModule>
</cproject>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DataLogger</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration id="cdt.managedbuild.toolchain.gnu.base.1663858962" name="Default">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser" keep-relative-paths="false" name="CDT GCC Build Output Parser" parameter="(gcc)|([gc]\+\+)|(clang)" prefer-non-shared="true"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
</extension>
</configuration>
</project>
<!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.9.1"/>
<title>My Project: include/Driver_Obs_Serial.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">My Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Driver_Obs_Serial.hpp</div> </div>
</div><!--header-->
<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"> * Driver_Obs_Serial.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Created on: May 12, 2016</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Author: mors</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;</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef INCLUDE_DRIVER_OBS_SERIAL_HPP_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define INCLUDE_DRIVER_OBS_SERIAL_HPP_</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">//#include &lt;driver_serial_emulate.hpp&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;driver_serial.hpp&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;driver_obs.hpp&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &quot;Obs_Calibration.hpp&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classDriver__Obs__Serial.html"> 16</a></span>&#160;<span class="keyword">class </span><a class="code" href="classDriver__Obs__Serial.html">Driver_Obs_Serial</a>: <span class="keyword">protected</span> <a class="code" href="classdriver__obs.html">driver_obs</a> {</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"> 18</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">// Private class variables</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">//</span></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;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<a class="code" href="classdriver__serial.html">driver_serial</a> serial;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</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">// Constructors</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;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<a class="code" href="classDriver__Obs__Serial.html#a2522a301305c0971e68e744cbd1d2866">Driver_Obs_Serial</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="l00035"></a><span class="lineno"> 35</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<a class="code" href="classDriver__Obs__Serial.html#a2522a301305c0971e68e744cbd1d2866">Driver_Obs_Serial</a>(std::string port, <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer,</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="classObs__Calibration.html">Obs_Calibration</a>* <a class="code" href="classdriver__obs.html#a1ae4f672f4b07affbacc873689f3e195">cal</a>);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="comment">// Public Methods</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keyword">public</span>: <span class="keyword">virtual</span> <span class="keywordtype">int</span> <span class="keyword">get</span>(<a class="code" href="classdata__obs.html">data_obs</a>* data)=0;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="keyword">public</span>: <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#ace908dd3123aff8d1193d8f70ac0fe4f">run</a>(<span class="keywordtype">double</span> freq)=0;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">public</span>: <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#a828ed903a79a45910845c8c4dc5dd347">freerun</a>(<span class="keywordtype">double</span> freq)=0;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keyword">public</span>: <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#abb9dc6a9c601f4e261120b51c8fa9ede">stop</a>()=0;</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="comment">//</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment">// Private Methods</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#ad762a0a87fdb613ba2093a71943ca1f5">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="l00069"></a><span class="lineno"> 69</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#ad4696c27dc523f22f290ea59c3473b29">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="l00071"></a><span class="lineno"> 71</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#ad4696c27dc523f22f290ea59c3473b29">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="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">struct</span> timespec *recv_time);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#a0b43e883b8bd411b2e1cddb4f0822070">send</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* cmd);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#a0b43e883b8bd411b2e1cddb4f0822070">send</a>(<span class="keywordtype">char</span>* cmd);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#acef77d2fabb1ba4164a9c3756a2fdece">waitanswer</a>(<span class="keywordtype">double</span> timeout);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#a5ad3d316837f53a956ffae9afd3c2d9c">flush</a>();</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#ab9cccc2f51d50467bebe9fe6ad5ef88e">set_baud</a>(<span class="keywordtype">char</span>* init_chars[], <span class="keywordtype">int</span> init_chars_num);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#ab9cccc2f51d50467bebe9fe6ad5ef88e">set_baud</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* init_chars);</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#ab9cccc2f51d50467bebe9fe6ad5ef88e">set_baud</a>(<span class="keywordtype">int</span> baud);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classDriver__Obs__Serial.html#a8d0c93300cfe83ceb28acb92e24e7d35">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="l00095"></a><span class="lineno"> 95</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;};</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* INCLUDE_DRIVER_OBS_SERIAL_HPP_ */</span><span class="preprocessor"></span></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__Serial_html_ace908dd3123aff8d1193d8f70ac0fe4f"><div class="ttname"><a href="classDriver__Obs__Serial.html#ace908dd3123aff8d1193d8f70ac0fe4f">Driver_Obs_Serial::run</a></div><div class="ttdeci">virtual int run(double freq)=0</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html_a828ed903a79a45910845c8c4dc5dd347"><div class="ttname"><a href="classDriver__Obs__Serial.html#a828ed903a79a45910845c8c4dc5dd347">Driver_Obs_Serial::freerun</a></div><div class="ttdeci">virtual int freerun(double freq)=0</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__Serial_html_a5ad3d316837f53a956ffae9afd3c2d9c"><div class="ttname"><a href="classDriver__Obs__Serial.html#a5ad3d316837f53a956ffae9afd3c2d9c">Driver_Obs_Serial::flush</a></div><div class="ttdeci">virtual int flush()</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:127</div></div>
<div class="ttc" id="classObs__Calibration_html"><div class="ttname"><a href="classObs__Calibration.html">Obs_Calibration</a></div><div class="ttdef"><b>Definition:</b> Obs_Calibration.hpp:15</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html_a0b43e883b8bd411b2e1cddb4f0822070"><div class="ttname"><a href="classDriver__Obs__Serial.html#a0b43e883b8bd411b2e1cddb4f0822070">Driver_Obs_Serial::send</a></div><div class="ttdeci">virtual int send(const char *cmd)</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:92</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__Obs__Serial_html_a8d0c93300cfe83ceb28acb92e24e7d35"><div class="ttname"><a href="classDriver__Obs__Serial.html#a8d0c93300cfe83ceb28acb92e24e7d35">Driver_Obs_Serial::set_term</a></div><div class="ttdeci">virtual int set_term(const char *term, int termlen)</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:138</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_a1ae4f672f4b07affbacc873689f3e195"><div class="ttname"><a href="classdriver__obs.html#a1ae4f672f4b07affbacc873689f3e195">driver_obs::cal</a></div><div class="ttdeci">Obs_Calibration * cal</div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:33</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html_ad762a0a87fdb613ba2093a71943ca1f5"><div class="ttname"><a href="classDriver__Obs__Serial.html#ad762a0a87fdb613ba2093a71943ca1f5">Driver_Obs_Serial::receive_raw</a></div><div class="ttdeci">virtual int receive_raw(char *buf, int buflen, double timeout)</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:58</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html_ad4696c27dc523f22f290ea59c3473b29"><div class="ttname"><a href="classDriver__Obs__Serial.html#ad4696c27dc523f22f290ea59c3473b29">Driver_Obs_Serial::receive</a></div><div class="ttdeci">virtual int receive(char *buf, int buflen, double timeout)</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:69</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html_acef77d2fabb1ba4164a9c3756a2fdece"><div class="ttname"><a href="classDriver__Obs__Serial.html#acef77d2fabb1ba4164a9c3756a2fdece">Driver_Obs_Serial::waitanswer</a></div><div class="ttdeci">int waitanswer(double timeout)</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:116</div></div>
<div class="ttc" id="classdriver__obs_html"><div class="ttname"><a href="classdriver__obs.html">driver_obs</a></div><div class="ttdef"><b>Definition:</b> driver_obs.hpp:20</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html_ab9cccc2f51d50467bebe9fe6ad5ef88e"><div class="ttname"><a href="classDriver__Obs__Serial.html#ab9cccc2f51d50467bebe9fe6ad5ef88e">Driver_Obs_Serial::set_baud</a></div><div class="ttdeci">virtual int set_baud(char *init_chars[], int init_chars_num)</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:192</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_a2522a301305c0971e68e744cbd1d2866"><div class="ttname"><a href="classDriver__Obs__Serial.html#a2522a301305c0971e68e744cbd1d2866">Driver_Obs_Serial::Driver_Obs_Serial</a></div><div class="ttdeci">Driver_Obs_Serial(std::string port, buffer_obs *buffer)</div><div class="ttdef"><b>Definition:</b> Driver_Obs_Serial.cpp:20</div></div>
<div class="ttc" id="classDriver__Obs__Serial_html_abb9dc6a9c601f4e261120b51c8fa9ede"><div class="ttname"><a href="classDriver__Obs__Serial.html#abb9dc6a9c601f4e261120b51c8fa9ede">Driver_Obs_Serial::stop</a></div><div class="ttdeci">virtual int stop()=0</div></div>
</div><!-- fragment --></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.9.1
</small></address>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>My Project: include/Filter_Obs.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">My Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Filter_Obs.hpp</div> </div>
</div><!--header-->
<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"> * Filter_Obs.hpp</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Created on: Jun 7, 2016</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Author: mors</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;</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef INCLUDE_FILTER_OBS_HPP_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define INCLUDE_FILTER_OBS_HPP_</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="preprocessor">#include &lt;buffer_obs.hpp&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classFilter__Obs.html"> 13</a></span>&#160;<span class="keyword">class </span><a class="code" href="classFilter__Obs.html">Filter_Obs</a> {</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;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; <a class="code" href="classFilter__Obs.html">Filter_Obs</a>();</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="classFilter__Obs.html">Filter_Obs</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; <span class="comment">//</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="comment">// Public Methods</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="comment">//</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;<span class="keyword">public</span>:</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="keywordtype">int</span> median(<a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_in, <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_out,</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <a class="code" href="classdata__obs.html">data_obs</a>* data, <a class="code" href="classdata__obs.html">data_obs</a>* data0, <span class="keywordtype">double</span> freq_out);</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="keywordtype">int</span> median_odd_vec(<a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_in,</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_out, <span class="keywordtype">int</span> points, <span class="keywordtype">int</span> downsample);</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="keywordtype">int</span> gaussian_odd_vec(<a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_in,</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_out, <span class="keywordtype">double</span> cutoff, <span class="keywordtype">int</span> points);</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; <span class="keywordtype">int</span> <a class="code" href="classFilter__Obs.html#a4e297e27c26a572f39327152552ce9ab">fir_window_vec</a>(<a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_in,</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_out, std::vector &lt;double&gt;* win,</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">int</span> downsample=1);</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; <span class="keywordtype">int</span> lowpass_PLASMON_1Hz(<a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_in,</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="classbuffer__obs.html">buffer_obs</a>* buffer_out, <span class="keywordtype">double</span> freq_in);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;};</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* INCLUDE_FILTER_OBS_HPP_ */</span><span class="preprocessor"></span></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="classFilter__Obs_html"><div class="ttname"><a href="classFilter__Obs.html">Filter_Obs</a></div><div class="ttdef"><b>Definition:</b> Filter_Obs.hpp:13</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="classFilter__Obs_html_a4e297e27c26a572f39327152552ce9ab"><div class="ttname"><a href="classFilter__Obs.html#a4e297e27c26a572f39327152552ce9ab">Filter_Obs::fir_window_vec</a></div><div class="ttdeci">int fir_window_vec(buffer_obs *buffer_in, buffer_obs *buffer_out, std::vector&lt; double &gt; *win, int downsample=1)</div><div class="ttdef"><b>Definition:</b> Filter_Obs.cpp:127</div></div>
</div><!-- fragment --></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.9.1
</small></address>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>My Project: include/Obs_Calibration.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">My Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Obs_Calibration.hpp</div> </div>
</div><!--header-->
<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>