classfilter.html

来自「美国COPLEY驱动器,程序开发工具之一.」· HTML 代码 · 共 230 行

HTML
230
字号
<!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: Filter Class Reference</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><h1>Filter Class Reference</h1><!-- doxytag: class="Filter" --><a href="classFilter-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Generic filter structure. <p>This structure holds the coefficients used by the amplifier in various configurable filters.<p><p>Definition at line <a class="el" href="CML__Filter_8h-source.html#l00035">35</a> of file <a class="el" href="CML__Filter_8h-source.html">CML_Filter.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#a0">Filter</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor for filter object.  <a href="#a0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#a1">toBytes</a> (<a class="el" href="CML__Utils_8h.html#a2">byte</a> data[])</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert the filter's coefficients to an array of 18 byte values which can then be downloaded to the amplifier.  <a href="#a1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#a2">fromBytes</a> (<a class="el" href="CML__Utils_8h.html#a2">byte</a> data[])</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load the filter coefficient structure given an array of 18 bytes of data.  <a href="#a2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#a3">fromWords</a> (<a class="el" href="CML__Utils_8h.html#a7">int16</a> data[])</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load the filter coefficient structure given an array of 9 16-bit words of data.  <a href="#a3"></a><br></td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="CML__Utils_8h.html#a8">uint16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#o0">info</a> [3]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">These three words hold information about the filter.  <a href="#o0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o1"></a><!-- doxytag: member="Filter::a0" ref="o1" args="" --><a class="el" href="CML__Utils_8h.html#a7">int16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#o1">a0</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Filter coefficients. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o2"></a><!-- doxytag: member="Filter::a1" ref="o2" args="" --><a class="el" href="CML__Utils_8h.html#a7">int16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#o2">a1</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o3"></a><!-- doxytag: member="Filter::a2" ref="o3" args="" --><a class="el" href="CML__Utils_8h.html#a7">int16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#o3">a2</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o4"></a><!-- doxytag: member="Filter::b1" ref="o4" args="" --><a class="el" href="CML__Utils_8h.html#a7">int16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#o4">b1</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o5"></a><!-- doxytag: member="Filter::b2" ref="o5" args="" --><a class="el" href="CML__Utils_8h.html#a7">int16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#o5">b2</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o6"></a><!-- doxytag: member="Filter::k" ref="o6" args="" --><a class="el" href="CML__Utils_8h.html#a7">int16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFilter.html#o6">k</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Scaling factor for coefficients. <br></td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="a0"></a><!-- doxytag: member="Filter::Filter" ref="a0" args="(void)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="classFilter.html">Filter</a>           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Default constructor for filter object. <p>Simply sets all coefficients to zero.<p>Definition at line <a class="el" href="Filter_8cpp-source.html#l00025">25</a> of file <a class="el" href="Filter_8cpp-source.html">Filter.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a2"></a><!-- doxytag: member="Filter::fromBytes" ref="a2" args="(byte data[])" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void fromBytes           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a2">byte</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>data</em>[]          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Load the filter coefficient structure given an array of 18 bytes of data. <p>This function is useful for loading the filter based on data received over the CANopen interface.<p>Definition at line <a class="el" href="Filter_8cpp-source.html#l00066">66</a> of file <a class="el" href="Filter_8cpp-source.html">Filter.cpp</a>.    </td>  </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="Filter::fromWords" ref="a3" args="(int16 data[])" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void fromWords           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a7">int16</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>data</em>[]          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Load the filter coefficient structure given an array of 9 16-bit words of data. <p>This function is useful for loading the filter based on data read from a CME-2 amplifier data file.<p>Definition at line <a class="el" href="Filter_8cpp-source.html#l00086">86</a> of file <a class="el" href="Filter_8cpp-source.html">Filter.cpp</a>.    </td>  </tr></table><a class="anchor" name="a1"></a><!-- doxytag: member="Filter::toBytes" ref="a1" args="(byte data[])" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void toBytes           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a2">byte</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>data</em>[]          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Convert the filter's coefficients to an array of 18 byte values which can then be downloaded to the amplifier. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>An array of 18+ bytes which will be filled with the converted coefficient values.</td></tr>  </table></dl><p>Definition at line <a class="el" href="Filter_8cpp-source.html#l00043">43</a> of file <a class="el" href="Filter_8cpp-source.html">Filter.cpp</a>.    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="o0"></a><!-- doxytag: member="Filter::info" ref="o0" args="[3]" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a8">uint16</a> <a class="el" href="classFilter.html#o0">info</a>[3]          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>These three words hold information about the filter. <p>They are presently reserved for use by the CME program. <p>Definition at line <a class="el" href="CML__Filter_8h-source.html#l00040">40</a> of file <a class="el" href="CML__Filter_8h-source.html">CML_Filter.h</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="CML__Filter_8h-source.html">CML_Filter.h</a><li><a class="el" href="Filter_8cpp-source.html">Filter.cpp</a></ul><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 + =
减小字号Ctrl + -
显示快捷键?