Updated to use external spawn.

Fork of simplelink_V2 by David Fletcher

Committer:
dflet
Date:
Sat Jun 06 13:48:29 2015 +0000
Revision:
1:9b68e650b3f6
Parent:
0:1a07906111ec
Oppps

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dflet 0:1a07906111ec 1 /*
dflet 0:1a07906111ec 2 * simplelink.h - CC31xx/CC32xx Host Driver Implementation
dflet 0:1a07906111ec 3 *
dflet 0:1a07906111ec 4 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
dflet 0:1a07906111ec 5 *
dflet 0:1a07906111ec 6 *
dflet 0:1a07906111ec 7 * Redistribution and use in source and binary forms, with or without
dflet 0:1a07906111ec 8 * modification, are permitted provided that the following conditions
dflet 0:1a07906111ec 9 * are met:
dflet 0:1a07906111ec 10 *
dflet 0:1a07906111ec 11 * Redistributions of source code must retain the above copyright
dflet 0:1a07906111ec 12 * notice, this list of conditions and the following disclaimer.
dflet 0:1a07906111ec 13 *
dflet 0:1a07906111ec 14 * Redistributions in binary form must reproduce the above copyright
dflet 0:1a07906111ec 15 * notice, this list of conditions and the following disclaimer in the
dflet 0:1a07906111ec 16 * documentation and/or other materials provided with the
dflet 0:1a07906111ec 17 * distribution.
dflet 0:1a07906111ec 18 *
dflet 0:1a07906111ec 19 * Neither the name of Texas Instruments Incorporated nor the names of
dflet 0:1a07906111ec 20 * its contributors may be used to endorse or promote products derived
dflet 0:1a07906111ec 21 * from this software without specific prior written permission.
dflet 0:1a07906111ec 22 *
dflet 0:1a07906111ec 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
dflet 0:1a07906111ec 24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
dflet 0:1a07906111ec 25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
dflet 0:1a07906111ec 26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
dflet 0:1a07906111ec 27 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dflet 0:1a07906111ec 28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
dflet 0:1a07906111ec 29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
dflet 0:1a07906111ec 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
dflet 0:1a07906111ec 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
dflet 0:1a07906111ec 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
dflet 0:1a07906111ec 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dflet 0:1a07906111ec 34 *
dflet 0:1a07906111ec 35 */
dflet 0:1a07906111ec 36
dflet 0:1a07906111ec 37
dflet 0:1a07906111ec 38 /*!
dflet 0:1a07906111ec 39 \mainpage SimpleLink Driver
dflet 0:1a07906111ec 40
dflet 0:1a07906111ec 41 \section intro_sec Introduction
dflet 0:1a07906111ec 42
dflet 0:1a07906111ec 43 The SimpleLink CC31xx/CC2xx family allows to add Wi-Fi and networking capabilities
dflet 0:1a07906111ec 44 to low-cost embedded products without having prior Wi-Fi, RF or networking expertise.
dflet 0:1a07906111ec 45 The CC31xx/CC32xx is an ideal solution for microcontroller-based sensor and control
dflet 0:1a07906111ec 46 applications such as home appliances, home automation and smart metering.
dflet 0:1a07906111ec 47 The CC31xx/CC32xx has integrated a comprehensive TCP/IP network stack, Wi-Fi driver and
dflet 0:1a07906111ec 48 security supplicant leading to easier portability to microcontrollers, to an
dflet 0:1a07906111ec 49 ultra-low memory footprint, all without compromising the capabilities and robustness
dflet 0:1a07906111ec 50 of the final application.
dflet 0:1a07906111ec 51
dflet 0:1a07906111ec 52
dflet 0:1a07906111ec 53
dflet 0:1a07906111ec 54 \section modules_sec Module Names
dflet 0:1a07906111ec 55 To make it simple, TI's SimpleLink CC31xx/CC32xx platform capabilities were divided into modules by topic (Silo).
dflet 0:1a07906111ec 56 These capabilities range from basic device management through wireless
dflet 0:1a07906111ec 57 network configuration, standard BSD socket and much more.
dflet 0:1a07906111ec 58 Listed below are the various modules in the SimpleLink CC31xx/CC32xx driver:
dflet 0:1a07906111ec 59 -# \ref device - controls the behaviour of the CC31xx/CC32xx device (start/stop, events masking and obtaining specific device status)
dflet 0:1a07906111ec 60 -# \ref wlan - controls the use of the WiFi WLAN module including:
dflet 0:1a07906111ec 61 - Connection features, such as: profiles, policies, SmartConfig™
dflet 0:1a07906111ec 62 - Advanced WLAN features, such as: scans, rx filters and rx statistics collection
dflet 0:1a07906111ec 63 -# \ref socket - controls standard client/server sockets programming options and capabilities
dflet 0:1a07906111ec 64 -# \ref netapp - activates networking applications, such as: HTTP Server, DHCP Server, Ping, DNS and mDNS.
dflet 0:1a07906111ec 65 -# \ref netcfg - controls the configuration of the device addresses (i.e. IP and MAC addresses)
dflet 0:1a07906111ec 66 -# \ref FileSystem - provides file system capabilities to TI's CC31XX that can be used by both the CC31XX device and the user.
dflet 0:1a07906111ec 67
dflet 0:1a07906111ec 68
dflet 0:1a07906111ec 69 \section proting_sec Porting Guide
dflet 0:1a07906111ec 70
dflet 0:1a07906111ec 71 The porting of the SimpleLink driver to any new platform is based on few simple steps.
dflet 0:1a07906111ec 72 This guide takes you through this process step by step. Please follow the instructions
dflet 0:1a07906111ec 73 carefully to avoid any problems during this process and to enable efficient and proper
dflet 0:1a07906111ec 74 work with the device.
dflet 0:1a07906111ec 75 Please notice that all modifications and porting adjustments of the driver should be
dflet 0:1a07906111ec 76 made in the user.h header file only.
dflet 0:1a07906111ec 77 Keep making any of the changes only in this file will ensure smoothly transaction to
dflet 0:1a07906111ec 78 new versions of the driver at the future!
dflet 0:1a07906111ec 79
dflet 0:1a07906111ec 80
dflet 0:1a07906111ec 81 \subsection porting_step1 Step 1 - Create your own user.h file
dflet 0:1a07906111ec 82
dflet 0:1a07906111ec 83 The first step is to create a user.h file that will include your configurations and
dflet 0:1a07906111ec 84 adjustments. You can use the empty template provided as part of this driver or
dflet 0:1a07906111ec 85 you can choose to base your file on file from one of the wide range of examples
dflet 0:1a07906111ec 86 applications provided by Texas Instruments
dflet 0:1a07906111ec 87
dflet 0:1a07906111ec 88
dflet 0:1a07906111ec 89 \subsection porting_step2 Step 2 - Select the capabilities set required for your application
dflet 0:1a07906111ec 90
dflet 0:1a07906111ec 91 Texas Instruments made a lot of efforts to build set of predefined capability sets that would
dflet 0:1a07906111ec 92 fit most of the target application.
dflet 0:1a07906111ec 93 It is recommended to try and choose one of this predefined capabilities set before going to
dflet 0:1a07906111ec 94 build your own customized set. If you find compatible set you can skip the rest of this step.
dflet 0:1a07906111ec 95
dflet 0:1a07906111ec 96 The available sets are:
dflet 0:1a07906111ec 97 -# SL_TINY - Compatible to be used on platforms with very limited resources. Provides
dflet 0:1a07906111ec 98 the best in class foot print in terms of Code and Data consumption.
dflet 0:1a07906111ec 99 -# SL_SMALL - Compatible to most common networking applications. Provide the most
dflet 0:1a07906111ec 100 common APIs with decent balance between code size, data size, functionality
dflet 0:1a07906111ec 101 and performances
dflet 0:1a07906111ec 102 -# SL_FULL - Provide access to all SimpleLink functionalities
dflet 0:1a07906111ec 103
dflet 0:1a07906111ec 104
dflet 0:1a07906111ec 105 \subsection porting_step3 Step 3 - Bind the device enable/disable output line
dflet 0:1a07906111ec 106
dflet 0:1a07906111ec 107 The enable/disable line (nHib) provide mechanism to enter the device into the least current
dflet 0:1a07906111ec 108 consumption mode. This mode could be used when no traffic is required (tx/rx).
dflet 0:1a07906111ec 109 when this line is not connected to any IO of the host this define should be left empty.
dflet 0:1a07906111ec 110 Not connecting this line results in ability to start the driver only once.
dflet 0:1a07906111ec 111
dflet 0:1a07906111ec 112
dflet 0:1a07906111ec 113 \subsection porting_step4 Step 4 - Writing your interface communication driver
dflet 0:1a07906111ec 114
dflet 0:1a07906111ec 115 The SimpleLink device support several standard communication protocol among SPI and
dflet 0:1a07906111ec 116 UART. Depending on your needs and your hardware design, you should choose the
dflet 0:1a07906111ec 117 communication channel type.
dflet 0:1a07906111ec 118 The interface for this communication channel should include 4 simple access functions:
dflet 0:1a07906111ec 119 -# open
dflet 0:1a07906111ec 120 -# close
dflet 0:1a07906111ec 121 -# read
dflet 0:1a07906111ec 122 -# write
dflet 0:1a07906111ec 123
dflet 0:1a07906111ec 124 The way this driver would be implemented is directly effecting the efficiency and
dflet 0:1a07906111ec 125 the performances of the SimpleLink device on this platform.
dflet 0:1a07906111ec 126 If your system has DMA you should consider to use it in order to increase the utilization
dflet 0:1a07906111ec 127 of the communication channel
dflet 0:1a07906111ec 128 If you have enough memory resources you should consider using a buffer to increase the
dflet 0:1a07906111ec 129 efficiency of the write operations.
dflet 0:1a07906111ec 130
dflet 0:1a07906111ec 131
dflet 0:1a07906111ec 132 \subsection porting_step5 Step 5 - Choose your memory management model
dflet 0:1a07906111ec 133
dflet 0:1a07906111ec 134 The SimpleLink driver support two memory models:
dflet 0:1a07906111ec 135 -# Static (default)
dflet 0:1a07906111ec 136 -# Dynamic
dflet 0:1a07906111ec 137
dflet 0:1a07906111ec 138 If you choose to work in dynamic model you will have to provide alloc and free functions
dflet 0:1a07906111ec 139 to be used by the Simple Link driver otherwise nothing need to be done.
dflet 0:1a07906111ec 140
dflet 0:1a07906111ec 141
dflet 0:1a07906111ec 142 \subsection porting_step6 Step 6 - OS adaptation
dflet 0:1a07906111ec 143
dflet 0:1a07906111ec 144 The SimpleLink driver could run on two kind of platforms:
dflet 0:1a07906111ec 145 -# Non-Os / Single Threaded (default)
dflet 0:1a07906111ec 146 -# Multi-Threaded
dflet 0:1a07906111ec 147
dflet 0:1a07906111ec 148 If you choose to work in multi-threaded environment under operating system you will have to
dflet 0:1a07906111ec 149 provide some basic adaptation routines to allow the driver to protect access to resources
dflet 0:1a07906111ec 150 for different threads (locking object) and to allow synchronization between threads (sync objects).
dflet 0:1a07906111ec 151 In additional the driver support running without dedicated thread allocated solely to the simple
dflet 0:1a07906111ec 152 link driver. If you choose to work in this mode, you should also supply a spawn method that
dflet 0:1a07906111ec 153 will enable to run function on a temporary context.
dflet 0:1a07906111ec 154
dflet 0:1a07906111ec 155
dflet 0:1a07906111ec 156 \subsection porting_step7 Step 7 - Set your asynchronous event handlers routines
dflet 0:1a07906111ec 157
dflet 0:1a07906111ec 158 The SimpleLink device generate asynchronous events in several situations.
dflet 0:1a07906111ec 159 These asynchronous events could be masked.
dflet 0:1a07906111ec 160 In order to catch these events you have to provide handler routines.
dflet 0:1a07906111ec 161 Please notice that if you not provide a handler routine and the event is received,
dflet 0:1a07906111ec 162 the driver will drop this event without any indication of this drop.
dflet 0:1a07906111ec 163
dflet 0:1a07906111ec 164
dflet 0:1a07906111ec 165 \subsection porting_step8 Step 8 - Run diagnostic tools to validate the correctness of your porting
dflet 0:1a07906111ec 166
dflet 0:1a07906111ec 167 The driver is delivered with some porting diagnostic tools to simplify the porting validation process
dflet 0:1a07906111ec 168 and to reduce issues latter. It is very important to follow carefully this process.
dflet 0:1a07906111ec 169
dflet 0:1a07906111ec 170 The diagnostic process include:
dflet 0:1a07906111ec 171 -# Validating Interface Communication Driver
dflet 0:1a07906111ec 172 -# Validating OS adaptation layer
dflet 0:1a07906111ec 173 -# Validating HW integrity
dflet 0:1a07906111ec 174 -# Validating basic work with the device
dflet 0:1a07906111ec 175
dflet 0:1a07906111ec 176
dflet 0:1a07906111ec 177 \section sw_license License
dflet 0:1a07906111ec 178
dflet 0:1a07906111ec 179 *
dflet 0:1a07906111ec 180 *
dflet 0:1a07906111ec 181 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
dflet 0:1a07906111ec 182 *
dflet 0:1a07906111ec 183 *
dflet 0:1a07906111ec 184 * Redistribution and use in source and binary forms, with or without
dflet 0:1a07906111ec 185 * modification, are permitted provided that the following conditions
dflet 0:1a07906111ec 186 * are met:
dflet 0:1a07906111ec 187 *
dflet 0:1a07906111ec 188 * Redistributions of source code must retain the above copyright
dflet 0:1a07906111ec 189 * notice, this list of conditions and the following disclaimer.
dflet 0:1a07906111ec 190 *
dflet 0:1a07906111ec 191 * Redistributions in binary form must reproduce the above copyright
dflet 0:1a07906111ec 192 * notice, this list of conditions and the following disclaimer in the
dflet 0:1a07906111ec 193 * documentation and/or other materials provided with the
dflet 0:1a07906111ec 194 * distribution.
dflet 0:1a07906111ec 195 *
dflet 0:1a07906111ec 196 * Neither the name of Texas Instruments Incorporated nor the names of
dflet 0:1a07906111ec 197 * its contributors may be used to endorse or promote products derived
dflet 0:1a07906111ec 198 * from this software without specific prior written permission.
dflet 0:1a07906111ec 199 *
dflet 0:1a07906111ec 200 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
dflet 0:1a07906111ec 201 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
dflet 0:1a07906111ec 202 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
dflet 0:1a07906111ec 203 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
dflet 0:1a07906111ec 204 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dflet 0:1a07906111ec 205 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
dflet 0:1a07906111ec 206 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
dflet 0:1a07906111ec 207 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
dflet 0:1a07906111ec 208 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
dflet 0:1a07906111ec 209 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
dflet 0:1a07906111ec 210 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dflet 0:1a07906111ec 211 *
dflet 0:1a07906111ec 212 */
dflet 0:1a07906111ec 213
dflet 0:1a07906111ec 214
dflet 0:1a07906111ec 215
dflet 0:1a07906111ec 216 #ifndef SIMPLELINK_H_
dflet 0:1a07906111ec 217 #define SIMPLELINK_H_
dflet 0:1a07906111ec 218
dflet 0:1a07906111ec 219 #include "mbed.h"
dflet 0:1a07906111ec 220 #include "cc3100_user.h"
dflet 0:1a07906111ec 221
dflet 0:1a07906111ec 222 namespace mbed_cc3100 {
dflet 0:1a07906111ec 223
dflet 0:1a07906111ec 224 /*! \attention Async event activation notes
dflet 0:1a07906111ec 225 Function prototypes for event callback handlers
dflet 0:1a07906111ec 226 Event handler function names should be defined in the user.h file
dflet 0:1a07906111ec 227 e.g.
dflet 0:1a07906111ec 228 "#define sl_WlanEvtHdlr SLWlanEventHandler"
dflet 0:1a07906111ec 229 Indicates all WLAN events are handled by User func "SLWlanEventHandler"
dflet 0:1a07906111ec 230 Important notes:
dflet 0:1a07906111ec 231 1. Event handlers cannot activate another SimpleLink API from the event's context
dflet 0:1a07906111ec 232 2. Event's data is valid during event's context. Any application data
dflet 0:1a07906111ec 233 which is required for the user application should be copied or marked
dflet 0:1a07906111ec 234 into user's variables
dflet 0:1a07906111ec 235 3. It is not recommended to delay the execution of the event callback handler
dflet 0:1a07906111ec 236
dflet 0:1a07906111ec 237 */
dflet 0:1a07906111ec 238
dflet 0:1a07906111ec 239 /*!
dflet 0:1a07906111ec 240
dflet 0:1a07906111ec 241 \addtogroup UserEvents
dflet 0:1a07906111ec 242 @{
dflet 0:1a07906111ec 243
dflet 0:1a07906111ec 244 */
dflet 0:1a07906111ec 245
dflet 0:1a07906111ec 246
dflet 0:1a07906111ec 247 /*****************************************************************************/
dflet 0:1a07906111ec 248 /* Macro declarations for Host Driver version */
dflet 0:1a07906111ec 249 /*****************************************************************************/
dflet 0:1a07906111ec 250 #define SL_DRIVER_VERSION "1.0.0.10"
dflet 0:1a07906111ec 251 #define SL_MAJOR_VERSION_NUM 1L
dflet 0:1a07906111ec 252 #define SL_MINOR_VERSION_NUM 0L
dflet 0:1a07906111ec 253 #define SL_VERSION_NUM 0L
dflet 0:1a07906111ec 254 #define SL_SUB_VERSION_NUM 10L
dflet 0:1a07906111ec 255
dflet 0:1a07906111ec 256
dflet 0:1a07906111ec 257 /*****************************************************************************/
dflet 0:1a07906111ec 258 /* Macro declarations for predefined configurations */
dflet 0:1a07906111ec 259 /*****************************************************************************/
dflet 0:1a07906111ec 260
dflet 0:1a07906111ec 261 #ifdef SL_TINY
dflet 0:1a07906111ec 262
dflet 0:1a07906111ec 263 #undef SL_INC_ARG_CHECK
dflet 0:1a07906111ec 264 #undef SL_INC_EXT_API
dflet 0:1a07906111ec 265 #undef SL_INC_SOCK_SERVER_SIDE_API
dflet 0:1a07906111ec 266 #undef SL_INC_WLAN_PKG
dflet 0:1a07906111ec 267 #undef SL_INC_NET_CFG_PKG
dflet 0:1a07906111ec 268 #undef SL_INC_FS_PKG
dflet 0:1a07906111ec 269 #undef SL_INC_SET_UART_MODE
dflet 0:1a07906111ec 270 #undef SL_INC_NVMEM_PKG
dflet 0:1a07906111ec 271 #define SL_INC_STD_BSD_API_NAMING
dflet 0:1a07906111ec 272 #define SL_INC_SOCK_CLIENT_SIDE_API
dflet 0:1a07906111ec 273 #define SL_INC_SOCK_RECV_API
dflet 0:1a07906111ec 274 #define SL_INC_SOCK_SEND_API
dflet 0:1a07906111ec 275 #define SL_INC_SOCKET_PKG
dflet 0:1a07906111ec 276 #define SL_INC_NET_APP_PKG
dflet 0:1a07906111ec 277 #endif
dflet 0:1a07906111ec 278
dflet 0:1a07906111ec 279 #ifdef SL_SMALL
dflet 0:1a07906111ec 280 #undef SL_INC_EXT_API
dflet 0:1a07906111ec 281 #undef SL_INC_NET_APP_PKG
dflet 0:1a07906111ec 282 #undef SL_INC_NET_CFG_PKG
dflet 0:1a07906111ec 283 #undef SL_INC_FS_PKG
dflet 0:1a07906111ec 284 #define SL_INC_ARG_CHECK
dflet 0:1a07906111ec 285 #define SL_INC_WLAN_PKG
dflet 0:1a07906111ec 286 #define SL_INC_SOCKET_PKG
dflet 0:1a07906111ec 287 #define SL_INC_SOCK_CLIENT_SIDE_API
dflet 0:1a07906111ec 288 #define SL_INC_SOCK_SERVER_SIDE_API
dflet 0:1a07906111ec 289 #define SL_INC_SOCK_RECV_API
dflet 0:1a07906111ec 290 #define SL_INC_SOCK_SEND_API
dflet 0:1a07906111ec 291 #define SL_INC_SET_UART_MODE
dflet 0:1a07906111ec 292 #endif
dflet 0:1a07906111ec 293
dflet 0:1a07906111ec 294 #ifdef SL_FULL
dflet 0:1a07906111ec 295 #define SL_INC_EXT_API
dflet 0:1a07906111ec 296 #define SL_INC_NET_APP_PKG
dflet 0:1a07906111ec 297 #define SL_INC_NET_CFG_PKG
dflet 0:1a07906111ec 298 #define SL_INC_FS_PKG
dflet 0:1a07906111ec 299 #define SL_INC_ARG_CHECK
dflet 0:1a07906111ec 300 #define SL_INC_WLAN_PKG
dflet 0:1a07906111ec 301 #define SL_INC_SOCKET_PKG
dflet 0:1a07906111ec 302 #define SL_INC_SOCK_CLIENT_SIDE_API
dflet 0:1a07906111ec 303 #define SL_INC_SOCK_SERVER_SIDE_API
dflet 0:1a07906111ec 304 #define SL_INC_SOCK_RECV_API
dflet 0:1a07906111ec 305 #define SL_INC_SOCK_SEND_API
dflet 0:1a07906111ec 306 #define SL_INC_SET_UART_MODE
dflet 0:1a07906111ec 307 #endif
dflet 0:1a07906111ec 308
dflet 0:1a07906111ec 309 #define SL_RET_CODE_OK (0)
dflet 0:1a07906111ec 310 #define SL_RET_CODE_INVALID_INPUT (-2)
dflet 0:1a07906111ec 311 #define SL_RET_CODE_SELF_ERROR (-3)
dflet 0:1a07906111ec 312 #define SL_RET_CODE_NWP_IF_ERROR (-4)
dflet 0:1a07906111ec 313 #define SL_RET_CODE_MALLOC_ERROR (-5)
dflet 0:1a07906111ec 314
dflet 0:1a07906111ec 315 #define sl_SyncObjClear(pObj) sl_SyncObjWait(pObj,NON_OS_SYNC_OBJ_SIGNAL_VALUE,NON_OS_SYNC_OBJ_CLEAR_VALUE,SL_OS_NO_WAIT)
dflet 0:1a07906111ec 316
dflet 0:1a07906111ec 317 #ifndef SL_TINY_EXT
dflet 0:1a07906111ec 318 #define SL_MAX_SOCKETS (8)
dflet 0:1a07906111ec 319 #else
dflet 0:1a07906111ec 320 #define SL_MAX_SOCKETS (2)
dflet 0:1a07906111ec 321 #endif
dflet 0:1a07906111ec 322
dflet 0:1a07906111ec 323 /*****************************************************************************/
dflet 0:1a07906111ec 324 /* Types definitions */
dflet 0:1a07906111ec 325 /*****************************************************************************/
dflet 0:1a07906111ec 326
dflet 0:1a07906111ec 327
dflet 0:1a07906111ec 328 #ifndef NULL
dflet 0:1a07906111ec 329 #define NULL (0)
dflet 0:1a07906111ec 330 #endif
dflet 0:1a07906111ec 331
dflet 0:1a07906111ec 332 #ifndef FALSE
dflet 0:1a07906111ec 333 #define FALSE (0)
dflet 0:1a07906111ec 334 #endif
dflet 0:1a07906111ec 335
dflet 0:1a07906111ec 336 #ifndef TRUE
dflet 0:1a07906111ec 337 #define TRUE (!FALSE)
dflet 0:1a07906111ec 338 #endif
dflet 0:1a07906111ec 339
dflet 0:1a07906111ec 340 #ifndef OK
dflet 0:1a07906111ec 341 #define OK (0)
dflet 0:1a07906111ec 342 #endif
dflet 0:1a07906111ec 343
dflet 0:1a07906111ec 344 //#ifndef _SL_USER_TYPES
dflet 0:1a07906111ec 345 //typedef unsigned char _u8;
dflet 0:1a07906111ec 346 //typedef signed char _i8;
dflet 0:1a07906111ec 347
dflet 0:1a07906111ec 348 //typedef unsigned short _u16;
dflet 0:1a07906111ec 349 //typedef signed short _i16;
dflet 0:1a07906111ec 350
dflet 0:1a07906111ec 351 //typedef unsigned long _u32;
dflet 0:1a07906111ec 352 //typedef signed long _i32;
dflet 0:1a07906111ec 353 //#define _volatile volatile
dflet 0:1a07906111ec 354 //#define _const const
dflet 0:1a07906111ec 355 //#endif
dflet 0:1a07906111ec 356
dflet 0:1a07906111ec 357 typedef uint16_t _SlOpcode_t;
dflet 0:1a07906111ec 358 typedef uint8_t _SlArgSize_t;
dflet 0:1a07906111ec 359 typedef int16_t _SlDataSize_t;
dflet 0:1a07906111ec 360 typedef int16_t _SlReturnVal_t;
dflet 0:1a07906111ec 361
dflet 0:1a07906111ec 362 /*
dflet 0:1a07906111ec 363 * This event status used to block or continue the event propagation
dflet 0:1a07906111ec 364 * through all the registered external libs/user application
dflet 0:1a07906111ec 365 *
dflet 0:1a07906111ec 366 */
dflet 0:1a07906111ec 367
dflet 0:1a07906111ec 368 typedef enum {
dflet 0:1a07906111ec 369 EVENT_PROPAGATION_BLOCK = 0,
dflet 0:1a07906111ec 370 EVENT_PROPAGATION_CONTINUE
dflet 0:1a07906111ec 371
dflet 0:1a07906111ec 372 } _SlEventPropogationStatus_e;
dflet 0:1a07906111ec 373
dflet 0:1a07906111ec 374 typedef void (*_SlSpawnEntryFunc_t)(void* pValue);
dflet 0:1a07906111ec 375
dflet 0:1a07906111ec 376 }//namespace mbed_cc3100
dflet 0:1a07906111ec 377 /*****************************************************************************/
dflet 0:1a07906111ec 378 /* Include files */
dflet 0:1a07906111ec 379 /*****************************************************************************/
dflet 0:1a07906111ec 380
dflet 0:1a07906111ec 381 /*
dflet 0:1a07906111ec 382 objInclusion.h and user.h must be included before all api header files
dflet 0:1a07906111ec 383 objInclusion.h must be the last arrangement just before including the API header files
dflet 0:1a07906111ec 384 since it based on the other configurations to decide which object should be included
dflet 0:1a07906111ec 385 */
dflet 0:1a07906111ec 386 #include "cc3100_objInclusion.h"
dflet 0:1a07906111ec 387 #include "cc3100_trace.h"
dflet 0:1a07906111ec 388 #include "cc3100_fs.h"
dflet 0:1a07906111ec 389 #include "cc3100_socket.h"
dflet 0:1a07906111ec 390 #include "cc3100_netapp.h"
dflet 0:1a07906111ec 391 #include "cc3100_wlan.h"
dflet 0:1a07906111ec 392 #include "cc3100.h"
dflet 0:1a07906111ec 393 #include "cc3100_netcfg.h"
dflet 0:1a07906111ec 394 #include "cc3100_wlan_rx_filters.h"
dflet 0:1a07906111ec 395
dflet 0:1a07906111ec 396 /* The general events dispatcher which is
dflet 0:1a07906111ec 397 * initialized to the user handler */
dflet 0:1a07906111ec 398 #ifdef sl_GeneralEvtHdlr
dflet 0:1a07906111ec 399 #define _SlDrvHandleGeneralEvents sl_GeneralEvtHdlr
dflet 0:1a07906111ec 400 #endif
dflet 0:1a07906111ec 401
dflet 0:1a07906111ec 402 /* The wlan events dispatcher which is
dflet 0:1a07906111ec 403 * initialized to the user handler */
dflet 0:1a07906111ec 404 #ifdef sl_WlanEvtHdlr
dflet 0:1a07906111ec 405 #define _SlDrvHandleWlanEvents sl_WlanEvtHdlr
dflet 0:1a07906111ec 406 #endif
dflet 0:1a07906111ec 407
dflet 0:1a07906111ec 408 /* The NetApp events dispatcher which is
dflet 0:1a07906111ec 409 * initialized to the user handler */
dflet 0:1a07906111ec 410 #ifdef sl_NetAppEvtHdlr
dflet 0:1a07906111ec 411 #define _SlDrvHandleNetAppEvents sl_NetAppEvtHdlr
dflet 0:1a07906111ec 412 #endif
dflet 0:1a07906111ec 413
dflet 0:1a07906111ec 414 /* The http server events dispatcher which is
dflet 0:1a07906111ec 415 * initialized to the user handler if exists */
dflet 0:1a07906111ec 416 #ifdef sl_HttpServerCallback
dflet 0:1a07906111ec 417 #define _SlDrvHandleHttpServerEvents sl_HttpServerCallback
dflet 0:1a07906111ec 418 #endif
dflet 0:1a07906111ec 419
dflet 0:1a07906111ec 420 /* The socket events dispatcher which is
dflet 0:1a07906111ec 421 * initialized to the user handler */
dflet 0:1a07906111ec 422 #ifdef sl_SockEvtHdlr
dflet 0:1a07906111ec 423 #define _SlDrvHandleSockEvents sl_SockEvtHdlr
dflet 0:1a07906111ec 424 #endif
dflet 0:1a07906111ec 425
dflet 0:1a07906111ec 426
dflet 0:1a07906111ec 427
dflet 0:1a07906111ec 428 #define __CONCAT(x,y) x ## y
dflet 0:1a07906111ec 429 #define __CONCAT2(x,y) __CONCAT(x,y)
dflet 0:1a07906111ec 430
dflet 0:1a07906111ec 431
dflet 0:1a07906111ec 432 /*
dflet 0:1a07906111ec 433 * The section below handles the external lib event registration
dflet 0:1a07906111ec 434 * according to the desired events it specified in its API header file.
dflet 0:1a07906111ec 435 * The external lib should be first installed by the user (see user.h)
dflet 0:1a07906111ec 436 */
dflet 0:1a07906111ec 437 #ifdef SL_EXT_LIB_1
dflet 0:1a07906111ec 438
dflet 0:1a07906111ec 439 /* General Event Registration */
dflet 0:1a07906111ec 440 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_GENERAL_EVENT)
dflet 0:1a07906111ec 441 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 0:1a07906111ec 442 #define SlExtLib1GeneralEventHandler __CONCAT2(SL_EXT_LIB_1, _GeneralEventHdl)
dflet 0:1a07906111ec 443
dflet 0:1a07906111ec 444 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 445 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 446 #endif
dflet 0:1a07906111ec 447
dflet 0:1a07906111ec 448 /* Wlan Event Registration */
dflet 0:1a07906111ec 449 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_WLAN_EVENT)
dflet 0:1a07906111ec 450 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _WlanEventHdl) (SlWlanEvent_t *);
dflet 0:1a07906111ec 451 #define SlExtLib1WlanEventHandler __CONCAT2(SL_EXT_LIB_1, _WlanEventHdl)
dflet 0:1a07906111ec 452
dflet 0:1a07906111ec 453 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 454 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 455 #endif
dflet 0:1a07906111ec 456
dflet 0:1a07906111ec 457 /* NetApp Event Registration */
dflet 0:1a07906111ec 458 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_NETAPP_EVENT)
dflet 0:1a07906111ec 459 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 0:1a07906111ec 460 #define SlExtLib1NetAppEventHandler __CONCAT2(SL_EXT_LIB_1, _NetAppEventHdl)
dflet 0:1a07906111ec 461
dflet 0:1a07906111ec 462 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 463 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 464 #endif
dflet 0:1a07906111ec 465
dflet 0:1a07906111ec 466 /* Http Server Event Registration */
dflet 0:1a07906111ec 467 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_HTTP_SERVER_EVENT)
dflet 0:1a07906111ec 468 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 0:1a07906111ec 469 #define SlExtLib1HttpServerEventHandler __CONCAT2(SL_EXT_LIB_1, _HttpServerEventHdl)
dflet 0:1a07906111ec 470
dflet 0:1a07906111ec 471 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 472 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 473 #endif
dflet 0:1a07906111ec 474
dflet 0:1a07906111ec 475 /* Socket Event Registration */
dflet 0:1a07906111ec 476 #if __CONCAT2(SL_EXT_LIB_1, _NOTIFY_SOCK_EVENT)
dflet 0:1a07906111ec 477 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_1, _SockEventHdl) (SlSockEvent_t *);
dflet 0:1a07906111ec 478 #define SlExtLib1SockEventHandler __CONCAT2(SL_EXT_LIB_1, _SockEventHdl)
dflet 0:1a07906111ec 479
dflet 0:1a07906111ec 480 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 481 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 482 #endif
dflet 0:1a07906111ec 483
dflet 0:1a07906111ec 484 #endif
dflet 0:1a07906111ec 485
dflet 0:1a07906111ec 486
dflet 0:1a07906111ec 487 #ifdef SL_EXT_LIB_2
dflet 0:1a07906111ec 488
dflet 0:1a07906111ec 489 /* General Event Registration */
dflet 0:1a07906111ec 490 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_GENERAL_EVENT)
dflet 0:1a07906111ec 491 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 0:1a07906111ec 492 #define SlExtLib2GeneralEventHandler __CONCAT2(SL_EXT_LIB_2, _GeneralEventHdl)
dflet 0:1a07906111ec 493
dflet 0:1a07906111ec 494 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 495 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 496 #endif
dflet 0:1a07906111ec 497
dflet 0:1a07906111ec 498 /* Wlan Event Registration */
dflet 0:1a07906111ec 499 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_WLAN_EVENT)
dflet 0:1a07906111ec 500 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _WlanEventHdl) (SlWlanEvent_t *);
dflet 0:1a07906111ec 501 #define SlExtLib2WlanEventHandler __CONCAT2(SL_EXT_LIB_2, _WlanEventHdl)
dflet 0:1a07906111ec 502
dflet 0:1a07906111ec 503 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 504 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 505 #endif
dflet 0:1a07906111ec 506
dflet 0:1a07906111ec 507 /* NetApp Event Registration */
dflet 0:1a07906111ec 508 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_NETAPP_EVENT)
dflet 0:1a07906111ec 509 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 0:1a07906111ec 510 #define SlExtLib2NetAppEventHandler __CONCAT2(SL_EXT_LIB_2, _NetAppEventHdl)
dflet 0:1a07906111ec 511
dflet 0:1a07906111ec 512 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 513 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 514 #endif
dflet 0:1a07906111ec 515
dflet 0:1a07906111ec 516 /* Http Server Event Registration */
dflet 0:1a07906111ec 517 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_HTTP_SERVER_EVENT)
dflet 0:1a07906111ec 518 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 0:1a07906111ec 519 #define SlExtLib2HttpServerEventHandler __CONCAT2(SL_EXT_LIB_2, _HttpServerEventHdl)
dflet 0:1a07906111ec 520
dflet 0:1a07906111ec 521 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 522 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 523 #endif
dflet 0:1a07906111ec 524
dflet 0:1a07906111ec 525 /* Socket Event Registration */
dflet 0:1a07906111ec 526 #if __CONCAT2(SL_EXT_LIB_2, _NOTIFY_SOCK_EVENT)
dflet 0:1a07906111ec 527 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_2, _SockEventHdl) (SlSockEvent_t *);
dflet 0:1a07906111ec 528 #define SlExtLib2SockEventHandler __CONCAT2(SL_EXT_LIB_2, _SockEventHdl)
dflet 0:1a07906111ec 529
dflet 0:1a07906111ec 530 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 531 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 532 #endif
dflet 0:1a07906111ec 533
dflet 0:1a07906111ec 534 #endif
dflet 0:1a07906111ec 535
dflet 0:1a07906111ec 536
dflet 0:1a07906111ec 537 #ifdef SL_EXT_LIB_3
dflet 0:1a07906111ec 538
dflet 0:1a07906111ec 539 /* General Event Registration */
dflet 0:1a07906111ec 540 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_GENERAL_EVENT)
dflet 0:1a07906111ec 541 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 0:1a07906111ec 542 #define SlExtLib3GeneralEventHandler __CONCAT2(SL_EXT_LIB_3, _GeneralEventHdl)
dflet 0:1a07906111ec 543
dflet 0:1a07906111ec 544 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 545 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 546 #endif
dflet 0:1a07906111ec 547
dflet 0:1a07906111ec 548 /* Wlan Event Registration */
dflet 0:1a07906111ec 549 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_WLAN_EVENT)
dflet 0:1a07906111ec 550 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _WlanEventHdl) (SlWlanEvent_t *);
dflet 0:1a07906111ec 551 #define SlExtLib3WlanEventHandler __CONCAT2(SL_EXT_LIB_3, _WlanEventHdl)
dflet 0:1a07906111ec 552
dflet 0:1a07906111ec 553 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 554 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 555 #endif
dflet 0:1a07906111ec 556
dflet 0:1a07906111ec 557 /* NetApp Event Registration */
dflet 0:1a07906111ec 558 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_NETAPP_EVENT)
dflet 0:1a07906111ec 559 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 0:1a07906111ec 560 #define SlExtLib3NetAppEventHandler __CONCAT2(SL_EXT_LIB_3, _NetAppEventHdl)
dflet 0:1a07906111ec 561
dflet 0:1a07906111ec 562 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 563 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 564 #endif
dflet 0:1a07906111ec 565
dflet 0:1a07906111ec 566 /* Http Server Event Registration */
dflet 0:1a07906111ec 567 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_HTTP_SERVER_EVENT)
dflet 0:1a07906111ec 568 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 0:1a07906111ec 569 #define SlExtLib3HttpServerEventHandler __CONCAT2(SL_EXT_LIB_3, _HttpServerEventHdl)
dflet 0:1a07906111ec 570
dflet 0:1a07906111ec 571 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 572 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 573 #endif
dflet 0:1a07906111ec 574
dflet 0:1a07906111ec 575 /* Socket Event Registration */
dflet 0:1a07906111ec 576 #if __CONCAT2(SL_EXT_LIB_3, _NOTIFY_SOCK_EVENT)
dflet 0:1a07906111ec 577 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_3, _SockEventHdl) (SlSockEvent_t *);
dflet 0:1a07906111ec 578 #define SlExtLib3SockEventHandler __CONCAT2(SL_EXT_LIB_3, _SockEventHdl)
dflet 0:1a07906111ec 579
dflet 0:1a07906111ec 580 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 581 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 582 #endif
dflet 0:1a07906111ec 583
dflet 0:1a07906111ec 584 #endif
dflet 0:1a07906111ec 585
dflet 0:1a07906111ec 586
dflet 0:1a07906111ec 587 #ifdef SL_EXT_LIB_4
dflet 0:1a07906111ec 588
dflet 0:1a07906111ec 589 /* General Event Registration */
dflet 0:1a07906111ec 590 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_GENERAL_EVENT)
dflet 0:1a07906111ec 591 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 0:1a07906111ec 592 #define SlExtLib4GeneralEventHandler __CONCAT2(SL_EXT_LIB_4, _GeneralEventHdl)
dflet 0:1a07906111ec 593
dflet 0:1a07906111ec 594 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 595 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 596 #endif
dflet 0:1a07906111ec 597
dflet 0:1a07906111ec 598 /* Wlan Event Registration */
dflet 0:1a07906111ec 599 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_WLAN_EVENT)
dflet 0:1a07906111ec 600 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _WlanEventHdl) (SlWlanEvent_t *);
dflet 0:1a07906111ec 601 #define SlExtLib4WlanEventHandler __CONCAT2(SL_EXT_LIB_4, _WlanEventHdl)
dflet 0:1a07906111ec 602
dflet 0:1a07906111ec 603 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 604 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 605 #endif
dflet 0:1a07906111ec 606
dflet 0:1a07906111ec 607 /* NetApp Event Registration */
dflet 0:1a07906111ec 608 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_NETAPP_EVENT)
dflet 0:1a07906111ec 609 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 0:1a07906111ec 610 #define SlExtLib4NetAppEventHandler __CONCAT2(SL_EXT_LIB_4, _NetAppEventHdl)
dflet 0:1a07906111ec 611
dflet 0:1a07906111ec 612 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 613 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 614 #endif
dflet 0:1a07906111ec 615
dflet 0:1a07906111ec 616 /* Http Server Event Registration */
dflet 0:1a07906111ec 617 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_HTTP_SERVER_EVENT)
dflet 0:1a07906111ec 618 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 0:1a07906111ec 619 #define SlExtLib4HttpServerEventHandler __CONCAT2(SL_EXT_LIB_4, _HttpServerEventHdl)
dflet 0:1a07906111ec 620
dflet 0:1a07906111ec 621 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 622 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 623 #endif
dflet 0:1a07906111ec 624
dflet 0:1a07906111ec 625 /* Socket Event Registration */
dflet 0:1a07906111ec 626 #if __CONCAT2(SL_EXT_LIB_4, _NOTIFY_SOCK_EVENT)
dflet 0:1a07906111ec 627 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_4, _SockEventHdl) (SlSockEvent_t *);
dflet 0:1a07906111ec 628 #define SlExtLib4SockEventHandler __CONCAT2(SL_EXT_LIB_4, _SockEventHdl)
dflet 0:1a07906111ec 629
dflet 0:1a07906111ec 630 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 631 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 632 #endif
dflet 0:1a07906111ec 633
dflet 0:1a07906111ec 634 #endif
dflet 0:1a07906111ec 635
dflet 0:1a07906111ec 636
dflet 0:1a07906111ec 637 #ifdef SL_EXT_LIB_5
dflet 0:1a07906111ec 638
dflet 0:1a07906111ec 639 /* General Event Registration */
dflet 0:1a07906111ec 640 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_GENERAL_EVENT)
dflet 0:1a07906111ec 641 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _GeneralEventHdl) (SlDeviceEvent_t *);
dflet 0:1a07906111ec 642 #define SlExtLib5GeneralEventHandler __CONCAT2(SL_EXT_LIB_5, _GeneralEventHdl)
dflet 0:1a07906111ec 643
dflet 0:1a07906111ec 644 #undef EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 645 #define EXT_LIB_REGISTERED_GENERAL_EVENTS
dflet 0:1a07906111ec 646 #endif
dflet 0:1a07906111ec 647
dflet 0:1a07906111ec 648 /* Wlan Event Registration */
dflet 0:1a07906111ec 649 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_WLAN_EVENT)
dflet 0:1a07906111ec 650 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _WlanEventHdl) (SlWlanEvent_t *);
dflet 0:1a07906111ec 651 #define SlExtLib5WlanEventHandler __CONCAT2(SL_EXT_LIB_5, _WlanEventHdl)
dflet 0:1a07906111ec 652
dflet 0:1a07906111ec 653 #undef EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 654 #define EXT_LIB_REGISTERED_WLAN_EVENTS
dflet 0:1a07906111ec 655 #endif
dflet 0:1a07906111ec 656
dflet 0:1a07906111ec 657 /* NetApp Event Registration */
dflet 0:1a07906111ec 658 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_NETAPP_EVENT)
dflet 0:1a07906111ec 659 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _NetAppEventHdl) (SlNetAppEvent_t *);
dflet 0:1a07906111ec 660 #define SlExtLib5NetAppEventHandler __CONCAT2(SL_EXT_LIB_5, _NetAppEventHdl)
dflet 0:1a07906111ec 661
dflet 0:1a07906111ec 662 #undef EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 663 #define EXT_LIB_REGISTERED_NETAPP_EVENTS
dflet 0:1a07906111ec 664 #endif
dflet 0:1a07906111ec 665
dflet 0:1a07906111ec 666 /* Http Server Event Registration */
dflet 0:1a07906111ec 667 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_HTTP_SERVER_EVENT)
dflet 0:1a07906111ec 668 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _HttpServerEventHdl) (SlHttpServerEvent_t* , SlHttpServerResponse_t*);
dflet 0:1a07906111ec 669 #define SlExtLib5HttpServerEventHandler __CONCAT2(SL_EXT_LIB_5, _HttpServerEventHdl)
dflet 0:1a07906111ec 670
dflet 0:1a07906111ec 671 #undef EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 672 #define EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS
dflet 0:1a07906111ec 673 #endif
dflet 0:1a07906111ec 674
dflet 0:1a07906111ec 675 /* Socket Event Registration */
dflet 0:1a07906111ec 676 #if __CONCAT2(SL_EXT_LIB_5, _NOTIFY_SOCK_EVENT)
dflet 0:1a07906111ec 677 extern _SlEventPropogationStatus_e __CONCAT2(SL_EXT_LIB_5, _SockEventHdl) (SlSockEvent_t *);
dflet 0:1a07906111ec 678 #define SlExtLib5SockEventHandler __CONCAT2(SL_EXT_LIB_5, _SockEventHdl)
dflet 0:1a07906111ec 679
dflet 0:1a07906111ec 680 #undef EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 681 #define EXT_LIB_REGISTERED_SOCK_EVENTS
dflet 0:1a07906111ec 682 #endif
dflet 0:1a07906111ec 683
dflet 0:1a07906111ec 684 #endif
dflet 0:1a07906111ec 685
dflet 0:1a07906111ec 686
dflet 0:1a07906111ec 687
dflet 0:1a07906111ec 688 #if defined(EXT_LIB_REGISTERED_GENERAL_EVENTS)
dflet 0:1a07906111ec 689 void _SlDrvHandleGeneralEvents(SlDeviceEvent_t *slGeneralEvent);
dflet 0:1a07906111ec 690 #endif
dflet 0:1a07906111ec 691
dflet 0:1a07906111ec 692 #if defined(EXT_LIB_REGISTERED_WLAN_EVENTS)
dflet 0:1a07906111ec 693 void _SlDrvHandleWlanEvents(SlWlanEvent_t *slWlanEvent);
dflet 0:1a07906111ec 694 #endif
dflet 0:1a07906111ec 695
dflet 0:1a07906111ec 696 #if defined (EXT_LIB_REGISTERED_NETAPP_EVENTS)
dflet 0:1a07906111ec 697 void _SlDrvHandleNetAppEvents(SlNetAppEvent_t *slNetAppEvent);
dflet 0:1a07906111ec 698 #endif
dflet 0:1a07906111ec 699
dflet 0:1a07906111ec 700 #if defined(EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS)
dflet 0:1a07906111ec 701 void _SlDrvHandleHttpServerEvents(SlHttpServerEvent_t *slHttpServerEvent, SlHttpServerResponse_t *slHttpServerResponse);
dflet 0:1a07906111ec 702 #endif
dflet 0:1a07906111ec 703
dflet 0:1a07906111ec 704
dflet 0:1a07906111ec 705 #if defined(EXT_LIB_REGISTERED_SOCK_EVENTS)
dflet 0:1a07906111ec 706 void _SlDrvHandleSockEvents(SlSockEvent_t *slSockEvent);
dflet 0:1a07906111ec 707 #endif
dflet 0:1a07906111ec 708
dflet 0:1a07906111ec 709 #ifdef SL_PLATFORM_MULTI_THREADED
dflet 0:1a07906111ec 710 #include "cc3100_spawn.h"
dflet 0:1a07906111ec 711 #else
dflet 0:1a07906111ec 712 #include "cc3100_nonos.h"
dflet 0:1a07906111ec 713 #endif
dflet 0:1a07906111ec 714
dflet 0:1a07906111ec 715 namespace mbed_cc3100 {
dflet 0:1a07906111ec 716
dflet 0:1a07906111ec 717 /* Async functions description*/
dflet 0:1a07906111ec 718
dflet 0:1a07906111ec 719 /*!
dflet 0:1a07906111ec 720 \brief General async event for inspecting general events
dflet 0:1a07906111ec 721
dflet 0:1a07906111ec 722 \param[out] pSlDeviceEvent pointer to SlDeviceEvent_t
dflet 0:1a07906111ec 723
dflet 0:1a07906111ec 724 \par- <b>pSlDeviceEvent->Event = SL_DEVICE_FATAL_ERROR_EVENT </b>
dflet 0:1a07906111ec 725 - pSlDeviceEvent->EventData.deviceEvent fields:
dflet 0:1a07906111ec 726 - status: An error code indication from the device
dflet 0:1a07906111ec 727 - sender: The sender originator which is based on SlErrorSender_e enum
dflet 0:1a07906111ec 728
dflet 0:1a07906111ec 729 - <b>pSlDeviceEvent->Event = SL_DEVICE_ABORT_ERROR_EVENT </b>
dflet 0:1a07906111ec 730 Indicates a severe error occured and the device stopped
dflet 0:1a07906111ec 731 - pSlDeviceEvent->EventData.deviceReport fields:
dflet 0:1a07906111ec 732 - AbortType: An idication of the event type
dflet 0:1a07906111ec 733 - AbortData: Additional info about the data error
dflet 0:1a07906111ec 734
dflet 0:1a07906111ec 735
dflet 0:1a07906111ec 736 \par Example for fatal error:
dflet 0:1a07906111ec 737 \code
dflet 0:1a07906111ec 738 printf(General Event Handler - ID=%d Sender=%d\n\n",
dflet 0:1a07906111ec 739 pSlDeviceEvent->EventData.deviceEvent.status, // status of the general event
dflet 0:1a07906111ec 740 pSlDeviceEvent->EventData.deviceEvent.sender); // sender type
dflet 0:1a07906111ec 741 \endcode
dflet 0:1a07906111ec 742 \par Example for abort request:
dflet 0:1a07906111ec 743 \code
dflet 0:1a07906111ec 744 printf(Abort type =%d Abort Data=%d\n\n",
dflet 0:1a07906111ec 745 pSlDeviceEvent->EventData.deviceReport.AbortType,
dflet 0:1a07906111ec 746 pSlDeviceEvent->EventData.deviceReport.AbortData);
dflet 0:1a07906111ec 747
dflet 0:1a07906111ec 748 \endcode
dflet 0:1a07906111ec 749 */
dflet 0:1a07906111ec 750 //#if (defined(sl_GeneralEvtHdlr))
dflet 0:1a07906111ec 751 //void sl_GeneralEvtHdlr(SlDeviceEvent_t *pSlDeviceEvent);
dflet 0:1a07906111ec 752 //#endif
dflet 0:1a07906111ec 753
dflet 0:1a07906111ec 754
dflet 0:1a07906111ec 755 /*!
dflet 0:1a07906111ec 756 \brief WLAN Async event handler
dflet 0:1a07906111ec 757
dflet 0:1a07906111ec 758 \param[out] pSlWlanEvent pointer to SlWlanEvent_t data
dflet 0:1a07906111ec 759
dflet 0:1a07906111ec 760 \par
dflet 0:1a07906111ec 761 Parameters:
dflet 0:1a07906111ec 762
dflet 0:1a07906111ec 763 - <b>pSlWlanEvent->Event = SL_WLAN_CONNECT_EVENT </b>, STA or P2P client connection indication event
dflet 0:1a07906111ec 764 - pSlWlanEvent->EventData.STAandP2PModeWlanConnected main fields:
dflet 0:1a07906111ec 765 - ssid_name
dflet 0:1a07906111ec 766 - ssid_len
dflet 0:1a07906111ec 767 - bssid
dflet 0:1a07906111ec 768 - go_peer_device_name
dflet 0:1a07906111ec 769 - go_peer_device_name_len
dflet 0:1a07906111ec 770
dflet 0:1a07906111ec 771 - <b>pSlWlanEvent->Event = SL_WLAN_DISCONNECT_EVENT </b>, STA or P2P client disconnection event
dflet 0:1a07906111ec 772 - pSlWlanEvent->EventData.STAandP2PModeDisconnected main fields:
dflet 0:1a07906111ec 773 - ssid_name
dflet 0:1a07906111ec 774 - ssid_len
dflet 0:1a07906111ec 775 - reason_code
dflet 0:1a07906111ec 776
dflet 0:1a07906111ec 777 - <b>pSlWlanEvent->Event = SL_WLAN_STA_CONNECTED_EVENT </b>, AP/P2P(Go) connected STA/P2P(Client)
dflet 0:1a07906111ec 778 - pSlWlanEvent->EventData.APModeStaConnected fields:
dflet 0:1a07906111ec 779 - go_peer_device_name
dflet 0:1a07906111ec 780 - mac
dflet 0:1a07906111ec 781 - go_peer_device_name_len
dflet 0:1a07906111ec 782 - wps_dev_password_id
dflet 0:1a07906111ec 783 - own_ssid: relevant for event sta-connected only
dflet 0:1a07906111ec 784 - own_ssid_len: relevant for event sta-connected only
dflet 0:1a07906111ec 785
dflet 0:1a07906111ec 786 - <b>pSlWlanEvent->Event = SL_WLAN_STA_DISCONNECTED_EVENT </b>, AP/P2P(Go) disconnected STA/P2P(Client)
dflet 0:1a07906111ec 787 - pSlWlanEvent->EventData.APModestaDisconnected fields:
dflet 0:1a07906111ec 788 - go_peer_device_name
dflet 0:1a07906111ec 789 - mac
dflet 0:1a07906111ec 790 - go_peer_device_name_len
dflet 0:1a07906111ec 791 - wps_dev_password_id
dflet 0:1a07906111ec 792 - own_ssid: relevant for event sta-connected only
dflet 0:1a07906111ec 793 - own_ssid_len: relevant for event sta-connected only
dflet 0:1a07906111ec 794
dflet 0:1a07906111ec 795 - <b>pSlWlanEvent->Event = SL_WLAN_SMART_CONFIG_COMPLETE_EVENT </b>
dflet 0:1a07906111ec 796 - pSlWlanEvent->EventData.smartConfigStartResponse fields:
dflet 0:1a07906111ec 797 - status
dflet 0:1a07906111ec 798 - ssid_len
dflet 0:1a07906111ec 799 - ssid
dflet 0:1a07906111ec 800 - private_token_len
dflet 0:1a07906111ec 801 - private_token
dflet 0:1a07906111ec 802
dflet 0:1a07906111ec 803 - <b>pSlWlanEvent->Event = SL_WLAN_SMART_CONFIG_STOP_EVENT </b>
dflet 0:1a07906111ec 804 - pSlWlanEvent->EventData.smartConfigStopResponse fields:
dflet 0:1a07906111ec 805 - status
dflet 0:1a07906111ec 806
dflet 0:1a07906111ec 807 - <b>pSlWlanEvent->Event = SL_WLAN_P2P_DEV_FOUND_EVENT </b>
dflet 0:1a07906111ec 808 - pSlWlanEvent->EventData.P2PModeDevFound fields:
dflet 0:1a07906111ec 809 - go_peer_device_name
dflet 0:1a07906111ec 810 - mac
dflet 0:1a07906111ec 811 - go_peer_device_name_len
dflet 0:1a07906111ec 812 - wps_dev_password_id
dflet 0:1a07906111ec 813 - own_ssid: relevant for event sta-connected only
dflet 0:1a07906111ec 814 - own_ssid_len: relevant for event sta-connected only
dflet 0:1a07906111ec 815
dflet 0:1a07906111ec 816 - <b>pSlWlanEvent->Event = SL_WLAN_P2P_NEG_REQ_RECEIVED_EVENT </b>
dflet 0:1a07906111ec 817 - pSlWlanEvent->EventData.P2PModeNegReqReceived fields
dflet 0:1a07906111ec 818 - go_peer_device_name
dflet 0:1a07906111ec 819 - mac
dflet 0:1a07906111ec 820 - go_peer_device_name_len
dflet 0:1a07906111ec 821 - wps_dev_password_id
dflet 0:1a07906111ec 822 - own_ssid: relevant for event sta-connected only
dflet 0:1a07906111ec 823
dflet 0:1a07906111ec 824 - <b>pSlWlanEvent->Event = SL_WLAN_CONNECTION_FAILED_EVENT </b>, P2P only
dflet 0:1a07906111ec 825 - pSlWlanEvent->EventData.P2PModewlanConnectionFailure fields:
dflet 0:1a07906111ec 826 - status
dflet 0:1a07906111ec 827 */
dflet 0:1a07906111ec 828 //#if (defined(sl_WlanEvtHdlr))
dflet 0:1a07906111ec 829 //void sl_WlanEvtHdlr(SlWlanEvent_t *pSlWlanEvent);
dflet 0:1a07906111ec 830 //#endif
dflet 0:1a07906111ec 831
dflet 0:1a07906111ec 832
dflet 0:1a07906111ec 833 /*!
dflet 0:1a07906111ec 834 \brief NETAPP Async event handler
dflet 0:1a07906111ec 835
dflet 0:1a07906111ec 836 \param[out] pSlNetApp pointer to SlNetAppEvent_t data
dflet 0:1a07906111ec 837
dflet 0:1a07906111ec 838 \par
dflet 0:1a07906111ec 839 Parameters:
dflet 0:1a07906111ec 840 - <b>pSlNetApp->Event = SL_NETAPP_IPV4_IPACQUIRED_EVENT</b>, IPV4 acquired event
dflet 0:1a07906111ec 841 - pSlNetApp->EventData.ipAcquiredV4 fields:
dflet 0:1a07906111ec 842 - ip
dflet 0:1a07906111ec 843 - gateway
dflet 0:1a07906111ec 844 - dns
dflet 0:1a07906111ec 845
dflet 0:1a07906111ec 846 - <b>pSlNetApp->Event = SL_NETAPP_IP_LEASED_EVENT</b>, AP or P2P go dhcp lease event
dflet 0:1a07906111ec 847 - pSlNetApp->EventData.ipLeased fields:
dflet 0:1a07906111ec 848 - ip_address
dflet 0:1a07906111ec 849 - lease_time
dflet 0:1a07906111ec 850 - mac
dflet 0:1a07906111ec 851
dflet 0:1a07906111ec 852 - <b>pSlNetApp->Event = SL_NETAPP_IP_RELEASED_EVENT</b>, AP or P2P go dhcp ip release event
dflet 0:1a07906111ec 853 - pSlNetApp->EventData.ipReleased fields
dflet 0:1a07906111ec 854 - ip_address
dflet 0:1a07906111ec 855 - mac
dflet 0:1a07906111ec 856 - reason
dflet 0:1a07906111ec 857
dflet 0:1a07906111ec 858 */
dflet 0:1a07906111ec 859 //#if (defined(sl_NetAppEvtHdlr))
dflet 0:1a07906111ec 860 //void sl_NetAppEvtHdlr(SlNetAppEvent_t *pSlNetApp);
dflet 0:1a07906111ec 861 //#endif
dflet 0:1a07906111ec 862
dflet 0:1a07906111ec 863 /*!
dflet 0:1a07906111ec 864 \brief Socket Async event handler
dflet 0:1a07906111ec 865
dflet 0:1a07906111ec 866 \param[out] pSlSockEvent pointer to SlSockEvent_t data
dflet 0:1a07906111ec 867
dflet 0:1a07906111ec 868 \par
dflet 0:1a07906111ec 869 Parameters:\n
dflet 0:1a07906111ec 870 - <b>pSlSockEvent->Event = SL_SOCKET_TX_FAILED_EVENT</b>
dflet 0:1a07906111ec 871 - pSlSockEvent->SockTxFailData fields:
dflet 0:1a07906111ec 872 - sd
dflet 0:1a07906111ec 873 - status
dflet 0:1a07906111ec 874 - <b>pSlSockEvent->Event = SL_SOCKET_ASYNC_EVENT</b>
dflet 0:1a07906111ec 875 - pSlSockEvent->SockAsyncData fields:
dflet 0:1a07906111ec 876 - sd
dflet 0:1a07906111ec 877 - type: SSL_ACCEPT or RX_FRAGMENTATION_TOO_BIG or OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED
dflet 0:1a07906111ec 878 - val
dflet 0:1a07906111ec 879
dflet 0:1a07906111ec 880 */
dflet 0:1a07906111ec 881 //#if (defined(sl_SockEvtHdlr))
dflet 0:1a07906111ec 882 //void sl_SockEvtHdlr(SlSockEvent_t *pSlSockEvent);
dflet 0:1a07906111ec 883 //#endif
dflet 0:1a07906111ec 884
dflet 0:1a07906111ec 885 /*!
dflet 0:1a07906111ec 886 \brief HTTP server async event
dflet 0:1a07906111ec 887
dflet 0:1a07906111ec 888 \param[out] pSlHttpServerEvent pointer to SlHttpServerEvent_t
dflet 0:1a07906111ec 889 \param[in] pSlHttpServerResponse pointer to SlHttpServerResponse_t
dflet 0:1a07906111ec 890
dflet 0:1a07906111ec 891 \par
dflet 0:1a07906111ec 892 Parameters: \n
dflet 0:1a07906111ec 893
dflet 0:1a07906111ec 894 - <b>pSlHttpServerEvent->Event = SL_NETAPP_HTTPGETTOKENVALUE_EVENT</b>
dflet 0:1a07906111ec 895 - pSlHttpServerEvent->EventData fields:
dflet 0:1a07906111ec 896 - httpTokenName
dflet 0:1a07906111ec 897 - data
dflet 0:1a07906111ec 898 - len
dflet 0:1a07906111ec 899 - pSlHttpServerResponse->ResponseData fields:
dflet 0:1a07906111ec 900 - data
dflet 0:1a07906111ec 901 - len
dflet 0:1a07906111ec 902
dflet 0:1a07906111ec 903 - <b>pSlHttpServerEvent->Event = SL_NETAPP_HTTPPOSTTOKENVALUE_EVENT</b>
dflet 0:1a07906111ec 904 - pSlHttpServerEvent->EventData.httpPostData fields:
dflet 0:1a07906111ec 905 - action
dflet 0:1a07906111ec 906 - token_name
dflet 0:1a07906111ec 907 - token_value
dflet 0:1a07906111ec 908 - pSlHttpServerResponse->ResponseData fields:
dflet 0:1a07906111ec 909 - data
dflet 0:1a07906111ec 910 - len
dflet 0:1a07906111ec 911
dflet 0:1a07906111ec 912 */
dflet 0:1a07906111ec 913 //#if (defined(sl_HttpServerCallback))
dflet 0:1a07906111ec 914 //void sl_HttpServerCallback(SlHttpServerEvent_t *pSlHttpServerEvent, SlHttpServerResponse_t *pSlHttpServerResponse);
dflet 0:1a07906111ec 915 //#endif
dflet 0:1a07906111ec 916 /*!
dflet 0:1a07906111ec 917
dflet 0:1a07906111ec 918 Close the Doxygen group.
dflet 0:1a07906111ec 919 @}
dflet 0:1a07906111ec 920
dflet 0:1a07906111ec 921 */
dflet 0:1a07906111ec 922
dflet 0:1a07906111ec 923 }//namespace mbed_cc3100
dflet 0:1a07906111ec 924
dflet 0:1a07906111ec 925 #endif /* __SIMPLELINK_H__ */
dflet 0:1a07906111ec 926
dflet 0:1a07906111ec 927