doc/doxygen/html/objdictdef_8h-source.html
changeset 388 1c1e3599d66a
parent 387 6efc85c5493e
child 389 8a46c8432c82
equal deleted inserted replaced
387:6efc85c5493e 388:1c1e3599d66a
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
       
     2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
       
     3 <title>CanFestival: include/objdictdef.h Source File</title>
       
     4 <link href="doxygen.css" rel="stylesheet" type="text/css">
       
     5 <link href="tabs.css" rel="stylesheet" type="text/css">
       
     6 </head><body>
       
     7 <!-- Generated by Doxygen 1.5.1 -->
       
     8 <div class="tabs">
       
     9   <ul>
       
    10     <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
       
    11     <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
       
    12     <li id="current"><a href="files.html"><span>Files</span></a></li>
       
    13     <li><a href="dirs.html"><span>Directories</span></a></li>
       
    14   </ul></div>
       
    15 <div class="tabs">
       
    16   <ul>
       
    17     <li><a href="files.html"><span>File&nbsp;List</span></a></li>
       
    18     <li><a href="globals.html"><span>Globals</span></a></li>
       
    19   </ul></div>
       
    20 <div class="nav">
       
    21 <a class="el" href="dir_bb27f6e70a4a8ab6966321815f15a33d.html">include</a></div>
       
    22 <h1>objdictdef.h</h1><a href="objdictdef_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
       
    23 <a name="l00002"></a>00002 <span class="comment">This file is part of CanFestival, a library implementing CanOpen Stack. </span>
       
    24 <a name="l00003"></a>00003 <span class="comment"></span>
       
    25 <a name="l00004"></a>00004 <span class="comment">Copyright (C): Edouard TISSERANT and Francis DUPIN</span>
       
    26 <a name="l00005"></a>00005 <span class="comment"></span>
       
    27 <a name="l00006"></a>00006 <span class="comment">See COPYING file for copyrights details.</span>
       
    28 <a name="l00007"></a>00007 <span class="comment"></span>
       
    29 <a name="l00008"></a>00008 <span class="comment">This library is free software; you can redistribute it and/or</span>
       
    30 <a name="l00009"></a>00009 <span class="comment">modify it under the terms of the GNU Lesser General Public</span>
       
    31 <a name="l00010"></a>00010 <span class="comment">License as published by the Free Software Foundation; either</span>
       
    32 <a name="l00011"></a>00011 <span class="comment">version 2.1 of the License, or (at your option) any later version.</span>
       
    33 <a name="l00012"></a>00012 <span class="comment"></span>
       
    34 <a name="l00013"></a>00013 <span class="comment">This library is distributed in the hope that it will be useful,</span>
       
    35 <a name="l00014"></a>00014 <span class="comment">but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
       
    36 <a name="l00015"></a>00015 <span class="comment">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
       
    37 <a name="l00016"></a>00016 <span class="comment">Lesser General Public License for more details.</span>
       
    38 <a name="l00017"></a>00017 <span class="comment"></span>
       
    39 <a name="l00018"></a>00018 <span class="comment">You should have received a copy of the GNU Lesser General Public</span>
       
    40 <a name="l00019"></a>00019 <span class="comment">License along with this library; if not, write to the Free Software</span>
       
    41 <a name="l00020"></a>00020 <span class="comment">Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
       
    42 <a name="l00021"></a>00021 <span class="comment">*/</span>
       
    43 <a name="l00022"></a>00022 
       
    44 <a name="l00023"></a>00023 <span class="preprocessor">#ifndef __objdictdef_h__</span>
       
    45 <a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define __objdictdef_h__</span>
       
    46 <a name="l00025"></a>00025 <span class="preprocessor"></span>
       
    47 <a name="l00026"></a>00026 <span class="comment">/************************* CONSTANTES **********************************/</span>
       
    48 <a name="l00032"></a><a class="code" href="objdictdef_8h.html#ed769b1b67d24f9d335f428ab6e33923">00032</a> <span class="preprocessor">#define boolean         0x01</span>
       
    49 <a name="l00033"></a><a class="code" href="objdictdef_8h.html#fe278201acd644c29f8d24f0335726a8">00033</a> <span class="preprocessor"></span><span class="preprocessor">#define int8            0x02</span>
       
    50 <a name="l00034"></a><a class="code" href="objdictdef_8h.html#c758f3869e242fa992ea36afc986ce27">00034</a> <span class="preprocessor"></span><span class="preprocessor">#define int16           0x03</span>
       
    51 <a name="l00035"></a><a class="code" href="objdictdef_8h.html#b98bc9d7e1e4d8df6f7eebb4d5998e7c">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define int32           0x04</span>
       
    52 <a name="l00036"></a><a class="code" href="objdictdef_8h.html#61bd89decb0fbe22d804bd0d33a65e87">00036</a> <span class="preprocessor"></span><span class="preprocessor">#define uint8           0x05</span>
       
    53 <a name="l00037"></a><a class="code" href="objdictdef_8h.html#b9dd3eca97609bdd809ec9ca9e0d48d2">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define uint16          0x06</span>
       
    54 <a name="l00038"></a><a class="code" href="objdictdef_8h.html#c94de30d6b6063024e06de2cdabc7674">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define uint32          0x07</span>
       
    55 <a name="l00039"></a><a class="code" href="objdictdef_8h.html#65a8ff465aaeda5bdbe8dba7f9d08363">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define real32          0x08</span>
       
    56 <a name="l00040"></a><a class="code" href="objdictdef_8h.html#851e2f30538bfdede632203997bf1b39">00040</a> <span class="preprocessor"></span><span class="preprocessor">#define visible_string  0x09</span>
       
    57 <a name="l00041"></a><a class="code" href="objdictdef_8h.html#096c5c821e0c1e5f9568876d76613f4b">00041</a> <span class="preprocessor"></span><span class="preprocessor">#define octet_string    0x0A</span>
       
    58 <a name="l00042"></a><a class="code" href="objdictdef_8h.html#a666920f15c88f528f7c7f04637377a4">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define unicode_string  0x0B</span>
       
    59 <a name="l00043"></a><a class="code" href="objdictdef_8h.html#6bfecc5ff3b3964fb6bc262b356da7a7">00043</a> <span class="preprocessor"></span><span class="preprocessor">#define time_of_day     0x0C</span>
       
    60 <a name="l00044"></a><a class="code" href="objdictdef_8h.html#897c82c737476245ede7a570dc9d5d70">00044</a> <span class="preprocessor"></span><span class="preprocessor">#define time_difference 0x0D</span>
       
    61 <a name="l00045"></a>00045 <span class="preprocessor"></span>
       
    62 <a name="l00046"></a><a class="code" href="objdictdef_8h.html#f20c7174fbe361dc63f45c4ba910da9a">00046</a> <span class="preprocessor">#define domain          0x0F</span>
       
    63 <a name="l00047"></a><a class="code" href="objdictdef_8h.html#6637c12a51fc33530237b41effdd2b96">00047</a> <span class="preprocessor"></span><span class="preprocessor">#define int24           0x10</span>
       
    64 <a name="l00048"></a><a class="code" href="objdictdef_8h.html#77a12edeb86d1bc79a9466b010c90e2b">00048</a> <span class="preprocessor"></span><span class="preprocessor">#define real64          0x11</span>
       
    65 <a name="l00049"></a><a class="code" href="objdictdef_8h.html#3729ed5dc6fb9d9558e7ac7e6319aaf6">00049</a> <span class="preprocessor"></span><span class="preprocessor">#define int40           0x12</span>
       
    66 <a name="l00050"></a><a class="code" href="objdictdef_8h.html#7aec4c01f65b146c6832853d932d0d3a">00050</a> <span class="preprocessor"></span><span class="preprocessor">#define int48           0x13</span>
       
    67 <a name="l00051"></a><a class="code" href="objdictdef_8h.html#3000af938fc72f69317b351cfcef773c">00051</a> <span class="preprocessor"></span><span class="preprocessor">#define int56           0x14</span>
       
    68 <a name="l00052"></a><a class="code" href="objdictdef_8h.html#3ee2e2c67d9d581d6d3d54eeb803d065">00052</a> <span class="preprocessor"></span><span class="preprocessor">#define int64           0x15</span>
       
    69 <a name="l00053"></a><a class="code" href="objdictdef_8h.html#978a417b1031d34c1a34221b9aaa1a0f">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define uint24          0x16</span>
       
    70 <a name="l00054"></a>00054 <span class="preprocessor"></span>
       
    71 <a name="l00055"></a><a class="code" href="objdictdef_8h.html#5a2a350a198aa452997c755dd89211a3">00055</a> <span class="preprocessor">#define uint40          0x18</span>
       
    72 <a name="l00056"></a><a class="code" href="objdictdef_8h.html#8729abf1a7679f8d6ad39d96f459160e">00056</a> <span class="preprocessor"></span><span class="preprocessor">#define uint48          0x19</span>
       
    73 <a name="l00057"></a><a class="code" href="objdictdef_8h.html#6e44f8289931640920f169bc0275e185">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define uint56          0x1A</span>
       
    74 <a name="l00058"></a><a class="code" href="objdictdef_8h.html#1c10f0f8413a32dbbf6237d6d640b351">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define uint64          0x1B</span>
       
    75 <a name="l00059"></a>00059 <span class="preprocessor"></span>
       
    76 <a name="l00060"></a><a class="code" href="objdictdef_8h.html#e061ad23817ee5076ab5fc6e295a968b">00060</a> <span class="preprocessor">#define pdo_communication_parameter 0x20</span>
       
    77 <a name="l00061"></a><a class="code" href="objdictdef_8h.html#f5dbef4bad031028132f15d968e7b4e4">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define pdo_mapping                 0x21</span>
       
    78 <a name="l00062"></a><a class="code" href="objdictdef_8h.html#be64019e4c4362c402ae56adfb338e46">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define sdo_parameter               0x22</span>
       
    79 <a name="l00063"></a><a class="code" href="objdictdef_8h.html#b02d6926840c8ea358018c4db05954cd">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define identity                    0x23</span>
       
    80 <a name="l00064"></a>00064 <span class="preprocessor"></span>
       
    81 <a name="l00065"></a>00065 <span class="comment">/* CanFestival is using 0x24 to 0xFF to define some types containing a </span>
       
    82 <a name="l00066"></a>00066 <span class="comment"> value range (See how it works in objdict.c)</span>
       
    83 <a name="l00067"></a>00067 <span class="comment"> */</span>
       
    84 <a name="l00068"></a>00068 
       
    85 <a name="l00069"></a>00069 
       
    86 <a name="l00073"></a><a class="code" href="objdictdef_8h.html#ad0aec3e0810593c9047b44d01209927">00073</a> <span class="preprocessor">#define RW     0x00  </span>
       
    87 <a name="l00074"></a><a class="code" href="objdictdef_8h.html#fa98b1e8ac7fd342fed86dfe47c27a79">00074</a> <span class="preprocessor"></span><span class="preprocessor">#define WO     0x01</span>
       
    88 <a name="l00075"></a><a class="code" href="objdictdef_8h.html#4e5cfad73992271b5a0c08edbef28566">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define RO     0x02</span>
       
    89 <a name="l00076"></a>00076 <span class="preprocessor"></span>
       
    90 <a name="l00077"></a><a class="code" href="objdictdef_8h.html#3f60685d78c2480aadeefa9d2e9153e6">00077</a> <span class="preprocessor">#define TO_BE_SAVE  0x04</span>
       
    91 <a name="l00078"></a>00078 <span class="preprocessor"></span>
       
    92 <a name="l00079"></a>00079 <span class="comment">/************************ STRUCTURES ****************************/</span>
       
    93 <a name="l00083"></a><a class="code" href="structtd__subindex.html">00083</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structtd__subindex.html">td_subindex</a>
       
    94 <a name="l00084"></a>00084 {
       
    95 <a name="l00085"></a><a class="code" href="structtd__subindex.html#4e290e6acf2d9f203e629d5aa8c936f2">00085</a>     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a>                    <a class="code" href="structtd__subindex.html#4e290e6acf2d9f203e629d5aa8c936f2">bAccessType</a>;
       
    96 <a name="l00086"></a><a class="code" href="structtd__subindex.html#defc3cce96209dd8ca739d86e7eb2812">00086</a>     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a>                    <a class="code" href="structtd__subindex.html#defc3cce96209dd8ca739d86e7eb2812">bDataType</a>; <span class="comment">/* Defines of what datatype the entry is */</span>
       
    97 <a name="l00087"></a><a class="code" href="structtd__subindex.html#c0998f016ef208dfc529f71ec94273a6">00087</a>     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a>                    <a class="code" href="structtd__subindex.html#c0998f016ef208dfc529f71ec94273a6">size</a>;      <span class="comment">/* The size (in Byte) of the variable */</span>
       
    98 <a name="l00088"></a><a class="code" href="structtd__subindex.html#37815d4ca1a02a25c0f7a66c53902ee5">00088</a>     <span class="keywordtype">void</span>*                   <a class="code" href="structtd__subindex.html#37815d4ca1a02a25c0f7a66c53902ee5">pObject</a>;   <span class="comment">/* This is the pointer of the Variable */</span>
       
    99 <a name="l00089"></a>00089 } <a class="code" href="structtd__subindex.html">subindex</a>;
       
   100 <a name="l00090"></a>00090 
       
   101 <a name="l00093"></a><a class="code" href="structtd__indextable.html">00093</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structtd__indextable.html">td_indextable</a>
       
   102 <a name="l00094"></a>00094 {
       
   103 <a name="l00095"></a><a class="code" href="structtd__indextable.html#ac79f81f711d3f7962ea6042ab8ee0bb">00095</a>     <a class="code" href="structtd__subindex.html">subindex</a>*   <a class="code" href="structtd__indextable.html#ac79f81f711d3f7962ea6042ab8ee0bb">pSubindex</a>;   <span class="comment">/* Pointer to the subindex */</span>
       
   104 <a name="l00096"></a><a class="code" href="structtd__indextable.html#24e7783361a558825a656e4bcb15e659">00096</a>     <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a>   <a class="code" href="structtd__indextable.html#24e7783361a558825a656e4bcb15e659">bSubCount</a>;   <span class="comment">/* the count of valid entries for this subindex</span>
       
   105 <a name="l00097"></a>00097 <span class="comment">                         * This count here defines how many memory has been</span>
       
   106 <a name="l00098"></a>00098 <span class="comment">                         * allocated. this memory does not have to be used.</span>
       
   107 <a name="l00099"></a>00099 <span class="comment">                         */</span>
       
   108 <a name="l00100"></a><a class="code" href="structtd__indextable.html#886a98ee4bd1ff0cd6182d0b0be8c486">00100</a>     <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a>   <a class="code" href="structtd__indextable.html#886a98ee4bd1ff0cd6182d0b0be8c486">index</a>;
       
   109 <a name="l00101"></a>00101 } <a class="code" href="structtd__indextable.html">indextable</a>;
       
   110 <a name="l00102"></a>00102 
       
   111 <a name="l00103"></a><a class="code" href="structs__quick__index.html">00103</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs__quick__index.html">s_quick_index</a>{
       
   112 <a name="l00104"></a><a class="code" href="structs__quick__index.html#a1b2b7ff7d8b24f7233041e468ba82a0">00104</a>         <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="structs__quick__index.html#a1b2b7ff7d8b24f7233041e468ba82a0">SDO_SVR</a>;
       
   113 <a name="l00105"></a><a class="code" href="structs__quick__index.html#b37d4346859cd516ccd1d8c5568d50e6">00105</a>         <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="structs__quick__index.html#b37d4346859cd516ccd1d8c5568d50e6">SDO_CLT</a>;
       
   114 <a name="l00106"></a><a class="code" href="structs__quick__index.html#7d473b93d199e099ae3cde431de49ebb">00106</a>         <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="structs__quick__index.html#7d473b93d199e099ae3cde431de49ebb">PDO_RCV</a>;
       
   115 <a name="l00107"></a><a class="code" href="structs__quick__index.html#ba3d56319f2296a94aafb162453f39da">00107</a>         <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="structs__quick__index.html#ba3d56319f2296a94aafb162453f39da">PDO_RCV_MAP</a>;
       
   116 <a name="l00108"></a><a class="code" href="structs__quick__index.html#3d3be3b6c3764c9fd6ee3fa1b86bcd3a">00108</a>         <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="structs__quick__index.html#3d3be3b6c3764c9fd6ee3fa1b86bcd3a">PDO_TRS</a>;
       
   117 <a name="l00109"></a><a class="code" href="structs__quick__index.html#3e34760a48a65ef1cf6fd539576563b1">00109</a>         <a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> <a class="code" href="structs__quick__index.html#3e34760a48a65ef1cf6fd539576563b1">PDO_TRS_MAP</a>;
       
   118 <a name="l00110"></a>00110 }<a class="code" href="structs__quick__index.html">quick_index</a>;
       
   119 <a name="l00111"></a>00111 
       
   120 <a name="l00112"></a>00112 
       
   121 <a name="l00113"></a>00113 <span class="comment">/*typedef struct struct_CO_Data CO_Data; */</span>
       
   122 <a name="l00114"></a><a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">00114</a> <span class="keyword">typedef</span> <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> (*<a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a>)(<a class="code" href="structstruct__CO__Data.html">CO_Data</a>* d, <span class="keyword">const</span> <a class="code" href="structtd__indextable.html">indextable</a> *, <a class="code" href="hcs12_2applicfg_8h.html#c2e754635928189b98cf3f5b7e6dbffb">UNS8</a> bSubindex);
       
   123 <a name="l00115"></a><a class="code" href="objdictdef_8h.html#e57fa11a3fd463f55ce79a23e4ddc6e2">00115</a> <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="structtd__indextable.html">indextable</a> * (*scanIndexOD_t)(<a class="code" href="hcs12_2applicfg_8h.html#14fad477a4a001f547db2731eaaaa1dc">UNS16</a> wIndex, <a class="code" href="hcs12_2applicfg_8h.html#a6a1b7af83d4106c1d1621bdb28d9c48">UNS32</a> * errorCode, <a class="code" href="objdictdef_8h.html#01303c7a6ee17ba5678931e2756dd5e6">ODCallback_t</a> **Callback);
       
   124 <a name="l00116"></a>00116 
       
   125 <a name="l00117"></a>00117 <span class="comment">/************************** MACROS *********************************/</span>
       
   126 <a name="l00118"></a>00118 
       
   127 <a name="l00119"></a>00119 <span class="comment">/* CANopen usefull helpers */</span>
       
   128 <a name="l00120"></a><a class="code" href="objdictdef_8h.html#3e3c82e6e0cea9c7a22de58000db6c07">00120</a> <span class="preprocessor">#define GET_NODE_ID(m)         (m.cob_id.w &amp; 0x7f)</span>
       
   129 <a name="l00121"></a><a class="code" href="objdictdef_8h.html#3c3979b4526ae2178d24e4e041e5a358">00121</a> <span class="preprocessor"></span><span class="preprocessor">#define GET_FUNCTION_CODE(m)     (m.cob_id.w &gt;&gt; 7)</span>
       
   130 <a name="l00122"></a>00122 <span class="preprocessor"></span>
       
   131 <a name="l00123"></a>00123 <span class="preprocessor">#endif </span><span class="comment">/* __objdictdef_h__ */</span>
       
   132 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:16 2007 for CanFestival by&nbsp;
       
   133 <a href="http://www.doxygen.org/index.html">
       
   134 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
       
   135 </body>
       
   136 </html>