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

📄 classcanopen.html

📁 美国COPLEY驱动器,程序开发工具之一.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to an error object, or NULL on success.</dd></dl><p>Definition at line <a class="el" href="CanOpen_8cpp-source.html#l00133">133</a> of file <a class="el" href="CanOpen_8cpp-source.html">CanOpen.cpp</a>.    </td>  </tr></table><a class="anchor" name="a2"></a><!-- doxytag: member="CanOpen::Open" ref="a2" args="(CanInterface &amp;can)" --><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">const <a class="el" href="classError.html">Error</a> * Open           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classCanInterface.html">CanInterface</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>canRef</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>Open the CANopen network. <p>This function performs the one time initialization necessary to communication via the CANopen network. It should be the first function called for the CANopen object.<p>All configurable settings will be set to their defaults when the CanOpen object is opened using this method. For a list of CanOpen object settings and their default values, please see the <a class="el" href="classCanOpenSettings.html">CanOpenSettings</a> object.<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>canRef</em>&nbsp;</td><td>A reference to the CAN interface object that will be used for all low level communication over the network.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to an error object, or NULL on success.</dd></dl><p>Definition at line <a class="el" href="CanOpen_8cpp-source.html#l00108">108</a> of file <a class="el" href="CanOpen_8cpp-source.html">CanOpen.cpp</a>.    </td>  </tr></table><a class="anchor" name="a8"></a><!-- doxytag: member="CanOpen::PreOpNode" ref="a8" args="(int nodeID=0)" --><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">const <a class="el" href="classError.html">Error</a> * PreOpNode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>nodeID</em> = <code>0</code>          </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>Send a network management message to put the specified node in pre-operational state. <p>All nodes are made pre-operational if the passed node ID is zero. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>nodeID</em>&nbsp;</td><td>The ID of the node to make pre-operational. Zero for all nodes. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to an error object, or NULL on success.</dd></dl><p>Definition at line <a class="el" href="CanOpen_8cpp-source.html#l00214">214</a> of file <a class="el" href="CanOpen_8cpp-source.html">CanOpen.cpp</a>.    </td>  </tr></table><a class="anchor" name="a7"></a><!-- doxytag: member="CanOpen::ResetComm" ref="a7" args="(int nodeID=0)" --><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">const <a class="el" href="classError.html">Error</a> * ResetComm           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>nodeID</em> = <code>0</code>          </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>Send a network management message to reset the communications of the specified node. <p>All nodes have their communications reset if the passed node ID is zero. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>nodeID</em>&nbsp;</td><td>The ID of the node to reset, or zero for all nodes. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to an error object, or NULL on success.</dd></dl><p>Definition at line <a class="el" href="CanOpen_8cpp-source.html#l00234">234</a> of file <a class="el" href="CanOpen_8cpp-source.html">CanOpen.cpp</a>.    </td>  </tr></table><a class="anchor" name="a6"></a><!-- doxytag: member="CanOpen::ResetNode" ref="a6" args="(int nodeID=0)" --><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">const <a class="el" href="classError.html">Error</a> * ResetNode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>nodeID</em> = <code>0</code>          </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>Send a network management message to reset the specified node. <p>All nodes are reset if the passed node ID is zero. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>nodeID</em>&nbsp;</td><td>The ID of the node to reset, or zero for all nodes. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to an error object, or NULL on success.</dd></dl><p>Definition at line <a class="el" href="CanOpen_8cpp-source.html#l00224">224</a> of file <a class="el" href="CanOpen_8cpp-source.html">CanOpen.cpp</a>.    </td>  </tr></table><a class="anchor" name="a12"></a><!-- doxytag: member="CanOpen::SetSynchProducer" ref="a12" args="(int16 nodeID)" --><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 SetSynchProducer           </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>nodeID</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set the node ID of the synch producer for this network. <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>nodeID</em>&nbsp;</td><td>The new synch producer node ID, or 0 for none. </td></tr>  </table></dl><p>Definition at line <a class="el" href="CML__CanOpen_8h-source.html#l00158">158</a> of file <a class="el" href="CML__CanOpen_8h-source.html">CML_CanOpen.h</a>.    </td>  </tr></table><a class="anchor" name="a9"></a><!-- doxytag: member="CanOpen::StartNode" ref="a9" args="(int nodeID=0)" --><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">const <a class="el" href="classError.html">Error</a> * StartNode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>nodeID</em> = <code>0</code>          </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>Send a network management message to start the specified node. <p>All nodes are started if the passed node ID is zero. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>nodeID</em>&nbsp;</td><td>The ID of the node to started, or zero for all nodes. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to an error object, or NULL on success.</dd></dl><p>Definition at line <a class="el" href="CanOpen_8cpp-source.html#l00194">194</a> of file <a class="el" href="CanOpen_8cpp-source.html">CanOpen.cpp</a>.    </td>  </tr></table><a class="anchor" name="a10"></a><!-- doxytag: member="CanOpen::StopNode" ref="a10" args="(int nodeID=0)" --><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">const <a class="el" href="classError.html">Error</a> * StopNode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>nodeID</em> = <code>0</code>          </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>Send a network management message to stop the specified node. <p>All nodes are stopped if the passed node ID is zero. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>nodeID</em>&nbsp;</td><td>The ID of the node to stop, or zero for all nodes. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to an error object, or NULL on success.</dd></dl><p>Definition at line <a class="el" href="CanOpen_8cpp-source.html#l00204">204</a> of file <a class="el" href="CanOpen_8cpp-source.html">CanOpen.cpp</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="CML__CanOpen_8h-source.html">CML_CanOpen.h</a><li><a class="el" href="CanOpen_8cpp-source.html">CanOpen.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -