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 * driver.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 #ifndef DRIVER_INT_H_
dflet 0:1a07906111ec 38 #define DRIVER_INT_H_
dflet 0:1a07906111ec 39
dflet 0:1a07906111ec 40 #include "mbed.h"
dflet 0:1a07906111ec 41 #include "cc3100_user.h"
dflet 0:1a07906111ec 42 #include "cc3100_simplelink.h"
dflet 0:1a07906111ec 43
dflet 0:1a07906111ec 44 #include "cc3100_protocol.h"
dflet 0:1a07906111ec 45 #include "cc3100_spi.h"
dflet 0:1a07906111ec 46 //#include "cc3100_nonos.h"
dflet 0:1a07906111ec 47 #include "cc3100_netapp.h"
dflet 0:1a07906111ec 48 //#include "cc3100.h"
dflet 0:1a07906111ec 49
dflet 0:1a07906111ec 50
dflet 0:1a07906111ec 51 /*****************************************************************************/
dflet 0:1a07906111ec 52 /* Macro declarations */
dflet 0:1a07906111ec 53 /*****************************************************************************/
dflet 0:1a07906111ec 54
dflet 0:1a07906111ec 55 /* 2 LSB of the N2H_SYNC_PATTERN are for sequence number
dflet 0:1a07906111ec 56 only in SPI interface
dflet 0:1a07906111ec 57 support backward sync pattern */
dflet 0:1a07906111ec 58 #define N2H_SYNC_PATTERN_SEQ_NUM_BITS ((uint32_t)0x00000003) /* Bits 0..1 - use the 2 LBS for seq num */
dflet 0:1a07906111ec 59 #define N2H_SYNC_PATTERN_SEQ_NUM_EXISTS ((uint32_t)0x00000004) /* Bit 2 - sign that sequence number exists in the sync pattern */
dflet 0:1a07906111ec 60 #define N2H_SYNC_PATTERN_MASK ((uint32_t)0xFFFFFFF8) /* Bits 3..31 - constant SYNC PATTERN */
dflet 0:1a07906111ec 61 #define N2H_SYNC_SPI_BUGS_MASK ((uint32_t)0x7FFF7F7F) /* Bits 7,15,31 - ignore the SPI (8,16,32 bites bus) error bits */
dflet 0:1a07906111ec 62 #define BUF_SYNC_SPIM(pBuf) ((*(uint32_t *)(pBuf)) & N2H_SYNC_SPI_BUGS_MASK)
dflet 0:1a07906111ec 63 #define N2H_SYNC_SPIM (N2H_SYNC_PATTERN & N2H_SYNC_SPI_BUGS_MASK)
dflet 0:1a07906111ec 64 #define N2H_SYNC_SPIM_WITH_SEQ(TxSeqNum) ((N2H_SYNC_SPIM & N2H_SYNC_PATTERN_MASK) | N2H_SYNC_PATTERN_SEQ_NUM_EXISTS | ((TxSeqNum) & (N2H_SYNC_PATTERN_SEQ_NUM_BITS)))
dflet 0:1a07906111ec 65 #define MATCH_WOUT_SEQ_NUM(pBuf) ( BUF_SYNC_SPIM(pBuf) == N2H_SYNC_SPIM )
dflet 0:1a07906111ec 66 #define MATCH_WITH_SEQ_NUM(pBuf, TxSeqNum) ( BUF_SYNC_SPIM(pBuf) == (N2H_SYNC_SPIM_WITH_SEQ(TxSeqNum)) )
dflet 0:1a07906111ec 67 #define N2H_SYNC_PATTERN_MATCH(pBuf, TxSeqNum) \
dflet 0:1a07906111ec 68 ( \
dflet 0:1a07906111ec 69 ( (*((uint32_t *)pBuf) & N2H_SYNC_PATTERN_SEQ_NUM_EXISTS) && ( MATCH_WITH_SEQ_NUM(pBuf, TxSeqNum) ) ) || \
dflet 0:1a07906111ec 70 ( !(*((uint32_t *)pBuf) & N2H_SYNC_PATTERN_SEQ_NUM_EXISTS) && ( MATCH_WOUT_SEQ_NUM(pBuf ) ) ) \
dflet 0:1a07906111ec 71 )
dflet 0:1a07906111ec 72
dflet 0:1a07906111ec 73 #define OPCODE(_ptr) (((_SlResponseHeader_t *)(_ptr))->GenHeader.Opcode)
dflet 0:1a07906111ec 74 #define RSP_PAYLOAD_LEN(_ptr) (((_SlResponseHeader_t *)(_ptr))->GenHeader.Len - _SL_RESP_SPEC_HDR_SIZE)
dflet 0:1a07906111ec 75 #define SD(_ptr) (((_SocketAddrResponse_u *)(_ptr))->IpV4.sd)
dflet 0:1a07906111ec 76 /* Actual size of Recv/Recvfrom response data */
dflet 0:1a07906111ec 77 #define ACT_DATA_SIZE(_ptr) (((_SocketAddrResponse_u *)(_ptr))->IpV4.statusOrLen)
dflet 0:1a07906111ec 78
dflet 0:1a07906111ec 79 #define _SL_PROTOCOL_ALIGN_SIZE(msgLen) (((msgLen)+3) & (~3))
dflet 0:1a07906111ec 80 #define _SL_IS_PROTOCOL_ALIGNED_SIZE(msgLen) (!((msgLen) & 3))
dflet 0:1a07906111ec 81 #define _SL_PROTOCOL_CALC_LEN(pCmdCtrl,pCmdExt) ((pCmdExt) ? \
dflet 0:1a07906111ec 82 (_SL_PROTOCOL_ALIGN_SIZE(pCmdCtrl->TxDescLen) + _SL_PROTOCOL_ALIGN_SIZE(pCmdExt->TxPayloadLen)) : \
dflet 0:1a07906111ec 83 (_SL_PROTOCOL_ALIGN_SIZE(pCmdCtrl->TxDescLen)))
dflet 0:1a07906111ec 84
dflet 0:1a07906111ec 85
dflet 0:1a07906111ec 86 namespace mbed_cc3100 {
dflet 0:1a07906111ec 87
dflet 0:1a07906111ec 88 //class cc3100;
dflet 0:1a07906111ec 89
dflet 0:1a07906111ec 90 /*****************************************************************************/
dflet 0:1a07906111ec 91 /* Structure/Enum declarations */
dflet 0:1a07906111ec 92 /*****************************************************************************/
dflet 0:1a07906111ec 93 //typedef void(*_SlSpawnEntryFunc_t)(void* pValue);
dflet 0:1a07906111ec 94
dflet 0:1a07906111ec 95 typedef struct {
dflet 0:1a07906111ec 96 _SlOpcode_t Opcode;
dflet 0:1a07906111ec 97 _SlArgSize_t TxDescLen;
dflet 0:1a07906111ec 98 _SlArgSize_t RxDescLen;
dflet 0:1a07906111ec 99 } _SlCmdCtrl_t;
dflet 0:1a07906111ec 100
dflet 0:1a07906111ec 101 typedef struct {
dflet 0:1a07906111ec 102 uint16_t TxPayloadLen;
dflet 0:1a07906111ec 103 int16_t RxPayloadLen;
dflet 0:1a07906111ec 104 int16_t ActualRxPayloadLen;
dflet 0:1a07906111ec 105 uint8_t *pTxPayload;
dflet 0:1a07906111ec 106 uint8_t *pRxPayload;
dflet 0:1a07906111ec 107 } _SlCmdExt_t;
dflet 0:1a07906111ec 108
dflet 0:1a07906111ec 109
dflet 0:1a07906111ec 110 typedef struct _SlArgsData_t {
dflet 0:1a07906111ec 111 uint8_t *pArgs;
dflet 0:1a07906111ec 112 uint8_t *pData;
dflet 0:1a07906111ec 113 } _SlArgsData_t;
dflet 0:1a07906111ec 114
dflet 0:1a07906111ec 115 typedef struct {
dflet 0:1a07906111ec 116 _SlSyncObj_t SyncObj;
dflet 0:1a07906111ec 117 uint8_t *pRespArgs;
dflet 0:1a07906111ec 118 uint8_t ActionID;
dflet 0:1a07906111ec 119 uint8_t AdditionalData; /* use for socketID and one bit which indicate supprt IPV6 or not (1=support, 0 otherwise) */
dflet 0:1a07906111ec 120 uint8_t NextIndex;
dflet 0:1a07906111ec 121
dflet 0:1a07906111ec 122 } _SlPoolObj_t;
dflet 0:1a07906111ec 123
dflet 0:1a07906111ec 124
dflet 0:1a07906111ec 125 typedef enum {
dflet 0:1a07906111ec 126 SOCKET_0,
dflet 0:1a07906111ec 127 SOCKET_1,
dflet 0:1a07906111ec 128 SOCKET_2,
dflet 0:1a07906111ec 129 SOCKET_3,
dflet 0:1a07906111ec 130 SOCKET_4,
dflet 0:1a07906111ec 131 SOCKET_5,
dflet 0:1a07906111ec 132 SOCKET_6,
dflet 0:1a07906111ec 133 SOCKET_7,
dflet 0:1a07906111ec 134 MAX_SOCKET_ENUM_IDX,
dflet 0:1a07906111ec 135 #ifndef SL_TINY_EXT
dflet 0:1a07906111ec 136 ACCEPT_ID = MAX_SOCKET_ENUM_IDX,
dflet 0:1a07906111ec 137 CONNECT_ID,
dflet 0:1a07906111ec 138 #else
dflet 0:1a07906111ec 139 CONNECT_ID = MAX_SOCKET_ENUM_IDX,
dflet 0:1a07906111ec 140 #endif
dflet 0:1a07906111ec 141 #ifndef SL_TINY_EXT
dflet 0:1a07906111ec 142 SELECT_ID,
dflet 0:1a07906111ec 143 #endif
dflet 0:1a07906111ec 144 GETHOSYBYNAME_ID,
dflet 0:1a07906111ec 145 #ifndef SL_TINY_EXT
dflet 0:1a07906111ec 146 GETHOSYBYSERVICE_ID,
dflet 0:1a07906111ec 147 PING_ID,
dflet 0:1a07906111ec 148 #endif
dflet 0:1a07906111ec 149 START_STOP_ID,
dflet 0:1a07906111ec 150 RECV_ID
dflet 0:1a07906111ec 151 } _SlActionID_e;
dflet 0:1a07906111ec 152
dflet 0:1a07906111ec 153 typedef struct _SlActionLookup_t {
dflet 0:1a07906111ec 154 uint8_t ActionID;
dflet 0:1a07906111ec 155 uint16_t ActionAsyncOpcode;
dflet 0:1a07906111ec 156 _SlSpawnEntryFunc_t AsyncEventHandler;
dflet 0:1a07906111ec 157
dflet 0:1a07906111ec 158 } _SlActionLookup_t;
dflet 0:1a07906111ec 159
dflet 0:1a07906111ec 160
dflet 0:1a07906111ec 161 typedef struct {
dflet 0:1a07906111ec 162 uint8_t TxPoolCnt;
dflet 0:1a07906111ec 163 _SlLockObj_t TxLockObj;
dflet 0:1a07906111ec 164 _SlSyncObj_t TxSyncObj;
dflet 0:1a07906111ec 165 } _SlFlowContCB_t;
dflet 0:1a07906111ec 166
dflet 0:1a07906111ec 167 typedef enum {
dflet 0:1a07906111ec 168 RECV_RESP_CLASS,
dflet 0:1a07906111ec 169 CMD_RESP_CLASS,
dflet 0:1a07906111ec 170 ASYNC_EVT_CLASS,
dflet 0:1a07906111ec 171 DUMMY_MSG_CLASS
dflet 0:1a07906111ec 172 } _SlRxMsgClass_e;
dflet 0:1a07906111ec 173
dflet 0:1a07906111ec 174 typedef struct {
dflet 0:1a07906111ec 175 uint8_t *pAsyncBuf; /* place to write pointer to buffer with CmdResp's Header + Arguments */
dflet 0:1a07906111ec 176 uint8_t ActionIndex;
dflet 0:1a07906111ec 177 _SlSpawnEntryFunc_t AsyncEvtHandler; /* place to write pointer to AsyncEvent handler (calc-ed by Opcode) */
dflet 0:1a07906111ec 178 _SlRxMsgClass_e RxMsgClass; /* type of Rx message */
dflet 0:1a07906111ec 179 } AsyncExt_t;
dflet 0:1a07906111ec 180
dflet 0:1a07906111ec 181 typedef struct {
dflet 0:1a07906111ec 182 _SlCmdCtrl_t *pCmdCtrl;
dflet 0:1a07906111ec 183 uint8_t *pTxRxDescBuff;
dflet 0:1a07906111ec 184 _SlCmdExt_t *pCmdExt;
dflet 0:1a07906111ec 185 AsyncExt_t AsyncExt;
dflet 0:1a07906111ec 186 } _SlFunctionParams_t;
dflet 0:1a07906111ec 187
dflet 0:1a07906111ec 188 typedef void (*P_INIT_CALLBACK)(uint32_t Status);
dflet 0:1a07906111ec 189
dflet 0:1a07906111ec 190 typedef struct {
dflet 0:1a07906111ec 191 _SlFd_t FD;
dflet 0:1a07906111ec 192 _SlLockObj_t GlobalLockObj;
dflet 0:1a07906111ec 193 _SlCommandHeader_t TempProtocolHeader;
dflet 0:1a07906111ec 194 P_INIT_CALLBACK pInitCallback;
dflet 0:1a07906111ec 195
dflet 0:1a07906111ec 196 _SlPoolObj_t ObjPool[MAX_CONCURRENT_ACTIONS];
dflet 0:1a07906111ec 197 uint8_t FreePoolIdx;
dflet 0:1a07906111ec 198 uint8_t PendingPoolIdx;
dflet 0:1a07906111ec 199 uint8_t ActivePoolIdx;
dflet 0:1a07906111ec 200 uint32_t ActiveActionsBitmap;
dflet 0:1a07906111ec 201 _SlLockObj_t ProtectionLockObj;
dflet 0:1a07906111ec 202
dflet 0:1a07906111ec 203 _SlSyncObj_t CmdSyncObj;
dflet 0:1a07906111ec 204 uint8_t IsCmdRespWaited;
dflet 0:1a07906111ec 205 _SlFlowContCB_t FlowContCB;
dflet 0:1a07906111ec 206 uint8_t TxSeqNum;
dflet 0:1a07906111ec 207 uint8_t RxDoneCnt;
dflet 0:1a07906111ec 208 uint8_t SocketNonBlocking;
dflet 0:1a07906111ec 209 uint8_t SocketTXFailure;
dflet 0:1a07906111ec 210 /* for stack reduction the parameters are globals */
dflet 0:1a07906111ec 211 _SlFunctionParams_t FunctionParams;
dflet 0:1a07906111ec 212
dflet 0:1a07906111ec 213 uint8_t ActionIndex;
dflet 0:1a07906111ec 214 }_SlDriverCb_t;
dflet 0:1a07906111ec 215
dflet 0:1a07906111ec 216 extern volatile uint8_t RxIrqCnt;
dflet 0:1a07906111ec 217
dflet 0:1a07906111ec 218 extern _SlDriverCb_t* g_pCB;
dflet 0:1a07906111ec 219 typedef uint8_t _SlSd_t;
dflet 0:1a07906111ec 220
dflet 0:1a07906111ec 221 class cc3100_driver
dflet 0:1a07906111ec 222 {
dflet 0:1a07906111ec 223
dflet 0:1a07906111ec 224 public:
dflet 0:1a07906111ec 225
dflet 0:1a07906111ec 226 cc3100_driver(cc3100_spi &spi, cc3100_nonos &nonos, cc3100_netapp &netapp, cc3100_flowcont &flowcont);
dflet 0:1a07906111ec 227
dflet 0:1a07906111ec 228 ~cc3100_driver();
dflet 0:1a07906111ec 229
dflet 0:1a07906111ec 230
dflet 0:1a07906111ec 231 /*****************************************************************************/
dflet 0:1a07906111ec 232 /* Function prototypes */
dflet 0:1a07906111ec 233 /*****************************************************************************/
dflet 0:1a07906111ec 234 typedef _SlDriverCb_t pDriver;
dflet 0:1a07906111ec 235
dflet 0:1a07906111ec 236 uint8_t _SlDrvProtectAsyncRespSetting(uint8_t *pAsyncRsp, uint8_t ActionID, uint8_t SocketID);
dflet 0:1a07906111ec 237
dflet 0:1a07906111ec 238 bool _SL_PENDING_RX_MSG(pDriver* pDriverCB);
dflet 0:1a07906111ec 239
dflet 0:1a07906111ec 240 void _SlDrvDriverCBInit(void);
dflet 0:1a07906111ec 241
dflet 0:1a07906111ec 242 void _SlDrvDriverCBDeinit(void);
dflet 0:1a07906111ec 243
dflet 0:1a07906111ec 244 void _SlDrvRxIrqHandler(void *pValue);
dflet 0:1a07906111ec 245
dflet 0:1a07906111ec 246 _SlReturnVal_t _SlDrvCmdOp(_SlCmdCtrl_t *pCmdCtrl , void* pTxRxDescBuff , _SlCmdExt_t* pCmdExt);
dflet 0:1a07906111ec 247
dflet 0:1a07906111ec 248 _SlReturnVal_t _SlDrvCmdSend(_SlCmdCtrl_t *pCmdCtrl , void* pTxRxDescBuff , _SlCmdExt_t* pCmdExt);
dflet 0:1a07906111ec 249
dflet 0:1a07906111ec 250 _SlReturnVal_t _SlDrvDataReadOp(_SlSd_t Sd, _SlCmdCtrl_t *pCmdCtrl , void* pTxRxDescBuff , _SlCmdExt_t* pCmdExt);
dflet 0:1a07906111ec 251
dflet 0:1a07906111ec 252 _SlReturnVal_t _SlDrvDataWriteOp(_SlSd_t Sd, _SlCmdCtrl_t *pCmdCtrl , void* pTxRxDescBuff , _SlCmdExt_t* pCmdExt);
dflet 0:1a07906111ec 253 #ifndef SL_TINY_EXT
dflet 0:1a07906111ec 254 int16_t _SlDrvBasicCmd(_SlOpcode_t Opcode);
dflet 0:1a07906111ec 255 #endif
dflet 0:1a07906111ec 256 uint8_t _SlDrvWaitForPoolObj(uint8_t ActionID, uint8_t SocketID);
dflet 0:1a07906111ec 257
dflet 0:1a07906111ec 258 void _SlDrvReleasePoolObj(uint8_t pObj);
dflet 0:1a07906111ec 259
dflet 0:1a07906111ec 260 // void _SlDrvObjInit(void);
dflet 0:1a07906111ec 261
dflet 0:1a07906111ec 262 _SlReturnVal_t _SlDrvMsgRead(void);
dflet 0:1a07906111ec 263
dflet 0:1a07906111ec 264 _SlReturnVal_t _SlDrvMsgWrite(_SlCmdCtrl_t *pCmdCtrl,_SlCmdExt_t *pCmdExt, uint8_t *pTxRxDescBuff);
dflet 0:1a07906111ec 265
dflet 0:1a07906111ec 266 // _SlReturnVal_t _SlDrvMsgWrite(void);
dflet 0:1a07906111ec 267
dflet 0:1a07906111ec 268 _SlReturnVal_t _SlDrvMsgReadCmdCtx(void);
dflet 0:1a07906111ec 269
dflet 0:1a07906111ec 270 _SlReturnVal_t _SlDrvMsgReadSpawnCtx_(void *pValue);
dflet 0:1a07906111ec 271
dflet 0:1a07906111ec 272 void _SlDrvClassifyRxMsg(_SlOpcode_t Opcode );
dflet 0:1a07906111ec 273
dflet 0:1a07906111ec 274 _SlReturnVal_t _SlDrvRxHdrRead(uint8_t *pBuf, uint8_t *pAlignSize);
dflet 0:1a07906111ec 275
dflet 0:1a07906111ec 276 void _SlDrvShiftDWord(uint8_t *pBuf);
dflet 0:1a07906111ec 277
dflet 0:1a07906111ec 278 void _SlAsyncEventGenericHandler(void);
dflet 0:1a07906111ec 279
dflet 0:1a07906111ec 280 void _SlDrvObjDeInit(void);
dflet 0:1a07906111ec 281
dflet 0:1a07906111ec 282 void _SlRemoveFromList(uint8_t* ListIndex, uint8_t ItemIndex);
dflet 0:1a07906111ec 283
dflet 0:1a07906111ec 284 _SlReturnVal_t _SlFindAndSetActiveObj(_SlOpcode_t Opcode, uint8_t Sd);
dflet 0:1a07906111ec 285
dflet 0:1a07906111ec 286 uint16_t _SlDrvAlignSize(uint16_t msgLen);
dflet 0:1a07906111ec 287 void _SlDrvSyncObjWaitForever(_SlSyncObj_t *pSyncObj);
dflet 0:1a07906111ec 288 void _SlDrvSyncObjSignal(_SlSyncObj_t *pSyncObj);
dflet 0:1a07906111ec 289 void _SlDrvObjLock(_SlLockObj_t *pLockObj, _SlTime_t Timeout);
dflet 0:1a07906111ec 290 void _SlDrvObjLockWaitForever(_SlLockObj_t *pLockObj);
dflet 0:1a07906111ec 291 void _SlDrvObjUnLock(_SlLockObj_t *pLockObj);
dflet 0:1a07906111ec 292 void _SlDrvProtectionObjLockWaitForever();
dflet 0:1a07906111ec 293 void _SlDrvProtectionObjUnLock();
dflet 0:1a07906111ec 294 void _SlDrvMemZero(void* Addr, uint16_t size);
dflet 0:1a07906111ec 295 void _SlDrvResetCmdExt(_SlCmdExt_t* pCmdExt);
dflet 0:1a07906111ec 296
dflet 0:1a07906111ec 297
dflet 0:1a07906111ec 298 private:
dflet 0:1a07906111ec 299
dflet 0:1a07906111ec 300 cc3100_spi &_spi;
dflet 0:1a07906111ec 301 cc3100_nonos &_nonos;
dflet 0:1a07906111ec 302 cc3100_netapp &_netapp;
dflet 0:1a07906111ec 303 cc3100_flowcont &_flowcont;
dflet 0:1a07906111ec 304
dflet 0:1a07906111ec 305 };//class
dflet 0:1a07906111ec 306
dflet 0:1a07906111ec 307 }//namespace mbed_cc3100
dflet 0:1a07906111ec 308
dflet 0:1a07906111ec 309 #endif /* __DRIVER_INT_H__ */
dflet 0:1a07906111ec 310