David Fletcher
/
cc3100_test
TI's CC3100 host driver and demo. Experimental and a work in progress.
Embed:
(wiki syntax)
Show/hide line numbers
cc3100_objInclusion.h
00001 /* 00002 * objInclusion.h - CC31xx/CC32xx Host Driver Implementation 00003 * 00004 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ 00005 * 00006 * 00007 * Redistribution and use in source and binary forms, with or without 00008 * modification, are permitted provided that the following conditions 00009 * are met: 00010 * 00011 * Redistributions of source code must retain the above copyright 00012 * notice, this list of conditions and the following disclaimer. 00013 * 00014 * Redistributions in binary form must reproduce the above copyright 00015 * notice, this list of conditions and the following disclaimer in the 00016 * documentation and/or other materials provided with the 00017 * distribution. 00018 * 00019 * Neither the name of Texas Instruments Incorporated nor the names of 00020 * its contributors may be used to endorse or promote products derived 00021 * from this software without specific prior written permission. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00024 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00025 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00026 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00027 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00028 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00029 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00030 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00031 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00032 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 * 00035 */ 00036 00037 #ifndef OBJINCLUSION_H_ 00038 #define OBJINCLUSION_H_ 00039 00040 #include "cc3100_simplelink.h" 00041 00042 //#ifndef OBJINCLUSION_H_ 00043 //#define OBJINCLUSION_H_ 00044 00045 #ifdef __cplusplus 00046 extern "C" { 00047 #endif 00048 00049 /****************************************************************************** 00050 00051 For future use 00052 00053 *******************************************************************************/ 00054 00055 #define __inln /* if inline functions requiered: #define __inln inline */ 00056 00057 #define SL_DEVICE /* Device silo is currently always mandatory */ 00058 00059 00060 00061 /****************************************************************************** 00062 00063 Qualifiers for package customizations 00064 00065 *******************************************************************************/ 00066 00067 #if defined (SL_DEVICE) 00068 #define __dev 1 00069 #else 00070 #define __dev 0 00071 #endif 00072 00073 #if defined (SL_DEVICE) && defined (SL_INC_EXT_API) 00074 #define __dev__ext 1 00075 #else 00076 #define __dev__ext 0 00077 #endif 00078 00079 00080 #if (!defined (SL_PLATFORM_MULTI_THREADED)) || (!defined (SL_PLATFORM_EXTERNAL_SPAWN)) 00081 #define __int__spwn 1 00082 #else 00083 #define __int__spwn 0 00084 #endif 00085 00086 #if defined (SL_INC_NET_APP_PKG) 00087 #define __nap 1 00088 #else 00089 #define __nap 0 00090 #endif 00091 00092 #if defined (SL_INC_NET_APP_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API) 00093 #define __nap__clt 1 00094 #else 00095 #define __nap__clt 0 00096 #endif 00097 00098 #if defined (SL_INC_NET_APP_PKG) && defined (SL_INC_EXT_API) 00099 #define __nap__ext 1 00100 #else 00101 #define __nap__ext 0 00102 #endif 00103 00104 #if defined (SL_INC_NET_CFG_PKG) 00105 #define __ncg 1 00106 #else 00107 #define __ncg 0 00108 #endif 00109 00110 #if defined (SL_INC_NET_CFG_PKG) && defined (SL_INC_EXT_API) 00111 #define __ncg__ext 1 00112 #else 00113 #define __ncg__ext 0 00114 #endif 00115 00116 #if defined (SL_INC_NVMEM_PKG) 00117 #define __nvm 1 00118 #else 00119 #define __nvm 0 00120 #endif 00121 00122 #if defined (SL_INC_SOCKET_PKG) 00123 #define __sck 1 00124 #else 00125 #define __sck 0 00126 #endif 00127 00128 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_EXT_API) 00129 #define __sck__ext 1 00130 #else 00131 #define __sck__ext 0 00132 #endif 00133 00134 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SERVER_SIDE_API) 00135 #define __sck__srv 1 00136 #else 00137 #define __sck__srv 0 00138 #endif 00139 00140 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API) 00141 #define __sck__clt 1 00142 #else 00143 #define __sck__clt 0 00144 #endif 00145 00146 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_RECV_API) 00147 #define __sck__rcv 1 00148 #else 00149 #define __sck__rcv 0 00150 #endif 00151 00152 #if defined (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SEND_API) 00153 #define __sck__snd 1 00154 #else 00155 #define __sck__snd 0 00156 #endif 00157 00158 #if defined (SL_INC_WLAN_PKG) 00159 #define __wln 1 00160 #else 00161 #define __wln 0 00162 #endif 00163 00164 #if defined (SL_INC_WLAN_PKG) && defined (SL_INC_EXT_API) 00165 #define __wln__ext 1 00166 #else 00167 #define __wln__ext 0 00168 #endif 00169 00170 /* The return 1 is the function need to be included in the output */ 00171 #define _SL_INCLUDE_FUNC(Name) (_SL_INC_##Name) 00172 00173 /* Driver */ 00174 #define _SL_INC_sl_NetAppStart __nap 00175 00176 #define _SL_INC_sl_NetAppStop __nap 00177 00178 #define _SL_INC_sl_NetAppDnsGetHostByName __nap__clt 00179 00180 00181 #define _SL_INC_sl_NetAppDnsGetHostByService __nap__clt 00182 #define _SL_INC_sl_NetAppMDNSRegisterService __nap__clt 00183 #define _SL_INC_sl_NetAppMDNSUnRegisterService __nap__clt 00184 #define _SL_INC_sl_NetAppMDNSRegisterUnregisterService __nap__clt 00185 #define _SL_INC_sl_NetAppGetServiceList __nap__clt 00186 00187 00188 #define _SL_INC_sl_DnsGetHostByAddr __nap__ext 00189 00190 #define _SL_INC_sl_NetAppPingStart __nap 00191 00192 #define _SL_INC_sl_NetAppPingReport __nap 00193 00194 /* FS */ 00195 #define _SL_INC_sl_FsOpen __nvm 00196 00197 #define _SL_INC_sl_FsClose __nvm 00198 00199 #define _SL_INC_sl_FsRead __nvm 00200 00201 #define _SL_INC_sl_FsWrite __nvm 00202 00203 #define _SL_INC_sl_FsGetInfo __nvm 00204 00205 #define _SL_INC_sl_FsDel __nvm 00206 00207 /* netcfg */ 00208 #define _SL_INC_sl_MacAdrrSet __ncg 00209 00210 #define _SL_INC_sl_MacAdrrGet __ncg 00211 00212 #define _SL_INC_sl_NetCfgGet __ncg 00213 00214 #define _SL_INC_sl_NetCfgSet __ncg 00215 00216 #define _SL_INC_sl_NetAppSet __nap 00217 00218 #define _SL_INC_sl_NetAppGet __nap 00219 00220 /* socket */ 00221 #define _SL_INC_sl_Socket __sck 00222 00223 #define _SL_INC_sl_Close __sck__ext 00224 00225 #define _SL_INC_sl_Accept __sck__srv 00226 00227 #define _SL_INC_sl_Bind __sck 00228 00229 #define _SL_INC_sl_Listen __sck__srv 00230 00231 #define _SL_INC_sl_Connect __sck__clt 00232 00233 #define _SL_INC_sl_Select __sck 00234 00235 #define _SL_INC_sl_SetSockOpt __sck 00236 00237 #define _SL_INC_sl_GetSockOpt __sck__ext 00238 00239 #define _SL_INC_sl_Recv __sck__rcv 00240 00241 #define _SL_INC_sl_RecvFrom __sck__rcv 00242 00243 #define _SL_INC_sl_Write __sck__snd 00244 00245 #define _SL_INC_sl_Send __sck__snd 00246 00247 #define _SL_INC_sl_SendTo __sck__snd 00248 00249 #define _SL_INC_sl_Htonl __sck 00250 00251 #define _SL_INC_sl_Htons __sck 00252 00253 /* wlan */ 00254 #define _SL_INC_sl_WlanConnect __wln__ext 00255 00256 #define _SL_INC_sl_WlanDisconnect __wln__ext 00257 00258 #define _SL_INC_sl_WlanProfileAdd __wln__ext 00259 00260 #define _SL_INC_sl_WlanProfileGet __wln__ext 00261 00262 #define _SL_INC_sl_WlanProfileDel __wln__ext 00263 00264 #define _SL_INC_sl_WlanPolicySet __wln__ext 00265 00266 #define _SL_INC_sl_WlanPolicyGet __wln__ext 00267 00268 #define _SL_INC_sl_WlanGetNetworkList __wln__ext 00269 00270 #define _SL_INC_sl_WlanRxFilterAdd __wln__ext 00271 00272 #define _SL_INC_sl_WlanRxFilterSet __wln__ext 00273 00274 #define _SL_INC_sl_WlanRxFilterGet __wln__ext 00275 00276 #define _SL_INC_sl_SmartConfigStart __wln 00277 00278 #define _SL_INC_sl_SmartConfigOptSet __wln__ext 00279 00280 00281 #define _SL_INC_sl_WlanSmartConfigStart __wln 00282 00283 #define _SL_INC_sl_WlanSmartConfigStop __wln 00284 00285 #define _SL_INC_sl_WlanSetMode __wln 00286 00287 #define _SL_INC_sl_WlanSet __wln 00288 00289 #define _SL_INC_sl_WlanGet __wln 00290 00291 #define _SL_INC_sl_SmartConfigOptSet __wln__ext 00292 00293 #define _SL_INC_sl_SmartConfigOptGet __wln__ext 00294 00295 #define _SL_INC_sl_WlanRxStatStart __wln__ext 00296 00297 #define _SL_INC_sl_WlanRxStatStop __wln__ext 00298 00299 #define _SL_INC_sl_WlanRxStatGet __wln__ext 00300 00301 00302 /* device */ 00303 #define _SL_INC_sl_Task __int__spwn 00304 00305 #define _SL_INC_sl_Start __dev 00306 00307 #define _SL_INC_sl_Stop __dev 00308 00309 #define _SL_INC_sl_StatusGet __dev 00310 00311 #ifdef SL_IF_TYPE_UART 00312 #define _SL_INC_sl_UartSetMode __dev 00313 #endif 00314 00315 #define _SL_INC_sl_EventMaskGet __dev__ext 00316 00317 #define _SL_INC_sl_EventMaskSet __dev__ext 00318 00319 #define _SL_INC_sl_DevGet __dev__ext 00320 00321 #define _SL_INC_sl_DevSet __dev__ext 00322 00323 00324 #ifdef __cplusplus 00325 } 00326 #endif /* __cplusplus */ 00327 00328 #endif /*OBJINCLUSION_H_ */ 00329
Generated on Tue Jul 12 2022 22:55:20 by 1.7.2