Maxim Integrated / Mbed OS MAXREFDES155#

Dependencies:   MaximInterface

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers objInclusion.h Source File

objInclusion.h

00001 /*
00002  * objInclusion.h - CC31xx/CC32xx Host Driver Implementation
00003  *
00004  * Copyright (C) 2015 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 #include "simplelink.h"
00038 
00039 #ifndef OBJINCLUSION_H_
00040 #define OBJINCLUSION_H_
00041 
00042 #ifdef  __cplusplus
00043 extern "C" {
00044 #endif
00045 
00046 /******************************************************************************
00047  
00048  For future use
00049     
00050 *******************************************************************************/
00051 
00052 #define __inln          /* if inline functions requiered: #define __inln inline */
00053 
00054 #define SL_DEVICE       /* Device silo is currently always mandatory */
00055 
00056 
00057 
00058 /******************************************************************************
00059 
00060  Qualifiers for package customizations 
00061     
00062 *******************************************************************************/
00063 
00064 #if defined (SL_DEVICE)
00065 #define __dev   1
00066 #else
00067 #define __dev   0
00068 #endif
00069 
00070 #if defined (SL_DEVICE) && defined (SL_INC_EXT_API)
00071 #define __dev__ext   1
00072 #else
00073 #define __dev__ext   0
00074 #endif
00075 
00076 
00077 #if (!defined (SL_PLATFORM_MULTI_THREADED)) || (!defined (SL_PLATFORM_EXTERNAL_SPAWN))
00078 #define __int__spwn     1
00079 #else
00080 #define __int__spwn     0
00081 #endif
00082 
00083 #if defined (SL_INC_NET_APP_PKG)
00084 #define __nap    1
00085 #else
00086 #define __nap    0
00087 #endif
00088 
00089 #if defined  (SL_INC_NET_APP_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API)
00090 #define __nap__clt  1
00091 #else
00092 #define __nap__clt  0
00093 #endif
00094 
00095 #if defined  (SL_INC_NET_APP_PKG) && defined (SL_INC_EXT_API)
00096 #define __nap__ext   1
00097 #else
00098 #define __nap__ext   0
00099 #endif
00100   
00101 #if defined (SL_INC_NET_CFG_PKG)
00102 #define __ncg        1
00103 #else
00104 #define __ncg        0
00105 #endif
00106 
00107 #if defined (SL_INC_NET_CFG_PKG) && defined (SL_INC_EXT_API)
00108 #define __ncg__ext        1
00109 #else
00110 #define __ncg__ext        0
00111 #endif
00112 
00113 #if defined (SL_INC_NVMEM_PKG)
00114 #define __nvm       1
00115 #else
00116 #define __nvm       0
00117 #endif
00118 
00119 #if defined (SL_INC_SOCKET_PKG)
00120 #define __sck        1
00121 #else
00122 #define __sck        0
00123 #endif
00124 
00125 #if defined  (SL_INC_SOCKET_PKG) && defined (SL_INC_EXT_API)
00126 #define __sck__ext    1
00127 #else
00128 #define __sck__ext    0
00129 #endif
00130 
00131 #if defined  (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SERVER_SIDE_API)
00132 #define __sck__srv     1
00133 #else
00134 #define __sck__srv     0
00135 #endif
00136 
00137 #if defined  (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_CLIENT_SIDE_API)
00138 #define __sck__clt      1
00139 #else
00140 #define __sck__clt      0
00141 #endif
00142 
00143 #if defined  (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_RECV_API)
00144 #define __sck__rcv     1
00145 #else
00146 #define __sck__rcv     0
00147 #endif
00148 
00149 #if defined  (SL_INC_SOCKET_PKG) && defined (SL_INC_SOCK_SEND_API)
00150 #define __sck__snd      1
00151 #else
00152 #define __sck__snd      0
00153 #endif
00154 
00155 #if defined (SL_INC_WLAN_PKG)
00156 #define __wln           1
00157 #else
00158 #define __wln           0
00159 #endif
00160 
00161 #if defined  (SL_INC_WLAN_PKG) && defined (SL_INC_EXT_API)
00162 #define __wln__ext      1
00163 #else
00164 #define __wln__ext      0
00165 #endif
00166 
00167 /* The return 1 is the function need to be included in the output */
00168 #define _SL_INCLUDE_FUNC(Name)      (_SL_INC_##Name)
00169 
00170 /* Driver */
00171 #define _SL_INC_sl_NetAppStart          __nap__ext
00172 #define _SL_INC_sl_NetAppStop           __nap__ext
00173 
00174 #define _SL_INC_sl_NetAppDnsGetHostByName   __nap__clt
00175 
00176 
00177 #define _SL_INC_sl_NetAppDnsGetHostByService            __nap__ext
00178 #define _SL_INC_sl_NetAppMDNSRegisterService            __nap__ext
00179 #define _SL_INC_sl_NetAppMDNSUnRegisterService          __nap__ext
00180 #define _SL_INC_sl_NetAppMDNSRegisterUnregisterService  __nap__ext
00181 #define _SL_INC_sl_NetAppGetServiceList                 __nap__ext
00182     
00183 
00184 #define _SL_INC_sl_DnsGetHostByAddr     __nap__ext
00185 #define _SL_INC_sl_NetAppPingStart      __nap__ext
00186 #define _SL_INC_sl_NetAppPingReport     __nap__ext
00187 #define _SL_INC_sl_NetAppSet            __nap__ext
00188 #define _SL_INC_sl_NetAppGet            __nap__ext
00189 
00190 
00191 /* FS */
00192 #define _SL_INC_sl_FsOpen            __nvm
00193 
00194 #define _SL_INC_sl_FsClose           __nvm
00195 
00196 #define _SL_INC_sl_FsRead            __nvm
00197 
00198 #define _SL_INC_sl_FsWrite           __nvm
00199 
00200 #define _SL_INC_sl_FsGetInfo         __nvm
00201 
00202 #define _SL_INC_sl_FsDel             __nvm
00203 
00204 /* netcfg */
00205 #define _SL_INC_sl_MacAdrrSet           __ncg
00206 
00207 #define _SL_INC_sl_MacAdrrGet           __ncg
00208 
00209 #define _SL_INC_sl_NetCfgGet          __ncg
00210 
00211 #define _SL_INC_sl_NetCfgSet          __ncg
00212 
00213 
00214 /* socket */
00215 #define _SL_INC_sl_Socket               __sck
00216 
00217 #define _SL_INC_sl_Close                __sck
00218 
00219 #define _SL_INC_sl_Accept               __sck__srv
00220 
00221 #define _SL_INC_sl_Bind                 __sck
00222 
00223 #define _SL_INC_sl_Listen               __sck__srv
00224 
00225 #define _SL_INC_sl_Connect              __sck__clt
00226 
00227 #define _SL_INC_sl_Select               __sck
00228 
00229 #define _SL_INC_sl_SetSockOpt           __sck
00230 
00231 #define _SL_INC_sl_GetSockOpt           __sck__ext
00232 
00233 #define _SL_INC_sl_Recv                 __sck__rcv
00234 
00235 #define _SL_INC_sl_RecvFrom             __sck__rcv
00236 
00237 #define _SL_INC_sl_Write                __sck__snd
00238 
00239 #define _SL_INC_sl_Send                 __sck__snd
00240 
00241 #define _SL_INC_sl_SendTo               __sck__snd
00242 
00243 #define _SL_INC_sl_Htonl                __sck
00244 
00245 #define _SL_INC_sl_Htons                __sck
00246   
00247 /* wlan */
00248 #define _SL_INC_sl_WlanConnect          __wln__ext
00249 
00250 #define _SL_INC_sl_WlanDisconnect           __wln__ext
00251 
00252 #define _SL_INC_sl_WlanProfileAdd           __wln__ext
00253 
00254 #define _SL_INC_sl_WlanProfileGet           __wln__ext
00255 
00256 #define _SL_INC_sl_WlanProfileDel           __wln__ext
00257 
00258 #define _SL_INC_sl_WlanPolicySet            __wln__ext
00259 
00260 #define _SL_INC_sl_WlanPolicyGet            __wln__ext
00261 
00262 #define _SL_INC_sl_WlanGetNetworkList       __wln__ext
00263 
00264 #define _SL_INC_sl_WlanRxFilterAdd      __wln__ext
00265 
00266 #define _SL_INC_sl_WlanRxFilterSet   __wln__ext
00267 
00268 #define _SL_INC_sl_WlanRxFilterGet   __wln__ext
00269 
00270 #define _SL_INC_sl_SmartConfigStart     __wln
00271 
00272 #define _SL_INC_sl_SmartConfigOptSet    __wln__ext
00273 
00274 
00275 #define _SL_INC_sl_WlanSmartConfigStart  __wln
00276 
00277 #define _SL_INC_sl_WlanSmartConfigStop   __wln
00278 
00279 #define _SL_INC_sl_WlanSetMode           __wln
00280 
00281 #define _SL_INC_sl_WlanSet           __wln
00282 
00283 #define _SL_INC_sl_WlanGet           __wln
00284 
00285 #define _SL_INC_sl_SmartConfigOptSet    __wln__ext
00286 
00287 #define _SL_INC_sl_SmartConfigOptGet    __wln__ext
00288 
00289 #define  _SL_INC_sl_WlanRxStatStart      __wln__ext
00290 
00291 #define _SL_INC_sl_WlanRxStatStop       __wln__ext
00292 
00293 #define _SL_INC_sl_WlanRxStatGet        __wln__ext
00294 
00295 
00296 /* device */
00297 #define _SL_INC_sl_Task                 __int__spwn
00298 
00299 #define _SL_INC_sl_Start                __dev
00300 
00301 #define _SL_INC_sl_Stop                 __dev
00302 
00303 #define _SL_INC_sl_StatusGet            __dev
00304 
00305 #ifdef SL_IF_TYPE_UART  
00306 #define _SL_INC_sl_UartSetMode          __dev__ext
00307 #endif
00308 
00309 #define _SL_INC_sl_EventMaskGet         __dev__ext
00310 
00311 #define _SL_INC_sl_EventMaskSet         __dev__ext
00312 
00313 #define _SL_INC_sl_DevGet               __dev__ext
00314 
00315 #define _SL_INC_sl_DevSet               __dev__ext
00316 
00317 
00318 #ifdef  __cplusplus
00319 }
00320 #endif /* __cplusplus */
00321 
00322 #endif /*OBJINCLUSION_H_  */