⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cml__filter_8h-source.html

📁 美国COPLEY驱动器,程序开发工具之一.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Copley Motion Library: CML_Filter.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.4 --><div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div><div class="nav"><a class="el" href="dir_000001.html">inc</a></div><h1>CML_Filter.h</h1><a href="CML__Filter_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/************************************************************/</span><a name="l00002"></a>00002 <span class="comment">/*                                                          */</span><a name="l00003"></a>00003 <span class="comment">/*  Copley Motion Libraries                                 */</span><a name="l00004"></a>00004 <span class="comment">/*                                                          */</span><a name="l00005"></a>00005 <span class="comment">/*  Author: Stephen Glow                                    */</span><a name="l00006"></a>00006 <span class="comment">/*                                                          */</span><a name="l00007"></a>00007 <span class="comment">/*  Copyright (c) 2002-2005 Copley Controls Corp.           */</span><a name="l00008"></a>00008 <span class="comment">/*                          http://www.copleycontrols.com   */</span><a name="l00009"></a>00009 <span class="comment">/*                                                          */</span><a name="l00010"></a>00010 <span class="comment">/************************************************************/</span><a name="l00011"></a>00011 <span class="comment"></span><a name="l00012"></a>00012 <span class="comment">/** \file</span><a name="l00013"></a>00013 <span class="comment"></span><a name="l00014"></a>00014 <span class="comment">This file defines the Filter object.</span><a name="l00015"></a>00015 <span class="comment"></span><a name="l00016"></a>00016 <span class="comment">The Filter object represents a two pole filter structure used</span><a name="l00017"></a>00017 <span class="comment">in various locations within the amplifier.</span><a name="l00018"></a>00018 <span class="comment"></span><a name="l00019"></a>00019 <span class="comment">*/</span><a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="preprocessor">#ifndef _DEF_INC_FILTER</span><a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _DEF_INC_FILTER</span><a name="l00023"></a>00023 <span class="preprocessor"></span><a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="CML__Settings_8h.html">CML_Settings.h</a>"</span><a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="CML__Utils_8h.html">CML_Utils.h</a>"</span><a name="l00026"></a>00026 <a name="l00027"></a>00027 <a class="code" href="CML__Settings_8h.html#a11">CML_NAMESPACE_START</a>()<a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="comment">/***************************************************************************/</span><span class="comment"></span><a name="l00030"></a>00030 <span class="comment">/**</span><a name="l00031"></a>00031 <span class="comment">Generic filter structure.  This structure holds the coefficients used by the</span><a name="l00032"></a>00032 <span class="comment">amplifier in various configurable filters.</span><a name="l00033"></a>00033 <span class="comment">*/</span><a name="l00034"></a>00034 <span class="comment">/***************************************************************************/</span><a name="l00035"></a><a class="code" href="classFilter.html">00035</a> class <a class="code" href="classFilter.html">Filter</a><a name="l00036"></a>00036 {<a name="l00037"></a>00037    <span class="keyword">public</span>:<span class="comment"></span><a name="l00038"></a>00038 <span class="comment">      /// These three words hold information about the filter.  They are </span><a name="l00039"></a>00039 <span class="comment">      /// presently reserved for use by the CME program.</span><a name="l00040"></a><a class="code" href="classFilter.html#o0">00040</a> <span class="comment"></span>      <a class="code" href="CML__Utils_8h.html#a8">uint16</a> info[3];<a name="l00041"></a>00041 <span class="comment"></span><a name="l00042"></a>00042 <span class="comment">      /// Filter coefficients</span><a name="l00043"></a><a class="code" href="classFilter.html#o5">00043</a> <span class="comment"></span>      <a class="code" href="CML__Utils_8h.html#a7">int16</a> a0,a1,a2,b1,b2;<a name="l00044"></a>00044 <span class="comment"></span><a name="l00045"></a>00045 <span class="comment">      /// Scaling factor for coefficients</span><a name="l00046"></a><a class="code" href="classFilter.html#o6">00046</a> <span class="comment"></span>      <a class="code" href="CML__Utils_8h.html#a7">int16</a> k;<a name="l00047"></a>00047 <a name="l00048"></a>00048    <span class="keyword">public</span>:<a name="l00049"></a>00049       Filter( <span class="keywordtype">void</span> );<a name="l00050"></a>00050       <span class="keywordtype">void</span> toBytes( <a class="code" href="CML__Utils_8h.html#a2">byte</a> data[] );<a name="l00051"></a>00051       <span class="keywordtype">void</span> fromBytes( <a class="code" href="CML__Utils_8h.html#a2">byte</a> data[] );<a name="l00052"></a>00052       <span class="keywordtype">void</span> fromWords( <a class="code" href="CML__Utils_8h.html#a7">int16</a> data[] );<a name="l00053"></a>00053 };<a name="l00054"></a>00054 <a name="l00055"></a>00055 <a class="code" href="CML__Settings_8h.html#a12">CML_NAMESPACE_END</a>()<a name="l00056"></a>00056 <a name="l00057"></a>00057 #endif<a name="l00058"></a>00058 </pre></div><hr><address style="align: right;"><small>Copley Motion Library, Copyright (c) 2002-2003<a href="http://www.copleycontrols.com"><img src="CCC_logo.gif" alt="Copley Controls Corp." align="middle" border=0 ></a></small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -