XDK API  3.6.0
Documentation
Macros
trace.h File Reference
#include "simplelink.h"
+ Include dependency graph for trace.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define _SL_ASSERT(expr)
 
#define _SL_DBG_CNT_INC(Cnt)
 
#define _SL_DBG_SYNC_LOG(index, value)
 
#define _SL_ERROR(expr, error)   { if(!(expr)){return (error); } }
 
#define _SlDrvAssert()   { _SlDriverHandleError(SL_DEVICE_DRIVER_ASSERT_ERROR_EVENT, 0, 0); }
 
#define _SlDrvOtherFunc_DBG_LEVEL   SL_DBG_LEVEL_1
 
#define _SlDrvPrintStat_DBG_LEVEL   SL_DBG_LEVEL_3
 
#define ARG_CHECK_PTR(Ptr)   _SL_ERROR((NULL != Ptr), SL_RET_CODE_INVALID_INPUT)
 
#define MALLOC_OK_CHECK(Ptr)   _SL_ERROR((NULL != Ptr), SL_RET_CODE_MALLOC_ERROR)
 
#define NWP_IF_READ_CHECK(fd, pBuff, len)   { _SL_ERROR((len == sl_IfRead((fd),(pBuff),(len))), SL_RET_CODE_NWP_IF_ERROR);}
 
#define NWP_IF_WRITE_CHECK(fd, pBuff, len)   { _SL_ERROR((len == sl_IfWrite((fd),(pBuff),(len))), SL_RET_CODE_NWP_IF_ERROR);}
 
#define OSI_RET_OK_CHECK(Func)   {_SlReturnVal_t _RetVal = (Func); if (SL_OS_RET_CODE_OK != _RetVal) return _RetVal;}
 
#define SL_DBG_LEVEL_1   1
 
#define SL_DBG_LEVEL_2   2
 
#define SL_DBG_LEVEL_3   4
 
#define SL_DBG_LEVEL_MASK   (SL_DBG_LEVEL_2|SL_DBG_LEVEL_3)
 
#define SL_DRV_RET_CODE_HANDLING   SL_HANDLING_ERROR
 
#define SL_ERR_IN_PROGRESS_HANDLING   SL_HANDLING_ERROR
 
#define SL_ERROR_TRACE(msg_id, str)
 
#define SL_ERROR_TRACE1(msg_id, str, p1)
 
#define SL_ERROR_TRACE2(msg_id, str, p1, p2)
 
#define SL_ERROR_TRACE3(msg_id, str, p1, p2, p3)
 
#define SL_ERROR_TRACE4(msg_id, str, p1, p2, p3, p4)
 
#define SL_HANDLING_ASSERT   2
 
#define SL_HANDLING_ERROR   1
 
#define SL_HANDLING_NONE   0
 
#define SL_INCLUDE_DBG_FUNC(Name)   ((Name ## _DBG_LEVEL) & SL_DBG_LEVEL_MASK)
 
#define SL_MALLOC_OK_HANDLING   SL_HANDLING_ERROR
 
#define SL_NWP_IF_HANDLING   SL_HANDLING_ERROR
 
#define SL_OSI_RET_OK_HANDLING   SL_HANDLING_ERROR
 
#define SL_PROTOCOL_HANDLING   SL_HANDLING_ERROR
 
#define SL_SELF_COND_HANDLING   SL_HANDLING_ERROR
 
#define SL_SYNC_SCAN_THRESHOLD   (( _u32 )2000)
 
#define SL_TRACE0(level, msg_id, str)
 
#define SL_TRACE1(level, msg_id, str, p1)
 
#define SL_TRACE2(level, msg_id, str, p1, p2)
 
#define SL_TRACE3(level, msg_id, str, p1, p2, p3)
 
#define SL_TRACE4(level, msg_id, str, p1, p2, p3, p4)
 
#define SL_TRACE_FLUSH()
 
#define SL_USER_ARGS_HANDLING   SL_HANDLING_ERROR
 
#define VERIFY_NO_ERROR_HANDLING_IN_PROGRESS()
 
#define VERIFY_PROTOCOL(expr)   _SL_ERROR(expr, SL_RET_CODE_PROTOCOL_ERROR)
 
#define VERIFY_RET_OK(Func)   {_SlReturnVal_t _RetVal = (Func); if (SL_OS_RET_CODE_OK != _RetVal) return _RetVal;}
 
#define VERIFY_SOCKET_CB(expr)
 

Macro Definition Documentation

