XDK API  3.6.0
Documentation
Macros | Functions | Variables
WlanConnect.c File Reference
#include "XdkCommonInfo.h"
#include "BCDS_WlanConnect.h"
#include "BCDS_WlanDriver.h"
#include "BCDS_NetworkConfig.h"
#include "BCDS_WlanNetworkConnect.h"
#include "BCDS_BSP_Board.h"
#include "simplelink.h"
#include "FreeRTOS.h"
#include "task.h"
#include "timers.h"
+ Include dependency graph for WlanConnect.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_WLAN_CONNECT
 
#define TIMER_AUTORELOAD_ON   UINT8_C(1)
 
#define TIMERBLOCKTIME   UINT32_MAX
 
#define WLANCONNECT_ALL_PROFILES   UINT8_C(0xFF)
 
#define WLANCONNECT_FAILURE   INT16_C(-1)
 
#define WLANCONNECT_MAX_BUFFER   UINT8_C(10)
 
#define WLANCONNECT_MAX_TRIES   UINT8_C(15)
 
#define WLANCONNECT_NO_OF_ENTRIES   UINT8_C(5)
 
#define WLANCONNECT_ONE   UINT8_C(1)
 
#define WLANCONNECT_ONE_SEC_DELAY   (portTickType)(1000)
 
#define WLANCONNECT_SCAN_DISABLE   UINT8_C(0)
 
#define WLANCONNECT_SCAN_ENABLE   UINT8_C(1)
 
#define WLANCONNECT_SCAN_TABLE_SIZE   UINT8_C(20)
 
#define WLANCONNECT_SUCCESS   UINT16_C(0)
 
#define WLANCONNECT_TIMEOUT_VAL   UINT8_C(0xFF)
 
#define WLANCONNECT_TIMER_TICKS   UINT8_C(1000)
 
#define WLANCONNECT_ZERO   UINT8_C(0)
 

Functions

static Retcode_T connectBlockingCall (void)
 
static void connectNonBlockingCall (xTimerHandle xTimer)
 
static void disConnectNonBlockingCall (xTimerHandle xTimer)
 
static Retcode_T NonBlockingTimer (void)
 
static Retcode_T SystemClock_getTime (uint32_t *time_ptr)
 Function that retrieves time stamp. Currently retrieving. More...
 
Retcode_T WlanConnect_DeInit (void)
 
Retcode_T WlanConnect_DeleteAllProfiles (void)
 
Retcode_T WlanConnect_Disconnect (WlanConnect_DisconnectCallback_T disconnectCallback)
 
Retcode_T WlanConnect_EnterpriseWPA (WlanConnect_SSID_T connectSSID, WlanConnect_Username_T connectUsername, WlanConnect_PassPhrase_T connectPass, WlanConnect_Callback_T connectCallback)
 
WlanConnect_CurrentNwStatus_T WlanConnect_GetCurrentNwStatus (void)
 
uint8_t WlanConnect_GetInitStatus (void)
 
WlanConnect_Status_T WlanConnect_GetStatus (void)
 
Retcode_T WlanConnect_Init (void)
 
Retcode_T WlanConnect_Open (WlanConnect_SSID_T connectSSID, WlanConnect_Callback_T connectCallback)
 
Retcode_T WlanConnect_ScanNetworks (WlanConnect_ScanInterval_T scanInterval, WlanConnect_ScanList_T *scanList)
 
Retcode_T WlanConnect_WEP_Open (WlanConnect_SSID_T connectSSID, WlanConnect_PassPhrase_T connectPass, uint8_t passPhraseLength, WlanConnect_Callback_T connectCallback)
 
Retcode_T WlanConnect_WPA (WlanConnect_SSID_T connectSSID, WlanConnect_PassPhrase_T connectPass, WlanConnect_Callback_T connectCallback)
 
Retcode_T WlanConnect_WPS_PBC (WlanConnect_Callback_T connectCallback)
 
Retcode_T WlanConnect_WPS_PIN (WlanConnect_Callback_T connectCallback)
 
static void WlanConnectcallBack (WlanConnect_Status_T connectStatus)
 

Variables

static xTimerHandle ConnectTimerHandle = NULL
 
static xTimerHandle DisConnectTimerHandle = NULL
 
static Sl_WlanNetworkEntry_t NetEntries [WLANCONNECT_SCAN_TABLE_SIZE]
 
static volatile uint8_t WlanConnect_InitStatus
 
static volatile
WlanConnect_Status_T 
WlanConnect_Status
 
static volatile
WlanConnect_Callback_T 
WlanConnectCallback = NULL
 
static volatile
WlanConnect_DisconnectCallback_T 
WlanDisconnectCallback = NULL
 

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_WLAN_CONNECT
#define TIMER_AUTORELOAD_ON   UINT8_C(1)

Auto reload of timer is disabled

#define TIMERBLOCKTIME   UINT32_MAX

Macro used to define blocktime of a timer

