XDK API  3.6.0
Documentation
Macros | Enumerations
sl_common.h File Reference

Macros

#define ASSERT_ON_ERROR(error_code)
 
#define CLR_STATUS_BIT(status_variable, bit)   status_variable &= ~((unsigned long)1<<(bit))
 
#define DATE   10 /* Current Date */
 
#define GET_STATUS_BIT(status_variable, bit)   (0 != (status_variable & ((unsigned long)1<<(bit))))
 
#define HOUR   15 /* Time - hours */
 
#define IS_CONNECTED(status_variable)
 
#define IS_CONNECTION_FAILED(status_variable)
 
#define IS_IP_ACQUIRED(status_variable)
 
#define IS_IP_LEASED(status_variable)
 
#define IS_P2P_NEG_REQ_RECEIVED(status_variable)
 
#define IS_SMARTCONFIG_DONE(status_variable)
 
#define IS_SMARTCONFIG_STOPPED(status_variable)
 
#define IS_STA_CONNECTED(status_variable)
 
#define LOOP_FOREVER()
 
#define MINUTE   10 /* Time - minutes */
 
#define MONTH   7 /* Month */
 
#define pal_Memcmp(x, y, z)   memcmp((const void *)x, (const void *)y, z)
 
#define pal_Memcpy(x, y, z)   memcpy((void *)x, (const void *)y, z)
 
#define pal_Memset(x, y, z)   memset((void *)x,y,z)
 
#define pal_Strcat(x, y)   strcat((char *)x, (const char *)y)
 
#define pal_Strcmp(x, y)   strcmp((const char *)x, (const char *)y)
 
#define pal_Strcpy(x, y)   strcpy((char *)x, (const char *)y)
 
#define pal_Strlen(x)   strlen((const char *)x)
 
#define pal_Strncmp(x, y, z)   strncmp((const char *)x, (const char *)y, z)
 
#define pal_Strncpy(x, y, z)   strncpy((char *)x, (const char *)y, z)
 
#define pal_Strstr(x, y)   strstr((const char *)x, (const char *)y)
 
#define PASSKEY   "" /* Password in case of secure AP */
 
#define PASSKEY_LEN   pal_Strlen(PASSKEY) /* Password length in case of secure AP */
 
#define PASSWORD_AP_MODE   "" /* Password of CC3100 AP */
 
#define SEC_TYPE   SL_SEC_TYPE_OPEN /* Security type of the Access piont */
 
#define SEC_TYPE_AP_MODE
 
#define SECOND   0 /* Time - seconds */
 
#define SET_STATUS_BIT(status_variable, bit)   status_variable |= ((unsigned long)1<<(bit))
 
#define SSID_AP_MODE   "<ap_mode_ssid>" /* SSID of the CC3100 in AP mode */
 
#define SSID_NAME   "<ap_name>" /* Access point name to connect to. */
 
#define SUCCESS   0
 
#define YEAR   2017 /* Current year */
 

Enumerations

enum  e_StatusBits
 

Macro Definition Documentation

#define ASSERT_ON_ERROR (   error_code)
Value:
{\
/* Handling the error-codes is specific to the application */ \
if (error_code < 0) return error_code; \
/* else, continue w/ execution */ \
}
#define CLR_STATUS_BIT (   status_variable,
  bit 
)    status_variable &= ~((unsigned long)1<<(bit))
#define DATE   10 /* Current Date */
#define GET_STATUS_BIT (   status_variable,
  bit 
)    (0 != (status_variable & ((unsigned long)1<<(bit))))
#define HOUR   15 /* Time - hours */
#define IS_CONNECTED (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:103
#define IS_CONNECTION_FAILED (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:123
#define IS_IP_ACQUIRED (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:113
#define IS_IP_LEASED (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:118
#define IS_P2P_NEG_REQ_RECEIVED (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:128
#define IS_SMARTCONFIG_DONE (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:132
#define IS_SMARTCONFIG_STOPPED (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:137
#define IS_STA_CONNECTED (   status_variable)
Value:
GET_STATUS_BIT(status_variable, \
#define GET_STATUS_BIT(status_variable, bit)
Definition: sl_common.h:146
Definition: sl_common.h:108
#define LOOP_FOREVER ( )
Value:
{\
while(1); \
}
#define MINUTE   10 /* Time - minutes */
#define MONTH   7 /* Month */
#define pal_Memcmp (   x,
  y,
 
)    memcmp((const void *)x, (const void *)y, z)
#define pal_Memcpy (   x,
  y,
 
)    memcpy((void *)x, (const void *)y, z)
#define pal_Memset (   x,
  y,
 
)    memset((void *)x,y,z)
#define pal_Strcat (   x,
 
)    strcat((char *)x, (const char *)y)
#define pal_Strcmp (   x,
 
)    strcmp((const char *)x, (const char *)y)
#define pal_Strcpy (   x,
 
)    strcpy((char *)x, (const char *)y)
#define pal_Strlen (   x)    strlen((const char *)x)
#define pal_Strncmp (   x,
  y,
 
)    strncmp((const char *)x, (const char *)y, z)
#define pal_Strncpy (   x,
  y,
 
)    strncpy((char *)x, (const char *)y, z)
#define pal_Strstr (   x,
 
)    strstr((const char *)x, (const char *)y)
#define PASSKEY   "" /* Password in case of secure AP */
#define PASSKEY_LEN   pal_Strlen(PASSKEY) /* Password length in case of secure AP */
#define PASSWORD_AP_MODE   "" /* Password of CC3100 AP */
#define SEC_TYPE   SL_SEC_TYPE_OPEN /* Security type of the Access piont */
#define SEC_TYPE_AP_MODE
Value:
SL_SEC_TYPE_OPEN /* Can take SL_SEC_TYPE_WEP or
* SL_SEC_TYPE_WPA as well */
#define SL_SEC_TYPE_OPEN
Definition: wlan.h:130
#define SECOND   0 /* Time - seconds */
#define SET_STATUS_BIT (   status_variable,
  bit 
)    status_variable |= ((unsigned long)1<<(bit))
#define SSID_AP_MODE   "<ap_mode_ssid>" /* SSID of the CC3100 in AP mode */
#define SSID_NAME   "<ap_name>" /* Access point name to connect to. */
#define SUCCESS   0
#define YEAR   2017 /* Current year */

Enumeration Type Documentation

Enumerator
STATUS_BIT_CONNECTION 
STATUS_BIT_STA_CONNECTED 
STATUS_BIT_IP_ACQUIRED 
STATUS_BIT_IP_LEASED 
STATUS_BIT_CONNECTION_FAILED 
STATUS_BIT_P2P_NEG_REQ_RECEIVED 
STATUS_BIT_SMARTCONFIG_DONE 
STATUS_BIT_SMARTCONFIG_STOPPED 

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