#define _SL_ASSERT (   expr)
Value:
{ if(!(expr)){ \
}
#define _SlDrvAssert()
Definition: trace.h:58
#define _SL_DBG_CNT_INC (   Cnt)
#define _SL_DBG_SYNC_LOG (   index,
  value 
)
#define _SL_ERROR (   expr,
  error 
)    { if(!(expr)){return (error); } }
#define _SlDrvAssert ( )    { _SlDriverHandleError(SL_DEVICE_DRIVER_ASSERT_ERROR_EVENT, 0, 0); }
#define _SlDrvOtherFunc_DBG_LEVEL   SL_DBG_LEVEL_1
#define _SlDrvPrintStat_DBG_LEVEL   SL_DBG_LEVEL_3
#define ARG_CHECK_PTR (   Ptr)    _SL_ERROR((NULL != Ptr), SL_RET_CODE_INVALID_INPUT)
#define MALLOC_OK_CHECK (   Ptr)    _SL_ERROR((NULL != Ptr), SL_RET_CODE_MALLOC_ERROR)
#define NWP_IF_READ_CHECK (   fd,
  pBuff,
  len 
)    { _SL_ERROR((len == sl_IfRead((fd),(pBuff),(len))), SL_RET_CODE_NWP_IF_ERROR);}
#define NWP_IF_WRITE_CHECK (   fd,
  pBuff,
  len 
)    { _SL_ERROR((len == sl_IfWrite((fd),(pBuff),(len))), SL_RET_CODE_NWP_IF_ERROR);}
#define OSI_RET_OK_CHECK (   Func)    {_SlReturnVal_t _RetVal = (Func); if (SL_OS_RET_CODE_OK != _RetVal) return _RetVal;}
#define SL_DBG_LEVEL_1   1
#define SL_DBG_LEVEL_2   2
#define SL_DBG_LEVEL_3   4
#define SL_DBG_LEVEL_MASK   (SL_DBG_LEVEL_2|SL_DBG_LEVEL_3)
#define SL_DRV_RET_CODE_HANDLING   SL_HANDLING_ERROR
#define SL_ERR_IN_PROGRESS_HANDLING   SL_HANDLING_ERROR
#define SL_ERROR_TRACE (   msg_id,
  str 
)
#define SL_ERROR_TRACE1 (   msg_id,
  str,
  p1 
)
#define SL_ERROR_TRACE2 (   msg_id,
  str,
  p1,
  p2 
)
#define SL_ERROR_TRACE3 (   msg_id,
  str,
  p1,
  p2,
  p3 
)
#define SL_ERROR_TRACE4 (   msg_id,
  str,
  p1,
  p2,
  p3,
  p4 
)
#define SL_HANDLING_ASSERT   2
#define SL_HANDLING_ERROR   1
#define SL_HANDLING_NONE   0
#define SL_INCLUDE_DBG_FUNC (   Name)    ((Name ## _DBG_LEVEL) & SL_DBG_LEVEL_MASK)
#define SL_MALLOC_OK_HANDLING   SL_HANDLING_ERROR
#define SL_NWP_IF_HANDLING   SL_HANDLING_ERROR
#define SL_OSI_RET_OK_HANDLING   SL_HANDLING_ERROR
#define SL_PROTOCOL_HANDLING   SL_HANDLING_ERROR
#define SL_SELF_COND_HANDLING   SL_HANDLING_ERROR
#define SL_SYNC_SCAN_THRESHOLD   (( _u32 )2000)
#define SL_TRACE0 (   level,
  msg_id,
  str 
)
#define SL_TRACE1 (   level,
  msg_id,
  str,
  p1 
)
#define SL_TRACE2 (   level,
  msg_id,
  str,
  p1,
  p2 
)
#define SL_TRACE3 (   level,
  msg_id,
  str,
  p1,
  p2,
  p3 
)
#define SL_TRACE4 (   level,
  msg_id,
  str,
  p1,
  p2,
  p3,
  p4 
)
#define SL_TRACE_FLUSH ( )
#define SL_USER_ARGS_HANDLING   SL_HANDLING_ERROR
#define VERIFY_NO_ERROR_HANDLING_IN_PROGRESS ( )
Value:
{ \
#define TRUE
Definition: BCDS_Basics.h:73
#define SL_API_ABORTED
Definition: device.h:89
_volatile _u8 g_bDeviceRestartIsRequired
Definition: driver.c:417
#define SL_IS_COMMAND_ALLOWED
Definition: driver.h:78
#define VERIFY_PROTOCOL (   expr)    _SL_ERROR(expr, SL_RET_CODE_PROTOCOL_ERROR)
#define VERIFY_RET_OK (   Func)    {_SlReturnVal_t _RetVal = (Func); if (SL_OS_RET_CODE_OK != _RetVal) return _RetVal;}
#define VERIFY_SOCKET_CB (   expr)

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:47 by doxygen 1.8.8