structcanframe.html

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

HTML
128
字号
<!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: CanFrame Struct 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>CanFrame Struct Reference</h1><!-- doxytag: class="CanFrame" --><a href="structCanFrame-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Low level CAN data frame. <p>This class is used to represent the basic frame of information that is passed over the CAN network.<p>A frame of CAN data consists of a message ID value (either 11 or 29 bits depending on whether standard or extended frames are in use), 0 to 8 bytes of data, and some special attributes.<p>Frame objects are passed to the <a class="el" href="classCanInterface.html#a8">CanInterface::Xmit()</a> function, and filled in by the <a class="el" href="classCanInterface.html#a7">CanInterface::Recv()</a> function.<p><p>Definition at line <a class="el" href="CML__Can_8h-source.html#l00055">55</a> of file <a class="el" href="CML__Can_8h-source.html">CML_Can.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o0"></a><!-- doxytag: member="CanFrame::type" ref="o0" args="" --><a class="el" href="CML__Can_8h.html#a3">CAN_FRAME_TYPE</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCanFrame.html#o0">type</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identifies the frame type. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="CML__Utils_8h.html#a9">int32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCanFrame.html#o1">id</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The CAN message ID.  <a href="#o1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="CML__Utils_8h.html#a2">byte</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCanFrame.html#o2">length</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gives the number of bytes of data included in the frame.  <a href="#o2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="CML__Utils_8h.html#a2">byte</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCanFrame.html#o3">data</a> [8]</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds any data sent with the frame.  <a href="#o3"></a><br></td></tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="o3"></a><!-- doxytag: member="CanFrame::data" ref="o3" args="[8]" --><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> <a class="el" href="structCanFrame.html#o3">data</a>[8]          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Holds any data sent with the frame. <p>A frame may be accompanied by 0 to 8 bytes of data. <p>Definition at line <a class="el" href="CML__Can_8h-source.html#l00072">72</a> of file <a class="el" href="CML__Can_8h-source.html">CML_Can.h</a>.    </td>  </tr></table><a class="anchor" name="o1"></a><!-- doxytag: member="CanFrame::id" ref="o1" 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#a9">int32</a> <a class="el" href="structCanFrame.html#o1">id</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The CAN message ID. <p>If bit 29 is clear, this is a standard 11 bit ID (bits 0-10 hold the ID). If bit 29 is set, this is an extended 29 bit ID (bits 0-28 hold the ID). Bits 30 and 31 are not presently used. <p>Definition at line <a class="el" href="CML__Can_8h-source.html#l00064">64</a> of file <a class="el" href="CML__Can_8h-source.html">CML_Can.h</a>.    </td>  </tr></table><a class="anchor" name="o2"></a><!-- doxytag: member="CanFrame::length" ref="o2" 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> <a class="el" href="structCanFrame.html#o2">length</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gives the number of bytes of data included in the frame. <p>The length of a frame may range from 0 to 8 bytes <p>Definition at line <a class="el" href="CML__Can_8h-source.html#l00068">68</a> of file <a class="el" href="CML__Can_8h-source.html">CML_Can.h</a>.    </td>  </tr></table><hr>The documentation for this struct was generated from the following file:<ul><li><a class="el" href="CML__Can_8h-source.html">CML_Can.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 + =
减小字号Ctrl + -
显示快捷键?