SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
From a host perspective, steps to starting the SimpleLink Wi-Fi device include:
Depending on the hardware design, the enable pin of the device can be connected to the nReset or nHibernate pins of the device. The major difference between these modes is that in hibernate mode, the device maintains the value of the real-time clock (RTC), and exiting from this state is faster (more information follows). In both modes when the device completes the initialization (INIT) process, it sends an internal asynchronous event (INIT COMPLETE) to the host.
During the initialization process the host interface (UART or SPI) is determined, and RF calibrations may be performed by the network processor subsystem. A few types of calibration modes are available, and the target application must choose the most compatible mode for its requirements. The mode of the calibration can be changed only by using the Image Creator tool, during the creation of the image. More information about calibrations is in Section 5, and more information about the Image Creator tool is in the UniFlash CC3120, CC3220 SimpleLink™ Wi-Fi® and Internet-on-a chip™ Solution ImageCreator and Programming Tool User's Guide.
The sl_Start API of the host driver can accept a callback function as a parameter. If the callback function is provided, then the function returns immediately, and the callback is called when the initialization process completes. In this mode, any other APIs should not be called until the initialization completes. If the callback is not provided, sl_Start is blocked until the device initialization completes. This API must be called before any other SimpleLink API is used, or after sl_Stop is called to reinitialize the device and the driver.
The return value of sl_Start specifies the mode the device is currently running: ROLE_STA, ROLE_AP or ROLE_P2P. Any other value indicates an error during the initialization process.