SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The Wi-Fi subsystem is enabled by calling the sl_Start() API. During the initialization, the host driver performs the following key steps:
Figure 3-1 shows the basic initialization flow:
The Wi-Fi subsystem initialization can take tens of mS to complete. The host driver supports two main options of initialization using “sl_Start(const void* pIfHdl, char* pDevName and const P_INIT_CALLBACK pInitCallBack)” API:
if( sl_Start(NULL, NULL, NULL) == 0)
{
LOG("Error opening interface to device\n");
}
Void InitCallBack(UINT32 Status)
{
Network_IF_SetMCUMachineState(MCU_SLHost_INIT);
}
.
.
Void Network_IF_InitDriver(void)
{
..
sl_Start(NULL,NULL,InitCallBack);
while(!(g_usMCUstate & MCU_SLHost_INIT));
..
}