📄 classpmap.html
字号:
<td> </td> <td><p>Get the number of bits in this variable. <p><dl compact><dt><b>Returns:</b></dt><dd>The number of bits. </dd></dl><p>Definition at line <a class="el" href="CML__PDO_8h-source.html#l00130">130</a> of file <a class="el" href="CML__PDO_8h-source.html">CML_PDO.h</a>. </td> </tr></table><a class="anchor" name="a7"></a><!-- doxytag: member="Pmap::GetIndex" ref="a7" args="()" --><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> GetIndex </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the object index associated with this variable. <p><dl compact><dt><b>Returns:</b></dt><dd>The 16-bit object index. </dd></dl><p>Definition at line <a class="el" href="CML__PDO_8h-source.html#l00118">118</a> of file <a class="el" href="CML__PDO_8h-source.html">CML_PDO.h</a>. </td> </tr></table><a class="anchor" name="a8"></a><!-- doxytag: member="Pmap::GetSub" ref="a8" args="()" --><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#a2">byte</a> GetSub </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the object sub-index associated with this variable. <p><dl compact><dt><b>Returns:</b></dt><dd>The 8-bit object sub-index. </dd></dl><p>Definition at line <a class="el" href="CML__PDO_8h-source.html#l00124">124</a> of file <a class="el" href="CML__PDO_8h-source.html">CML_PDO.h</a>. </td> </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="Pmap::Init" ref="a3" args="(uint16 index, byte sub, byte bits)" --><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>* Init </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>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#a2">byte</a> </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#a2">byte</a> </td> <td class="mdname" nowrap> <em>bits</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>Initialize a generic <a class="el" href="classPDO.html">PDO</a> mapping variable. <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>index</em> </td><td>The index of the variable in the object dictionary </td></tr> <tr><td valign="top"></td><td valign="top"><em>sub</em> </td><td>The variable's sub-index in the object dictionary </td></tr> <tr><td valign="top"></td><td valign="top"><em>bits</em> </td><td>The size of the variable in bits </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__PDO_8h-source.html#l00090">90</a> of file <a class="el" href="CML__PDO_8h-source.html">CML_PDO.h</a>. </td> </tr></table><a class="anchor" name="a5"></a><!-- doxytag: member="Pmap::Set" ref="a5" args="(byte *cptr)" --><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 Set </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="CML__Utils_8h.html#a2">byte</a> * </td> <td class="mdname1" valign="top" nowrap> <em>cptr</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>Called when a transmit <a class="el" href="classPDO.html">PDO</a> is received. <p>This virtual function doesn't do anything and therefore objects of this base class should only be used for variables that are not of interest and can therefore be ignored. <p>Reimplemented in <a class="el" href="classPmapRaw.html#a3">PmapRaw</a>, <a class="el" href="classPmap32.html#a4">Pmap32</a>, <a class="el" href="classPmap24.html#a4">Pmap24</a>, <a class="el" href="classPmap16.html#a4">Pmap16</a>, and <a class="el" href="classPmap8.html#a4">Pmap8</a>.<p>Definition at line <a class="el" href="CML__PDO_8h-source.html#l00107">107</a> of file <a class="el" href="CML__PDO_8h-source.html">CML_PDO.h</a>. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="CML__PDO_8h-source.html">CML_PDO.h</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 + -