#define WLANCONNECT_ALL_PROFILES   UINT8_C(0xFF)

Macro for deleting all profiles

#define WLANCONNECT_FAILURE   INT16_C(-1)

Macro for defining Failure

#define WLANCONNECT_MAX_BUFFER   UINT8_C(10)

Macro for Simple Link status buffer

#define WLANCONNECT_MAX_TRIES   UINT8_C(15)

Macro for Simple Link status buffer

#define WLANCONNECT_NO_OF_ENTRIES   UINT8_C(5)

Macro for scan function number of entries

#define WLANCONNECT_ONE   UINT8_C(1)

Macro for defining 1

#define WLANCONNECT_ONE_SEC_DELAY   (portTickType)(1000)

Macro for 1 second delay

#define WLANCONNECT_SCAN_DISABLE   UINT8_C(0)
#define WLANCONNECT_SCAN_ENABLE   UINT8_C(1)
#define WLANCONNECT_SCAN_TABLE_SIZE   UINT8_C(20)
#define WLANCONNECT_SUCCESS   UINT16_C(0)

Macro for defining SUCCESS

#define WLANCONNECT_TIMEOUT_VAL   UINT8_C(0xFF)

Macro for timeout value

#define WLANCONNECT_TIMER_TICKS   UINT8_C(1000)

Macro for Simple Link status buffer

#define WLANCONNECT_ZERO   UINT8_C(0)

Macro for defining 0

Function Documentation

static Retcode_T connectBlockingCall ( void  )
static

This function is called by connect API's when connection needs to be blocking

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void connectNonBlockingCall ( xTimerHandle  xTimer)
static

This is a timer callback called from connect API's when connection needs to be non-blocking

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void disConnectNonBlockingCall ( xTimerHandle  xTimer)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Retcode_T NonBlockingTimer ( void  )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Retcode_T SystemClock_getTime ( uint32_t *  time_ptr)
static
Parameters
time_ptrPointer containing time in seconds.
Returns
returnClockStatus Return status for the SystemClock_getTime function

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T WlanConnect_DeInit ( void  )

+ Here is the call graph for this function:

Retcode_T WlanConnect_DeleteAllProfiles ( void  )

+ Here is the call graph for this function:

Retcode_T WlanConnect_Disconnect ( WlanConnect_DisconnectCallback_T  disconnectCallback)

+ Here is the call graph for this function:

Retcode_T WlanConnect_EnterpriseWPA ( WlanConnect_SSID_T  connectSSID,
WlanConnect_Username_T  connectUsername,
WlanConnect_PassPhrase_T  connectPass,
WlanConnect_Callback_T  connectCallback 
)

+ Here is the call graph for this function:

WlanConnect_CurrentNwStatus_T WlanConnect_GetCurrentNwStatus ( void  )

+ Here is the call graph for this function:

uint8_t WlanConnect_GetInitStatus ( void  )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

WlanConnect_Status_T WlanConnect_GetStatus ( void  )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T WlanConnect_Init ( void  )

+ Here is the call graph for this function:

Retcode_T WlanConnect_Open ( WlanConnect_SSID_T  connectSSID,
WlanConnect_Callback_T  connectCallback 
)

+ Here is the call graph for this function:

Retcode_T WlanConnect_ScanNetworks ( WlanConnect_ScanInterval_T  scanInterval,
WlanConnect_ScanList_T scanList 
)

+ Here is the call graph for this function:

Retcode_T WlanConnect_WEP_Open ( WlanConnect_SSID_T  connectSSID,
WlanConnect_PassPhrase_T  connectPass,
uint8_t  passPhraseLength,
WlanConnect_Callback_T  connectCallback 
)

+ Here is the call graph for this function:

Retcode_T WlanConnect_WPA ( WlanConnect_SSID_T  connectSSID,
WlanConnect_PassPhrase_T  connectPass,
WlanConnect_Callback_T  connectCallback 
)

+ Here is the call graph for this function:

Retcode_T WlanConnect_WPS_PBC ( WlanConnect_Callback_T  connectCallback)

+ Here is the call graph for this function:

Retcode_T WlanConnect_WPS_PIN ( WlanConnect_Callback_T  connectCallback)

+ Here is the call graph for this function:

static void WlanConnectcallBack ( WlanConnect_Status_T  connectStatus)
static

+ Here is the caller graph for this function:

Variable Documentation

xTimerHandle ConnectTimerHandle = NULL
static
xTimerHandle DisConnectTimerHandle = NULL
static

Variable for storing the scanned network entries

volatile uint8_t WlanConnect_InitStatus
static

Flag variable for Wlan init status

volatile WlanConnect_Status_T WlanConnect_Status
static

Flag variable for WLI connect status

volatile WlanConnect_Callback_T WlanConnectCallback = NULL
static

Variable for storing the connection callback

volatile WlanConnect_DisconnectCallback_T WlanDisconnectCallback = NULL
static

Variable for storing the disconnection callback from disconnect function


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:40 by doxygen 1.8.8