📄 cml__settings_8h-source.html
字号:
<a name="l00086"></a><a class="code" href="CML__Settings_8h.html#a7">00086</a> <span class="comment"></span><span class="preprocessor">#define CML_LINKAGE_TRJ_BUFFER_SIZE 50</span><a name="l00087"></a>00087 <span class="preprocessor"></span> <span class="comment"></span><a name="l00088"></a>00088 <span class="comment">/// Size of the hash table used by the Error::Lookup method.</span><a name="l00089"></a>00089 <span class="comment">/// This may be set to zero to disable this feature. Most systems</span><a name="l00090"></a>00090 <span class="comment">/// will not require this feature and can safely set this parameter</span><a name="l00091"></a>00091 <span class="comment">/// to zero.</span><a name="l00092"></a><a class="code" href="CML__Settings_8h.html#a8">00092</a> <span class="comment"></span><span class="preprocessor">#define CML_ERROR_HASH_SIZE 64</span><a name="l00093"></a>00093 <span class="preprocessor"></span><span class="comment"></span><a name="l00094"></a>00094 <span class="comment">/// The CML::Error object includes a text message for each error</span><a name="l00095"></a>00095 <span class="comment">/// type. If this setting is commented out then those messages </span><a name="l00096"></a>00096 <span class="comment">/// will not be compiled in with the library. This can be useful</span><a name="l00097"></a>00097 <span class="comment">/// for embedded environments where such messages are not used and</span><a name="l00098"></a>00098 <span class="comment">/// represent a large amount of wasted memory.</span><a name="l00099"></a><a class="code" href="CML__Settings_8h.html#a9">00099</a> <span class="comment"></span><span class="preprocessor">#define CML_ERROR_MESSAGES</span><a name="l00100"></a>00100 <span class="preprocessor"></span><span class="comment"></span><a name="l00101"></a>00101 <span class="comment">/// This setting enables/disables the use of PDO objects within the</span><a name="l00102"></a>00102 <span class="comment">/// IOModule class. The IOModule class is used to access standard</span><a name="l00103"></a>00103 <span class="comment">/// CANopen I/O modules on the network. Normally, these modules may </span><a name="l00104"></a>00104 <span class="comment">/// be accessed using fast PDO transfers, however in very low memory</span><a name="l00105"></a>00105 <span class="comment">/// embedded systems the extra RAM required to maintain the PDO objects</span><a name="l00106"></a>00106 <span class="comment">/// may not be available. In such situations this setting may be </span><a name="l00107"></a>00107 <span class="comment">/// commented out to reduce the memory footprint of the IOModule class.</span><a name="l00108"></a><a class="code" href="CML__Settings_8h.html#a10">00108</a> <span class="comment"></span><span class="preprocessor">#define CML_ENABLE_IOMODULE_PDOS</span><a name="l00109"></a>00109 <span class="preprocessor"></span><span class="comment"></span><a name="l00110"></a>00110 <span class="comment">/// Size of extra private data for the Thread object.</span><a name="l00111"></a>00111 <span class="comment">/// This setting should be left undefined for most systems.</span><a name="l00112"></a>00112 <span class="comment">/// It's provided to allow greater flexibility when porting</span><a name="l00113"></a>00113 <span class="comment">/// the libraries to another operating system.</span><a name="l00114"></a>00114 <span class="comment"></span><span class="comment">//#define CML_EXTRA_THREAD_DATA 0</span><a name="l00115"></a>00115 <span class="comment"></span><a name="l00116"></a>00116 <span class="comment">/// Size of extra private data for the Mutex object.</span><a name="l00117"></a>00117 <span class="comment">/// This setting should be left undefined for most systems.</span><a name="l00118"></a>00118 <span class="comment">/// It's provided to allow greater flexibility when porting</span><a name="l00119"></a>00119 <span class="comment">/// the libraries to another operating system.</span><a name="l00120"></a>00120 <span class="comment"></span><span class="comment">//#define CML_EXTRA_MUTEX_DATA 0</span><a name="l00121"></a>00121 <span class="comment"></span><a name="l00122"></a>00122 <span class="comment">/// Size of extra private data for the Semaphore object.</span><a name="l00123"></a>00123 <span class="comment">/// This setting should be left undefined for most systems.</span><a name="l00124"></a>00124 <span class="comment">/// It's provided to allow greater flexibility when porting</span><a name="l00125"></a>00125 <span class="comment">/// the libraries to another operating system.</span><a name="l00126"></a>00126 <span class="comment"></span><span class="comment">//#define CML_EXTRA_SEMAPHORE_DATA 0</span><a name="l00127"></a>00127 <a name="l00128"></a>00128 <span class="comment">/**************************************************</span><a name="l00129"></a>00129 <span class="comment">* End of user configurable options.</span><a name="l00130"></a>00130 <span class="comment">* The rest of this file contains some macro definitions</span><a name="l00131"></a>00131 <span class="comment">* used by the library to implement these options.</span><a name="l00132"></a>00132 <span class="comment">**************************************************/</span><a name="l00133"></a>00133 <span class="preprocessor">#ifdef CML_NAMESPACE</span><a name="l00134"></a>00134 <span class="preprocessor"></span><a name="l00135"></a><a class="code" href="CML__Settings_8h.html#a11">00135</a> <span class="preprocessor"> #define CML_NAMESPACE_START() namespace CML_NAMESPACE{</span><a name="l00136"></a><a class="code" href="CML__Settings_8h.html#a12">00136</a> <span class="preprocessor"></span><span class="preprocessor"> #define CML_NAMESPACE_END() }</span><a name="l00137"></a><a class="code" href="CML__Settings_8h.html#a13">00137</a> <span class="preprocessor"></span><span class="preprocessor"> #define CML_NAMESPACE_USE() using namespace CML_NAMESPACE</span><a name="l00138"></a>00138 <span class="preprocessor"></span><a name="l00139"></a>00139 <span class="preprocessor">#else</span><a name="l00140"></a>00140 <span class="preprocessor"></span><a name="l00141"></a>00141 <span class="preprocessor"> #define CML_NAMESPACE_START()</span><a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor"> #define CML_NAMESPACE_END()</span><a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor"> #define CML_NAMESPACE_USE()</span><a name="l00144"></a>00144 <span class="preprocessor"></span><a name="l00145"></a>00145 <span class="preprocessor">#endif</span><a name="l00146"></a>00146 <span class="preprocessor"></span><a name="l00147"></a>00147 <span class="comment">/**************************************************</span><a name="l00148"></a>00148 <span class="comment">* If debug assertions are enabled, set them up</span><a name="l00149"></a>00149 <span class="comment">**************************************************/</span><a name="l00150"></a>00150 <span class="preprocessor">#ifdef CML_DEBUG_ASSERT</span><a name="l00151"></a>00151 <span class="preprocessor"></span><span class="preprocessor"> #include <assert.h></span><a name="l00152"></a><a class="code" href="CML__Settings_8h.html#a14">00152</a> <span class="preprocessor"> #define CML_ASSERT(x) assert(x)</span><a name="l00153"></a>00153 <span class="preprocessor"></span><span class="preprocessor">#else</span><a name="l00154"></a>00154 <span class="preprocessor"></span><span class="preprocessor"> #define CML_ASSERT(x)</span><a name="l00155"></a>00155 <span class="preprocessor"></span><span class="preprocessor">#endif</span><a name="l00156"></a>00156 <span class="preprocessor"></span><a name="l00157"></a>00157 <span class="comment">/**************************************************</span><a name="l00158"></a>00158 <span class="comment">* Make sure floating point is enabled if user units are</span><a name="l00159"></a>00159 <span class="comment">**************************************************/</span><a name="l00160"></a>00160 <span class="preprocessor">#ifndef CML_ALLOW_FLOATING_POINT</span><a name="l00161"></a>00161 <span class="preprocessor"></span><span class="preprocessor"> #ifdef CML_ENABLE_USER_UNITS</span><a name="l00162"></a>00162 <span class="preprocessor"></span><span class="preprocessor"> #error "Floating point must be enabled for user unit support"</span><a name="l00163"></a>00163 <span class="preprocessor"></span><span class="preprocessor"> #endif</span><a name="l00164"></a>00164 <span class="preprocessor"></span><span class="preprocessor">#endif</span><a name="l00165"></a>00165 <span class="preprocessor"></span><a name="l00166"></a>00166 <span class="preprocessor">#endif</span><a name="l00167"></a>00167 <span class="preprocessor"></span></pre></div><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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -