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

📄 classsdo.html

📁 美国COPLEY驱动器,程序开发工具之一.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
        <tr>          <td class="md" nowrap valign="top">const <a class="el" href="classError.html">Error</a>* Download           </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="mdname" nowrap> <em>index</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>&nbsp;</td>          <td class="mdname" nowrap> <em>sub</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#a9">int32</a>&nbsp;</td>          <td class="mdname" nowrap> <em>size</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char *&nbsp;</td>          <td class="mdname" nowrap> <em>data</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Download data using this SDO. <p>The passed array of data is downloaded to the object dictionary of a node on the CANopen network using this SDO. <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>&nbsp;</td><td>The index of the object to be downloaded. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>sub</em>&nbsp;</td><td>The sub-index of the object to be downloaded. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The number of bytes of data to be downloaded </td></tr>    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>A character array holding the data to be downloaded. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A valid CANopen error object. </dd></dl><p>Definition at line <a class="el" href="CML__SDO_8h-source.html#l00186">186</a> of file <a class="el" href="CML__SDO_8h-source.html">CML_SDO.h</a>.    </td>  </tr></table><a class="anchor" name="a4"></a><!-- doxytag: member="SDO::Download" ref="a4" args="(int16 index, int16 sub, int32 size, 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">const <a class="el" href="classError.html">Error</a> * Download           </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="mdname" nowrap> <em>index</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>&nbsp;</td>          <td class="mdname" nowrap> <em>sub</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#a9">int32</a>&nbsp;</td>          <td class="mdname" nowrap> <em>size</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#a2">byte</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>data</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Download data using this SDO. <p>The passed array of data is downloaded to the object dictionary of a node on the CANopen network using this SDO. <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>&nbsp;</td><td>The index of the object to be downloaded. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>sub</em>&nbsp;</td><td>The sub-index of the object to be downloaded. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The number of bytes of data to be downloaded </td></tr>    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>A character array holding the data to be downloaded. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A valid CANopen error object.</dd></dl><p>Definition at line <a class="el" href="SDO_8cpp-source.html#l00284">284</a> of file <a class="el" href="SDO_8cpp-source.html">SDO.cpp</a>.    </td>  </tr></table><a class="anchor" name="a28"></a><!-- doxytag: member="SDO::GetTimeout" ref="a28" 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="CML__Utils_8h.html#a9">int32</a> GetTimeout           </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><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get the timeout used with this SDO. <p><dl compact><dt><b>Returns:</b></dt><dd>The timeout in milliseconds </dd></dl><p>Definition at line <a class="el" href="CML__SDO_8h-source.html#l00287">287</a> of file <a class="el" href="CML__SDO_8h-source.html">CML_SDO.h</a>.    </td>  </tr></table><a class="anchor" name="a29"></a><!-- doxytag: member="SDO::getXmitID" ref="a29" 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="CML__Utils_8h.html#a10">uint32</a> getXmitID           </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><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return the transmit ID associated with the SDO. <p><dl compact><dt><b>Returns:</b></dt><dd>The transmit CAN ID </dd></dl><p>Definition at line <a class="el" href="CML__SDO_8h-source.html#l00291">291</a> of file <a class="el" href="CML__SDO_8h-source.html">CML_SDO.h</a>.    </td>  </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="SDO::Init" ref="a3" args="(CanOpen &amp;canOpen, uint32 xmit, uint32 recv, int32 to=2000)" --><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">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classCanOpen.html">CanOpen</a> &amp;&nbsp;</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#a10">uint32</a>&nbsp;</td>          <td class="mdname" nowrap> <em>xmit</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#a10">uint32</a>&nbsp;</td>          <td class="mdname" nowrap> <em>recv</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#a9">int32</a>&nbsp;</td>          <td class="mdname" nowrap> <em>to</em> = <code>2000</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Initialize a CANopen Service Data Object (SDO). <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>&nbsp;</td><td>The CANopen network object that this SDO is associated with </td></tr>    <tr><td valign="top"></td><td valign="top"><em>xmit</em>&nbsp;</td><td>The COB ID used when transmitting SDO frames </td></tr>    <tr><td valign="top"></td><td valign="top"><em>recv</em>&nbsp;</td><td>The COB ID used for receive frames </td></tr>    <tr><td valign="top"></td><td valign="top"><em>to</em>&nbsp;</td><td>The timeout (milliseconds) for use with this SDO. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A valid CANopen error object</dd></dl><p>Definition at line <a class="el" href="SDO_8cpp-source.html#l00103">103</a> of file <a class="el" href="SDO_8cpp-source.html">SDO.cpp</a>.    </td>  </tr></table><a class="anchor" name="a26"></a><!-- doxytag: member="SDO::NewFrame" ref="a26" args="(CanFrame &amp;frame)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">

⌨️ 快捷键说明

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