📄 cpconst_h-source.html
字号:
<HTML><HEAD><TITLE>cpconst.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"> </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>cpconst.h</h1><a href="cpconst_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 : cpconst.h *</font>00005 <font class="comment">* Description : Definitions / Constants for CANpie *</font>00006 <font class="comment">* Author : Uwe Koppe *</font>00007 <font class="comment">* e-mail : koppe@microcontrol.net *</font>00008 <font class="comment">* *</font>00009 <font class="comment">* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *</font>00010 <font class="comment">* *</font>00011 <font class="comment">* This program is free software; you can redistribute it and/or modify *</font>00012 <font class="comment">* it under the terms of the GNU General Public License as published by *</font>00013 <font class="comment">* the Free Software Foundation; either version 2 of the License, or *</font>00014 <font class="comment">* (at your option) any later version. *</font>00015 <font class="comment">* *</font>00016 <font class="comment">* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *</font>00017 <font class="comment">* *</font>00018 <font class="comment">* History *</font>00019 <font class="comment">* Vers. Date Comment Aut. *</font>00020 <font class="comment">* ----- ---------- --------------------------------------------- ---- *</font>00021 <font class="comment">* 0.1 04.12.1998 Initial version UK *</font>00022 <font class="comment">* 0.2 29.04.1999 Changed structures, new data type definitions UK *</font>00023 <font class="comment">* 0.3 - no changes - *</font>00024 <font class="comment">* 0.4 - no changes - *</font>00025 <font class="comment">* 0.5 - no changes - *</font>00026 <font class="comment">* 0.6 15.06.2000 moved defintions from cpmsg.h UK *</font>00027 <font class="comment">* set to CANpie release 0.6 *</font>00028 <font class="comment">* 0.7 06.11.2000 added new error codes UK *</font>00029 <font class="comment">* added missing buffer number *</font>00030 <font class="comment">* 0.8 15.02.2001 set to CANpie release 0.8 UK *</font>00031 <font class="comment">* *</font>00032 <font class="comment">\*****************************************************************************/</font>00033 00034 00035 <font class="preprocessor">#ifndef _CANpie_Constants_</font>00036 <font class="preprocessor"></font><font class="preprocessor">#define _CANpie_Constants_</font>00037 <font class="preprocessor"></font>00038 <font class="comment">/*-----------------------------------------------------------------------------</font>00039 <font class="comment">** Online documentation for Doxygen</font>00040 <font class="comment">*/</font>00041 00049 <font class="preprocessor">#include "compiler.h"</font> <font class="comment">// compiler definitions</font>00050 <font class="preprocessor">#include "<a class="code" href="cpconfig_h.html">cpconfig.h</a>"</font> <font class="comment">// configuration options</font>00051 00052 00053 <font class="comment">/*----------------------------------------------------------------------------*/</font><a name="l00060"></a><a class="code" href="cpconst_h.html#a109">00060</a> <font class="keyword">enum</font> CpErr {00061 00064 CpErr_OK = 0,00065 00068 CpErr_GENERIC,00069 00072 CpErr_HARDWARE,00073 00076 CpErr_INIT_FAIL,00077 00080 CpErr_INIT_READY,00081 00084 CpErr_INIT_MISSING,00085 00088 CpErr_RCV_EMPTY,00089 00092 CpErr_OVERRUN,00093 00096 CpErr_TRM_FULL,00097 00098 00101 CpErr_CAN_MESSAGE = 10,00102 00105 CpErr_CAN_ID,00106 00107 00110 CpErr_FIFO_EMPTY = 20,00111 00114 CpErr_FIFO_WAIT,00115 00118 CpErr_FIFO_FULL,00119 00122 CpErr_FIFO_SIZE,00123 00124 00127 CpErr_BUS_PASSIVE = 30,00128 00131 CpErr_BUS_OFF,00132 00135 CpErr_BUS_WARNING,00136 00137 00140 CpErr_CHANNEL = 40,00141 00144 CpErr_REGISTER,00145 00148 CpErr_BAUDRATE,00149 00150 00153 CpErr_NOT_SUPPORTED = 5000154 };00155 00156 00157 <font class="comment">/*----------------------------------------------------------------------------*/</font><a name="l00163"></a><a class="code" href="cpconst_h.html#a110">00163</a> <font class="keyword">enum</font> CP_CC {00164 00167 CP_CC_82C200 = 0,00168 00171 CP_CC_SJA1000,00172 00175 CP_CC_80C591,00176 00179 CP_CC_80C592,00180 00181 00184 CP_CC_C505 = 20,00185 00188 CP_CC_C515,00189 00192 CP_CC_C161,00193 00196 CP_CC_C164,00197 00200 CP_CC_C167,00201 00204 CP_CC_81C90,00205 00208 CP_CC_81C91,00209 00212 CP_CC_AN82527 = 40,00213 00216 CP_CC_AN87C196CA,00217 00220 CP_CC_AN87C196CB,00221 00224 CP_CC_68HC05 = 60,00225 00228 CP_CC_68HC08,00229 00232 CP_CC_68HC912,00233 00236 CP_CC_MC68376,00237 00240 CP_CC_MPC555,00241 00244 CP_CC_MCP2510 = 8000245 };00246 00247 00248 <font class="comment">/*----------------------------------------------------------------------------*/</font><a name="l00253"></a><a class="code" href="cpconst_h.html#a111">00253</a> <font class="keyword">enum</font> CP_FIFO {00254 CP_FIFO_RCV = 0,00255 CP_FIFO_TRM00256 };00257 00258 00259 <font class="comment">/*----------------------------------------------------------------------------*/</font><a name="l00283"></a><a class="code" href="cpconst_h.html#a112">00283</a> <font class="keyword">enum</font> CP_CALLBACK {00284 00288 CP_CALLBACK_PROCESSED = 0,00289 00293 CP_CALLBACK_PUSH_FIFO00294 };00295 00296 00297 <font class="comment">/*----------------------------------------------------------------------------*/</font><a name="l00305"></a><a class="code" href="cpconst_h.html#a113">00305</a> <font class="keyword">enum</font> CP_BAUD {00309 CP_BAUD_10K = 0,00310 00314 CP_BAUD_20K,00315 00319 CP_BAUD_50K,00320 00324 CP_BAUD_100K,00325 00329 CP_BAUD_125K,00330 00334 CP_BAUD_250K,00335 00339 CP_BAUD_500K,00340
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -