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

📄 cpmsg_h-source.html

📁 Controller Area Network Programming Interface Environment Ver0.8。 CanPie版本0.8. CAN总线通讯编程接口源代码。
💻 HTML
字号:
<HTML><HEAD><TITLE>cpmsg.h Source File</TITLE><LINK HREF="micro.css" REL="stylesheet" TYPE="text/css"></HEAD><BODY BGCOLOR="#FFFFFF"><a name="PageTop"></a><!------ Document Header -------------------------------------------><table border="0" cellspacing="0" cellpadding="0"><tr><td valign="bottom"><img src="pictures/maphead.gif" vspace="0" border="0" height="20"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td valign="bottom"><a href="index.html"><img src="pictures/button_index.gif" vspace="0" border="0" height="25"></a></td><td valign="bottom"><a href="files.html"><img src="pictures/button_files.gif" vspace="0" border="0" height="25"></a></td><td valign="bottom"><a href="globals.html"><img src="pictures/button_funcs.gif" vspace="0" border="0" height="25"></a></td><td valign="bottom" width="80">&nbsp;</td><td valign="bottom"><a href="annotated.html"><img src="pictures/button_structs.gif" vspace="0" border="0" height="25"></a></td><td valign="bottom"><a href="functions.html"><img src="pictures/button_members.gif" vspace="0" border="0" height="25"></a></td></tr></table><hr noshade width=680 size=1 align=left><!------ Document Start --------------------------------------------><table width=680><tr><td><!-- Generated by Doxygen 1.2.6 --><h1>cpmsg.h</h1><a href="cpmsg_h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*****************************************************************************\</font>00002 <font class="comment">*  CANpie                                                                     *</font>00003 <font class="comment">*                                                                             *</font>00004 <font class="comment">*  File        : cpmsg.h                                                      *</font>00005 <font class="comment">*  Description : This file supplies some support functions for access of the  *</font>00006 <font class="comment">*                "CpStruct_CAN" message structure. It is recommended to use   *</font>00007 <font class="comment">*                these functions and not to access the structure directly in  *</font>00008 <font class="comment">*                the application.                                             *</font>00009 <font class="comment">*  Author      : Uwe Koppe                                                    *</font>00010 <font class="comment">*  e-mail      : koppe@microcontrol.net                                       *</font>00011 <font class="comment">*                                                                             *</font>00012 <font class="comment">* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *</font>00013 <font class="comment">*                                                                             *</font>00014 <font class="comment">*   This program is free software; you can redistribute it and/or modify      *</font>00015 <font class="comment">*   it under the terms of the GNU General Public License as published by      *</font>00016 <font class="comment">*   the Free Software Foundation; either version 2 of the License, or         *</font>00017 <font class="comment">*   (at your option) any later version.                                       *</font>00018 <font class="comment">*                                                                             *</font>00019 <font class="comment">* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *</font>00020 <font class="comment">*                                                                             *</font>00021 <font class="comment">*  History                                                                    *</font>00022 <font class="comment">*  Vers.    Date        Comment                                         Aut.  *</font>00023 <font class="comment">*  -----    ----------  ---------------------------------------------   ----  *</font>00024 <font class="comment">*  0.1      09.09.1999  Initial version                                 UK    *</font>00025 <font class="comment">*  0.2                  - no changes -                                        *</font>00026 <font class="comment">*  0.3                  - no changes -                                        *</font>00027 <font class="comment">*  0.4                  - no changes -                                        *</font>00028 <font class="comment">*  0.5                  - no changes -                                        *</font>00029 <font class="comment">*  0.6      15.06.2000  added online documentation                      UK    *</font>00030 <font class="comment">*                       set to CANpie release 0.6                             *</font>00031 <font class="comment">*                                                                             *</font>00032 <font class="comment">\*****************************************************************************/</font>00033 00034 00035 00036 <font class="preprocessor">#ifndef  _CANpie_MessageSupport_</font>00037 <font class="preprocessor"></font><font class="preprocessor">#define  _CANpie_MessageSupport_</font>00038 <font class="preprocessor"></font>00039 00040 <font class="preprocessor">#include "<a class="code" href="cpconst_h.html">cpconst.h</a>"</font>00041 00042 <font class="comment">/*-----------------------------------------------------------------------------</font>00043 <font class="comment">**    Online documentation for Doxygen</font>00044 <font class="comment">*/</font>00045 00056 00057 00058 <font class="comment">/*-------------------------------------------------------------------------</font>00059 <font class="comment">** Function prototypes</font>00060 <font class="comment">**</font>00061 <font class="comment">*/</font>00062 00072 Cp_EXPORT _U16 Cp_PREFIX <a class="code" href="cpmsg_h.html#a0">CpMsgGetStdId</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg);00073 00074 00086 Cp_EXPORT <font class="keywordtype">void</font> Cp_PREFIX <a class="code" href="cpmsg_h.html#a1">CpMsgSetStdId</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg, _U16 id, _BIT rtr);00087 00088 00098 Cp_EXPORT _U32 Cp_PREFIX <a class="code" href="cpmsg_h.html#a2">CpMsgGetExtId</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg);00099 00100 00112 Cp_EXPORT <font class="keywordtype">void</font> Cp_PREFIX <a class="code" href="cpmsg_h.html#a3">CpMsgSetExtId</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg, _U32 id, _BIT rtr);00113 00114 00124 Cp_EXPORT _U08 Cp_PREFIX <a class="code" href="cpmsg_h.html#a4">CpMsgGetDlc</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg);00125 00126 00136 Cp_EXPORT <font class="keywordtype">void</font> Cp_PREFIX <a class="code" href="cpmsg_h.html#a5">CpMsgSetDlc</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg, _U08 dlc);00137 00138 00151 Cp_EXPORT _U08 Cp_PREFIX <a class="code" href="cpmsg_h.html#a6">CpMsgGetData</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg, _U08 byteNum);00152 00153 00166 Cp_EXPORT <font class="keywordtype">void</font> Cp_PREFIX <a class="code" href="cpmsg_h.html#a7">CpMsgSetData</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg, _U08 byteNum, _U08 byteVal);00167 00168 00185 Cp_EXPORT <font class="keywordtype">void</font> Cp_PREFIX <a class="code" href="cpmsg_h.html#a8">CpMsgClear</a>(<a class="code" href="struct_CpStruct_CAN.html">CpStruct_CAN</a> * msg);00186 00187 <font class="preprocessor">#endif   </font><font class="comment">/* _CANpie_MessageSupport_ */</font></pre></div></td></tr></table><!------ Document footer -------------------------------------------><p><br><map name="FooterMap"><area shape=rect coords="  1, 1, 100, 20" href="#PageTop"><area shape=rect coords="400, 1, 500, 20" href="mailto:koppe@microcontrol.net?Subject=CANpie"></map><table width="600" border="0" bgcolor="#FFFFFF" cellspacing="0"><tr><td><IMG src="pictures/mapfoot.gif" border="0" usemap="#FooterMap"></td></tr><!------ print modification date -----------------------------------><tr><td align="right"><h4>Last modified: 10 Jul 2001</h4></td></tr></table>	</body></html>

⌨️ 快捷键说明

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