📄 cpconst_h.html
字号:
<HTML><HEAD><TITLE>cpconst.h File Reference</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 File Reference</h1>CANpie constants, structures and enumerations. <a href="#_details">More...</a><p><code>#include "compiler.h"</code><br><code>#include "<a class="el" href="cpconfig_h-source.html">cpconfig.h</a>"</code><br><p><a href="cpconst_h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Data Structures</h2></td></tr><tr><td nowrap align=right valign=top>struct </td><td valign=bottom><b>CpStruct_BitTimingValue</b></td></tr><tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="struct_CpStruct_CAN.html">CpStruct_CAN</a></td></tr><tr><td> </td><td><font size=-1><em>CAN message structure.</em> <a href="struct_CpStruct_CAN.html#_details">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="struct_CpStruct_HDI.html">CpStruct_HDI</a></td></tr><tr><td> </td><td><font size=-1><em>Hardware description interface.</em> <a href="struct_CpStruct_HDI.html#_details">More...</a><em></em></font><br><br></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cpconst_h.html#a6">CP_MASK_STD_FRAME</a> 0x000007FF</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cpconst_h.html#a7">CP_MASK_EXT_FRAME</a> 0x1FFFFFFF</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cpconst_h.html#a8">CP_MASK_EXT_BIT</a> 0x80000000</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cpconst_h.html#a9">CP_MASK_RTR_BIT</a> 0x40000000</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cpconst_h.html#a10">CP_MASK_DLC_BITS</a> 0x0000000F</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cpconst_h.html#a11">CP_MASK_BUF_BITS</a> 0x000000F0</td></tr><tr><td colspan=2><br><h2>Enumerations</h2></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a109">CpErr</a> { <br> <a class="el" href="cpconst_h.html#a109a12">CpErr_OK</a> = 0, <br> <a class="el" href="cpconst_h.html#a109a13">CpErr_GENERIC</a>, <br> <a class="el" href="cpconst_h.html#a109a14">CpErr_HARDWARE</a>, <br> <a class="el" href="cpconst_h.html#a109a15">CpErr_INIT_FAIL</a>, <br> <a class="el" href="cpconst_h.html#a109a16">CpErr_INIT_READY</a>, <br> <a class="el" href="cpconst_h.html#a109a17">CpErr_INIT_MISSING</a>, <br> <a class="el" href="cpconst_h.html#a109a18">CpErr_RCV_EMPTY</a>, <br> <a class="el" href="cpconst_h.html#a109a19">CpErr_OVERRUN</a>, <br> <a class="el" href="cpconst_h.html#a109a20">CpErr_TRM_FULL</a>, <br> <a class="el" href="cpconst_h.html#a109a21">CpErr_CAN_MESSAGE</a> = 10, <br> <a class="el" href="cpconst_h.html#a109a22">CpErr_CAN_ID</a>, <br> <a class="el" href="cpconst_h.html#a109a23">CpErr_FIFO_EMPTY</a> = 20, <br> <a class="el" href="cpconst_h.html#a109a24">CpErr_FIFO_WAIT</a>, <br> <a class="el" href="cpconst_h.html#a109a25">CpErr_FIFO_FULL</a>, <br> <a class="el" href="cpconst_h.html#a109a26">CpErr_FIFO_SIZE</a>, <br> <a class="el" href="cpconst_h.html#a109a27">CpErr_BUS_PASSIVE</a> = 30, <br> <a class="el" href="cpconst_h.html#a109a28">CpErr_BUS_OFF</a>, <br> <a class="el" href="cpconst_h.html#a109a29">CpErr_BUS_WARNING</a>, <br> <a class="el" href="cpconst_h.html#a109a30">CpErr_CHANNEL</a> = 40, <br> <a class="el" href="cpconst_h.html#a109a31">CpErr_REGISTER</a>, <br> <a class="el" href="cpconst_h.html#a109a32">CpErr_BAUDRATE</a>, <br> <a class="el" href="cpconst_h.html#a109a33">CpErr_NOT_SUPPORTED</a> = 50<br> }</td></tr><tr><td> </td><td><font size=-1><em>CANpie Error codes.</em> <a href="#a109">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a110">CP_CC</a> { <br> <a class="el" href="cpconst_h.html#a110a34">CP_CC_82C200</a> = 0, <br> <a class="el" href="cpconst_h.html#a110a35">CP_CC_SJA1000</a>, <br> <a class="el" href="cpconst_h.html#a110a36">CP_CC_80C591</a>, <br> <a class="el" href="cpconst_h.html#a110a37">CP_CC_80C592</a>, <br> <a class="el" href="cpconst_h.html#a110a38">CP_CC_C505</a> = 20, <br> <a class="el" href="cpconst_h.html#a110a39">CP_CC_C515</a>, <br> <a class="el" href="cpconst_h.html#a110a40">CP_CC_C161</a>, <br> <a class="el" href="cpconst_h.html#a110a41">CP_CC_C164</a>, <br> <a class="el" href="cpconst_h.html#a110a42">CP_CC_C167</a>, <br> <a class="el" href="cpconst_h.html#a110a43">CP_CC_81C90</a>, <br> <a class="el" href="cpconst_h.html#a110a44">CP_CC_81C91</a>, <br> <a class="el" href="cpconst_h.html#a110a45">CP_CC_AN82527</a> = 40, <br> <a class="el" href="cpconst_h.html#a110a46">CP_CC_AN87C196CA</a>, <br> <a class="el" href="cpconst_h.html#a110a47">CP_CC_AN87C196CB</a>, <br> <a class="el" href="cpconst_h.html#a110a48">CP_CC_68HC05</a> = 60, <br> <a class="el" href="cpconst_h.html#a110a49">CP_CC_68HC08</a>, <br> <a class="el" href="cpconst_h.html#a110a50">CP_CC_68HC912</a>, <br> <a class="el" href="cpconst_h.html#a110a51">CP_CC_MC68376</a>, <br> <a class="el" href="cpconst_h.html#a110a52">CP_CC_MPC555</a>, <br> <a class="el" href="cpconst_h.html#a110a53">CP_CC_MCP2510</a> = 80<br> }</td></tr><tr><td> </td><td><font size=-1><em>CAN controller identification numbers.</em> <a href="#a110">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a111">CP_FIFO</a> { <br> <b>CP_FIFO_RCV</b> = 0, <br> <b>CP_FIFO_TRM</b><br> }</td></tr><tr><td> </td><td><font size=-1><em>FIFO Buffer numbers.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a112">CP_CALLBACK</a> { <br> <a class="el" href="cpconst_h.html#a112a56">CP_CALLBACK_PROCESSED</a> = 0, <br> <a class="el" href="cpconst_h.html#a112a57">CP_CALLBACK_PUSH_FIFO</a><br> }</td></tr><tr><td> </td><td><font size=-1><em>Callback Return Codes.</em> <a href="#a112">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a113">CP_BAUD</a> { <br> <a class="el" href="cpconst_h.html#a113a58">CP_BAUD_10K</a> = 0, <br> <a class="el" href="cpconst_h.html#a113a59">CP_BAUD_20K</a>, <br> <a class="el" href="cpconst_h.html#a113a60">CP_BAUD_50K</a>, <br> <a class="el" href="cpconst_h.html#a113a61">CP_BAUD_100K</a>, <br> <a class="el" href="cpconst_h.html#a113a62">CP_BAUD_125K</a>, <br> <a class="el" href="cpconst_h.html#a113a63">CP_BAUD_250K</a>, <br> <a class="el" href="cpconst_h.html#a113a64">CP_BAUD_500K</a>, <br> <a class="el" href="cpconst_h.html#a113a65">CP_BAUD_800K</a>, <br> <a class="el" href="cpconst_h.html#a113a66">CP_BAUD_1M</a><br> }</td></tr><tr><td> </td><td><font size=-1><em>Fixed baudrates.</em> <a href="#a113">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a114">CP_CHANNEL</a> { <br> <b>CP_CHANNEL_1</b> = 0, <br> <b>CP_CHANNEL_2</b>, <br> <b>CP_CHANNEL_3</b>, <br> <b>CP_CHANNEL_4</b>, <br> <b>CP_CHANNEL_5</b>, <br> <b>CP_CHANNEL_6</b>, <br> <b>CP_CHANNEL_7</b>, <br> <b>CP_CHANNEL_8</b><br> }</td></tr><tr><td> </td><td><font size=-1><em>Channel definition.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a115">CP_MODE</a> { <br> <a class="el" href="cpconst_h.html#a115a75">CP_MODE_STOP</a> = 0, <br> <a class="el" href="cpconst_h.html#a115a76">CP_MODE_START</a>, <br> <a class="el" href="cpconst_h.html#a115a77">CP_MODE_AUTO_BAUD</a>, <br> <a class="el" href="cpconst_h.html#a115a78">CP_MODE_SLEEP</a><br> }</td></tr><tr><td> </td><td><font size=-1><em>Mode of CAN controller.</em> <a href="#a115">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a116">CP_STATE</a> { <br> <a class="el" href="cpconst_h.html#a116a79">CP_STATE_ACTIVE</a> = 0, <br> <a class="el" href="cpconst_h.html#a116a80">CP_STATE_STOPPED</a>, <br> <a class="el" href="cpconst_h.html#a116a81">CP_STATE_SLEEPING</a>, <br> <a class="el" href="cpconst_h.html#a116a82">CP_STATE_BUS_WARN</a> = 6, <br> <a class="el" href="cpconst_h.html#a116a83">CP_STATE_BUS_OFF</a>, <br> <a class="el" href="cpconst_h.html#a116a84">CP_STATE_PHY_FAULT</a> = 10, <br> <a class="el" href="cpconst_h.html#a116a85">CP_STATE_PHY_H</a>, <br> <a class="el" href="cpconst_h.html#a116a86">CP_STATE_PHY_L</a>, <br> <b>CP_STATE_ERR_BIT</b> = 0x10, <br> <b>CP_STATE_ERR_STUFF</b> = 0x20, <br> <b>CP_STATE_ERR_FORM</b> = 0x30, <br> <b>CP_STATE_ERR_CRC</b> = 0x40, <br> <b>CP_STATE_ERR_ACK</b> = 0x50<br> }</td></tr><tr><td> </td><td><font size=-1><em>State of CAN controller.</em> <a href="#a116">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a117">CP_BUFFER</a> { <br> <b>CP_BUFFER_1</b> = 1, <br> <b>CP_BUFFER_2</b>, <br> <b>CP_BUFFER_3</b>, <br> <b>CP_BUFFER_4</b>, <br> <b>CP_BUFFER_5</b>, <br> <b>CP_BUFFER_6</b>, <br> <b>CP_BUFFER_7</b>, <br> <b>CP_BUFFER_8</b>, <br> <b>CP_BUFFER_9</b>, <br> <b>CP_BUFFER_10</b>, <br> <b>CP_BUFFER_11</b>, <br> <b>CP_BUFFER_12</b>, <br> <b>CP_BUFFER_13</b>, <br> <b>CP_BUFFER_14</b>, <br> <b>CP_BUFFER_15</b><br> }</td></tr><tr><td> </td><td><font size=-1><em>Buffer definition.</em> <a href="#a117">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="cpconst_h.html#a118">CP_BUFFER_DIR</a> { <br> <a class="el" href="cpconst_h.html#a118a107">CP_BUFFER_DIR_RX</a> = 0, <br> <a class="el" href="cpconst_h.html#a118a108">CP_BUFFER_DIR_TX</a><br> }</td></tr><tr><td> </td><td><font size=-1><em>Buffer direction definition.</em> <a href="#a118">More...</a><em></em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>CANpie constants, structures and enumerations.<p> <p> This file holds constants and structures used within CANpie.<p><hr><h2>Define Documentation</h2><a name="a11" doxytag="cpconst.h::CP_MASK_BUF_BITS"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> #define CP_MASK_BUF_BITS 0x000000F0 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -