📄 classnode.html
字号:
<td class="mdname1" valign="top" nowrap> <em>id</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return the COB-ID of the synch message. <p>Note that if this node is producing the synch message, bit 30 will be set. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>id</em> </td><td>Where the COB-ID is returned </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>An error object. </dd></dl><p>Definition at line <a class="el" href="CML__Node_8h-source.html#l00307">307</a> of file <a class="el" href="CML__Node_8h-source.html">CML_Node.h</a>. </td> </tr></table><a class="anchor" name="a33"></a><!-- doxytag: member="Node::GetSynchPeriod" ref="a33" args="(uint32 &per)" --><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">virtual const <a class="el" href="classError.html">Error</a>* GetSynchPeriod </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a10">uint32</a> & </td> <td class="mdname1" valign="top" nowrap> <em>per</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the SYNC message interval in microseconds. <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>per</em> </td><td>Period will be returned here </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>An error object. </dd></dl><p>Definition at line <a class="el" href="CML__Node_8h-source.html#l00321">321</a> of file <a class="el" href="CML__Node_8h-source.html">CML_Node.h</a>. </td> </tr></table><a class="anchor" name="a37"></a><!-- doxytag: member="Node::GetTpdoCobID" ref="a37" args="(uint16 index)" --><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">virtual <a class="el" href="CML__Utils_8h.html#a9">int32</a> GetTpdoCobID </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a8">uint16</a> </td> <td class="mdname1" valign="top" nowrap> <em>index</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return the default COB ID value for the transmit <a class="el" href="classPDO.html">PDO</a> with the specified index. <p>Return -1 if the specified <a class="el" href="classPDO.html">PDO</a> does not have a default COB ID. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>The <a class="el" href="classPDO.html">PDO</a> index </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The default COB ID for the <a class="el" href="classPDO.html">PDO</a>, or -1 if none. </dd></dl><p>Definition at line <a class="el" href="CML__Node_8h-source.html#l00369">369</a> of file <a class="el" href="CML__Node_8h-source.html">CML_Node.h</a>. </td> </tr></table><a class="anchor" name="b1"></a><!-- doxytag: member="Node::HandleStateChange" ref="b1" args="(NodeState from, NodeState to)" --><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">virtual void HandleStateChange </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="CML__Node_8h.html#a9">NodeState</a> </td> <td class="mdname" nowrap> <em>from</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="CML__Node_8h.html#a9">NodeState</a> </td> <td class="mdname" nowrap> <em>to</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline, protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Overload this function to handle changes to the nodes state. <p>Note that the state member variable will have been changed to the new state before this function is called. <p>Reimplemented in <a class="el" href="classAmp.html#b4">Amp</a>.<p>Definition at line <a class="el" href="CML__Node_8h-source.html#l00393">393</a> of file <a class="el" href="CML__Node_8h-source.html">CML_Node.h</a>. </td> </tr></table><a class="anchor" name="a6"></a><!-- doxytag: member="Node::Init" ref="a6" args="(CanOpen &co, 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">const <a class="el" href="classError.html">Error</a> * Init </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classCanOpen.html">CanOpen</a> & </td> <td class="mdname" nowrap> <em>canOpen</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="CML__Utils_8h.html#a7">int16</a> </td> <td class="mdname" nowrap> <em>nodeID</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Initialize the CANopen Node object. <p>Note that a CANopen node object must be initialized once and only once. This function should be used to initialize the object if it was created using the default constructor.<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>canOpen</em> </td><td>The CANopen network object that this node is associated with. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nodeID</em> </td><td>The node's ID. This must range from 1 to 127 for the node to be successfully initialized. </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>Reimplemented in <a class="el" href="classAmp.html#z0_4">Amp</a>, and <a class="el" href="classIOModule.html#a4">IOModule</a>.<p>Definition at line <a class="el" href="Node_8cpp-source.html#l00112">112</a> of file <a class="el" href="Node_8cpp-source.html">Node.cpp</a>. </td> </tr></table><a class="anchor" name="a10"></a><!-- doxytag: member="Node::PdoDisable" ref="a10" args="(uint16 n, PDO &pdo)" --><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">virtual const <a class="el" href="classError.html">Error</a>* PdoDisable </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a8">uint16</a> </td> <td class="mdname" nowrap> <em>n</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="classPDO.html">PDO</a> & </td> <td class="mdname" nowrap> <em>pdo</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Disable the passed <a class="el" href="classPDO.html">PDO</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>n</em> </td><td>The slot number of the <a class="el" href="classPDO.html">PDO</a> </td></tr> <tr><td valign="top"></td><td valign="top"><em>pdo</em> </td><td>The <a class="el" href="classPDO.html">PDO</a> mapped to that slot </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>An error object </dd></dl><p>Definition at line <a class="el" href="CML__Node_8h-source.html#l00169">169</a> of file <a class="el" href="CML__Node_8h-source.html">CML_Node.h</a>. </td> </tr></table><a class="anchor" name="a9"></a><!-- doxytag: member="Node::PdoEnable" ref="a9" args="(uint16 n, PDO &pdo)" --><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -