Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
driver.h File Reference
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  _SlActionLookup_t
 
struct  _SlArgsData_t
 
struct  _SlCmdCtrl_t
 
struct  _SlCmdExt_t
 
struct  _SlDriverCb_t
 
struct  _SlFlowContCB_t
 
struct  _SlFunctionParams_t
 
struct  _SlPoolObj_t
 
struct  _SlTimeoutParams_t
 
struct  AsyncExt_t
 
struct  DeviceEventInfo_t
 

Macros

#define _SL_IS_PROTOCOL_ALIGNED_SIZE(msgLen)   (!((msgLen) & 3))
 
#define _SL_PROTOCOL_ALIGN_SIZE(msgLen)   (((msgLen)+3) & (~3))
 
#define _SL_PROTOCOL_CALC_LEN(pCmdCtrl, pCmdExt)
 
#define CPU_FREQ_IN_MHZ   (200)
 
#define INIT_COMPLETE_TIMEOUT   SL_DRIVER_TIMEOUT_LONG
 
#define SL_DRIVER_TIMEOUT_LONG   (65535) /* msec units */
 
#define SL_DRIVER_TIMEOUT_SHORT   (10000) /* msec units */
 
#define SL_DRV_LOCK_GLOBAL_LOCK_FOREVER()
 
#define SL_DRV_LOCK_GLOBAL_UNLOCK()
 
#define SL_DRV_OBJ_LOCK_FOREVER(pObj)   (void)_SlDrvObjLockWaitForever(pObj);
 
#define SL_DRV_OBJ_UNLOCK(pObj)   (void)_SlDrvObjUnLock(pObj);
 
#define SL_DRV_PROTECTION_OBJ_LOCK_FOREVER()   (void)_SlDrvProtectionObjLockWaitForever();
 
#define SL_DRV_PROTECTION_OBJ_UNLOCK()   (void)_SlDrvProtectionObjUnLock();
 
#define SL_DRV_SYNC_OBJ_CLEAR(pObj)   (void)sl_SyncObjWait(pObj,SL_OS_NO_WAIT);
 
#define SL_DRV_SYNC_OBJ_SIGNAL(pObj)   (void)_SlDrvSyncObjSignal(pObj);
 
#define SL_DRV_SYNC_OBJ_WAIT_FOREVER(SyncObj)
 
#define SL_DRV_SYNC_OBJ_WAIT_TIMEOUT(SyncObj, timeoutVal, apiIdx)
 
#define SL_IS_COMMAND_ALLOWED   ( (g_SlDeviceStatus & _SL_DRV_STATUS_BIT_DEVICE_STARTED) == _SL_DRV_STATUS_BIT_DEVICE_STARTED)
 
#define SL_SET_DEVICE_STARTED   (g_SlDeviceStatus |= _SL_DRV_STATUS_BIT_DEVICE_STARTED) /* bit 9 indicates device is started */
 
#define SL_UNSET_DEVICE_STARTED   (g_SlDeviceStatus &= (~_SL_DRV_STATUS_BIT_DEVICE_STARTED)) /* bit 9 indicates device is started */
 
#define STOP_DEVICE_TIMEOUT   SL_DRIVER_TIMEOUT_LONG
 
#define SYNC_PATTERN_TIMEOUT_IN_MSEC   (50) /* the sync patttern timeout in milliseconds units */
 
#define TIMEOUT_ONE_MORE_SHOT   (1)
 
#define TIMEOUT_STATE_EXPIRY   (0)
 
#define TIMEOUT_STATE_INIT_VAL   (2)
 
#define USEC_DELAY   (50)
 

Typedefs

typedef struct _SlActionLookup_t _SlActionLookup_t
 
typedef struct _SlArgsData_t _SlArgsData_t
 
typedef struct _SlPoolObj_t _SlPoolObj_t
 
typedef _u8 _SlSd_t
 

Enumerations

enum  _SlActionID_e
 
enum  _SlRxMsgClass_e
 

Functions

_SlReturnVal_t _sl_HandleAsync_Accept (void *pVoidBuf)
 
_SlReturnVal_t _sl_HandleAsync_Connect (void *pVoidBuf)
 
_SlReturnVal_t _sl_HandleAsync_DnsGetHostByAddr (void *pVoidBuf)
 
_SlReturnVal_t _sl_HandleAsync_DnsGetHostByName (void *pVoidBuf)
 
_SlReturnVal_t _sl_HandleAsync_DnsGetHostByService (void *pVoidBuf)
 
_SlReturnVal_t _sl_HandleAsync_InitComplete (void *pVoidBuf)
 
_SlReturnVal_t _sl_HandleAsync_PingResponse (void *pVoidBuf)
 
_SlReturnVal_t _sl_HandleAsync_Select (void *pVoidBuf)
 
void _sl_HandleAsync_Stop (void *pVoidBuf)
 
void _SlDriverHandleError (SlDeviceDriverError_e eError, _u32 info1, _u32 info2)
 
_u16 _SlDrvAlignSize (_u16 msgLen)
 
_i16 _SlDrvBasicCmd (_SlOpcode_t Opcode)
 
_SlReturnVal_t _SlDrvCmdOp (_SlCmdCtrl_t *pCmdCtrl, void *pTxRxDescBuff, _SlCmdExt_t *pCmdExt)
 
_SlReturnVal_t _SlDrvCmdSend (_SlCmdCtrl_t *pCmdCtrl, void *pTxRxDescBuff, _SlCmdExt_t *pCmdExt)
 
_SlReturnVal_t _SlDrvDataReadOp (_SlSd_t Sd, _SlCmdCtrl_t *pCmdCtrl, void *pTxRxDescBuff, _SlCmdExt_t *pCmdExt)
 
_SlReturnVal_t _SlDrvDataWriteOp (_SlSd_t Sd, _SlCmdCtrl_t *pCmdCtrl, void *pTxRxDescBuff, _SlCmdExt_t *pCmdExt)
 
_SlReturnVal_t _SlDrvDeviceEventHandler (void *pEventInfo)
 
_SlReturnVal_t _SlDrvDriverCBDeinit (void)
 
_SlReturnVal_t _SlDrvDriverCBInit (void)
 
_SlReturnVal_t _SlDrvGlobalObjUnLock (void)
 
void _SlDrvMemZero (void *Addr, _u16 size)
 
_SlReturnVal_t _SlDrvMsgReadSpawnCtx (void *pValue)
 
_SlReturnVal_t _SlDrvNetAppEventHandler (void *pArgs)
 
_SlReturnVal_t _SlDrvObjLock (_SlLockObj_t *pLockObj, _SlTime_t Timeout)
 
_SlReturnVal_t _SlDrvObjLockWaitForever (_SlLockObj_t *pLockObj)
 
_SlReturnVal_t _SlDrvObjUnLock (_SlLockObj_t *pLockObj)
 
_u8 _SlDrvProtectAsyncRespSetting (_u8 *pAsyncRsp, _SlActionID_e ActionID, _u8 SocketID)
 
_SlReturnVal_t _SlDrvProtectionObjLockWaitForever (void)
 
_SlReturnVal_t _SlDrvProtectionObjUnLock (void)
 
void _SlDrvReleasePoolObj (_u8 pObj)
 
void _SlDrvResetCmdExt (_SlCmdExt_t *pCmdExt)
 
_SlReturnVal_t _SlDrvRxIrqHandler (void *pValue)
 
_SlReturnVal_t _SlDrvSyncObjSignal (_SlSyncObj_t *pSyncObj)
 
_SlReturnVal_t _SlDrvSyncObjWaitForever (_SlSyncObj_t *pSyncObj)
 
_SlReturnVal_t _SlDrvSyncObjWaitTimeout (_SlSyncObj_t *pSyncObj, _u32 timeoutVal, SlDriverAPIWithTimeout_e apiIdx)
 
_u8 _SlDrvWaitForPoolObj (_u8 ActionID, _u8 SocketID)
 

Variables

_volatile _u8 g_bDeviceRestartIsRequired
 
_SlDriverCb_tg_pCB
 
_u16 g_SlDeviceStatus
 
P_SL_DEV_PING_CALLBACK pPingCallBackFunc
 
_volatile _u8 RxIrqCnt
 

Macro Definition Documentation

#define _SL_IS_PROTOCOL_ALIGNED_SIZE (   msgLen)    (!((msgLen) & 3))
#define _SL_PROTOCOL_ALIGN_SIZE (   msgLen)    (((msgLen)+3) & (~3))
#define _SL_PROTOCOL_CALC_LEN (   pCmdCtrl,
  pCmdExt 
)
Value:
((pCmdExt) ? \
(_SL_PROTOCOL_ALIGN_SIZE(pCmdCtrl->TxDescLen) + _SL_PROTOCOL_ALIGN_SIZE(pCmdExt->TxPayloadLen)) : \
(_SL_PROTOCOL_ALIGN_SIZE(pCmdCtrl->TxDescLen)))
#define _SL_PROTOCOL_ALIGN_SIZE(msgLen)
Definition: driver.h:349
#define CPU_FREQ_IN_MHZ   (200)
#define INIT_COMPLETE_TIMEOUT   SL_DRIVER_TIMEOUT_LONG
#define SL_DRIVER_TIMEOUT_LONG   (65535) /* msec units */
#define SL_DRIVER_TIMEOUT_SHORT   (10000) /* msec units */
#define SL_DRV_LOCK_GLOBAL_LOCK_FOREVER ( )
Value:
{ \
_SlReturnVal_t retVal; \
\
if (retVal) \
{ \
return retVal; \
} \
}
_i16 _SlReturnVal_t
Definition: simplelink.h:369
static _SlReturnVal_t _SlDrvObjGlobalLockWaitForever(void)
Definition: driver.c:2047
#define SL_DRV_LOCK_GLOBAL_UNLOCK ( )
Value:
{ \
_SlReturnVal_t retVal; \
\
retVal = _SlDrvGlobalObjUnLock(); \
if (retVal) \
{ \
return retVal; \
} \
}
_SlReturnVal_t _SlDrvGlobalObjUnLock(void)
Definition: driver.c:2057
_i16 _SlReturnVal_t
Definition: simplelink.h:369
#define SL_DRV_OBJ_LOCK_FOREVER (   pObj)    (void)_SlDrvObjLockWaitForever(pObj);
#define SL_DRV_OBJ_UNLOCK (   pObj)    (void)_SlDrvObjUnLock(pObj);
#define SL_DRV_PROTECTION_OBJ_LOCK_FOREVER ( )    (void)_SlDrvProtectionObjLockWaitForever();
#define SL_DRV_PROTECTION_OBJ_UNLOCK ( )    (void)_SlDrvProtectionObjUnLock();
#define SL_DRV_SYNC_OBJ_CLEAR (   pObj)    (void)sl_SyncObjWait(pObj,SL_OS_NO_WAIT);
#define SL_DRV_SYNC_OBJ_SIGNAL (   pObj)    (void)_SlDrvSyncObjSignal(pObj);
#define SL_DRV_SYNC_OBJ_WAIT_FOREVER (   SyncObj)
Value:
{ \
{ \
return SL_API_ABORTED; \
} \
}
_SlReturnVal_t _SlDrvSyncObjWaitForever(_SlSyncObj_t *pSyncObj)
Definition: driver.c:2085
#define SL_API_ABORTED
Definition: device.h:89
#define SL_DRV_SYNC_OBJ_WAIT_TIMEOUT (   SyncObj,
  timeoutVal,
  apiIdx 
)
Value:
{ \
if (SL_API_ABORTED == _SlDrvSyncObjWaitTimeout(SyncObj, timeoutVal, apiIdx)) \
{ \
return SL_API_ABORTED; \
} \
}
#define SL_API_ABORTED
Definition: device.h:89
_SlReturnVal_t _SlDrvSyncObjWaitTimeout(_SlSyncObj_t *pSyncObj, _u32 timeoutVal, SlDriverAPIWithTimeout_e apiIdx)
Definition: driver.c:2106
#define SL_SET_DEVICE_STARTED   (g_SlDeviceStatus |= _SL_DRV_STATUS_BIT_DEVICE_STARTED) /* bit 9 indicates device is started */
#define SL_UNSET_DEVICE_STARTED   (g_SlDeviceStatus &= (~_SL_DRV_STATUS_BIT_DEVICE_STARTED)) /* bit 9 indicates device is started */
#define STOP_DEVICE_TIMEOUT   SL_DRIVER_TIMEOUT_LONG
#define SYNC_PATTERN_TIMEOUT_IN_MSEC   (50) /* the sync patttern timeout in milliseconds units */
#define TIMEOUT_ONE_MORE_SHOT   (1)
#define TIMEOUT_STATE_EXPIRY   (0)
#define TIMEOUT_STATE_INIT_VAL   (2)
#define USEC_DELAY   (50)

Typedef Documentation

typedef struct _SlArgsData_t _SlArgsData_t
typedef struct _SlPoolObj_t _SlPoolObj_t
typedef _u8 _SlSd_t

Enumeration Type Documentation

Enumerator
SOCKET_0 
SOCKET_1 
SOCKET_2 
SOCKET_3 
SOCKET_4 
SOCKET_5 
SOCKET_6 
SOCKET_7 
MAX_SOCKET_ENUM_IDX 
ACCEPT_ID 
CONNECT_ID 
SELECT_ID 
GETHOSYBYNAME_ID 
GETHOSYBYSERVICE_ID 
PING_ID 
START_STOP_ID 
RECV_ID 
Enumerator
RECV_RESP_CLASS 
CMD_RESP_CLASS 
ASYNC_EVT_CLASS 
DUMMY_MSG_CLASS 

Function Documentation

_SlReturnVal_t _sl_HandleAsync_Accept ( void *  pVoidBuf)
_SlReturnVal_t _sl_HandleAsync_Connect ( void *  pVoidBuf)
_SlReturnVal_t _sl_HandleAsync_DnsGetHostByAddr ( void *  pVoidBuf)
_SlReturnVal_t _sl_HandleAsync_DnsGetHostByName ( void *  pVoidBuf)

+ Here is the caller graph for this function:

_SlReturnVal_t _sl_HandleAsync_DnsGetHostByService ( void *  pVoidBuf)

+ Here is the caller graph for this function:

_SlReturnVal_t _sl_HandleAsync_InitComplete ( void *  pVoidBuf)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_SlReturnVal_t _sl_HandleAsync_PingResponse ( void *  pVoidBuf)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_SlReturnVal_t _sl_HandleAsync_Select ( void *  pVoidBuf)
void _sl_HandleAsync_Stop ( void *  pVoidBuf)

+ Here is the caller graph for this function:

void _SlDriverHandleError ( SlDeviceDriverError_e  eError,
_u32  info1,
_u32  info2 
)

+ Here is the caller graph for this function:

_u16 _SlDrvAlignSize ( _u16  msgLen)
_i16 _SlDrvBasicCmd ( _SlOpcode_t  Opcode)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvCmdOp ( _SlCmdCtrl_t pCmdCtrl,
void *  pTxRxDescBuff,
_SlCmdExt_t pCmdExt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_SlReturnVal_t _SlDrvCmdSend ( _SlCmdCtrl_t pCmdCtrl,
void *  pTxRxDescBuff,
_SlCmdExt_t pCmdExt 
)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvDataReadOp ( _SlSd_t  Sd,
_SlCmdCtrl_t pCmdCtrl,
void *  pTxRxDescBuff,
_SlCmdExt_t pCmdExt 
)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvDataWriteOp ( _SlSd_t  Sd,
_SlCmdCtrl_t pCmdCtrl,
void *  pTxRxDescBuff,
_SlCmdExt_t pCmdExt 
)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvDeviceEventHandler ( void *  pEventInfo)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvDriverCBDeinit ( void  )
_SlReturnVal_t _SlDrvDriverCBInit ( void  )

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvGlobalObjUnLock ( void  )
void _SlDrvMemZero ( void *  Addr,
_u16  size 
)

+ Here is the caller graph for this function:

_SlReturnVal_t _SlDrvMsgReadSpawnCtx ( void *  pValue)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_SlReturnVal_t _SlDrvNetAppEventHandler ( void *  pArgs)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_SlReturnVal_t _SlDrvObjLock ( _SlLockObj_t pLockObj,
_SlTime_t  Timeout 
)
_SlReturnVal_t _SlDrvObjLockWaitForever ( _SlLockObj_t pLockObj)
_SlReturnVal_t _SlDrvObjUnLock ( _SlLockObj_t pLockObj)
_u8 _SlDrvProtectAsyncRespSetting ( _u8 pAsyncRsp,
_SlActionID_e  ActionID,
_u8  SocketID 
)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvProtectionObjLockWaitForever ( void  )
_SlReturnVal_t _SlDrvProtectionObjUnLock ( void  )
void _SlDrvReleasePoolObj ( _u8  pObj)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void _SlDrvResetCmdExt ( _SlCmdExt_t pCmdExt)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvRxIrqHandler ( void *  pValue)

+ Here is the call graph for this function:

_SlReturnVal_t _SlDrvSyncObjSignal ( _SlSyncObj_t pSyncObj)
_SlReturnVal_t _SlDrvSyncObjWaitForever ( _SlSyncObj_t pSyncObj)

+ Here is the caller graph for this function:

_SlReturnVal_t _SlDrvSyncObjWaitTimeout ( _SlSyncObj_t pSyncObj,
_u32  timeoutVal,
SlDriverAPIWithTimeout_e  apiIdx 
)

+ Here is the call graph for this function:

_u8 _SlDrvWaitForPoolObj ( _u8  ActionID,
_u8  SocketID 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

_volatile _u8 g_bDeviceRestartIsRequired
_SlDriverCb_t* g_pCB
_u16 g_SlDeviceStatus
P_SL_DEV_PING_CALLBACK pPingCallBackFunc
_volatile _u8 RxIrqCnt

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:24 by doxygen 1.8.8