TI-RTOS Drivers
tidrivers_full_2_20_00_08
|
WiFi driver implementation for the SimpleLink Wi-Fi CC3100 device.
===========================================================================
The WiFi header file should be included in the application as follows:
Refer to WiFi.h for a complete description of APIs & example of use.
This WiFi driver implementation is designed for the SimpleLink Wi-Fi CC3100 device on a host processor. One of the host device's SPI (SSI) peripherals will be utilized by the driver as well as its corresponding DMA channels. This means that in addition to a WiFi_config array, a SPI_config array with a host device-specific SPI entry must be provided. See SPI.h for more details.
The SPI transport layer used by the CC3100 uses an IRQ line to signal the host processor to perform an action. The pin, port, and interrupt number for the IRQ pin are configured in the WiFiCC3100_HWAttrs structure. Note that no other pins on this GPIO port will be able to use GPIO interrupts while the WiFi driver is in use.
This WiFi driver implementation provides the SPI transport layer required by the SimpleLink Host Driver. In the case of unsolicited events that require the application to make decisions (such as an unsolicited disconnect from an AP), the SimpleLink Host Driver specifies callbacks which must be modified to fit application requirements. Contrary to other WiFi driver implementations, callback function pointers are not provided to WiFi_open() as arguments. An example of how to modify the SimpleLink Host Driver callbacks is shown below:
For a list of all events and details on what data they may provide, see the Porting - Event Handlers section of the SimpleLink Host Driver API reference guide on SimpleLink Wi-Fi CC3100 Wiki.
The SimpleLink Host Driver APIs sl_Start() must be called by the user application to start the network processor. Additionally, sl_Start() and *sl_Stop() can be called by the application to restart the CC3100 without having to close and reopen the WiFi Driver instance.
The SimpleLink Host Driver for the CC3100 device is provided by TI-RTOS in the following directory in the TI-RTOS installation:
For more on the SimpleLink Host Driver APIs, the CC3100 SDK and to download Doxygen APIs see SimpleLink Wi-Fi CC3100 Wiki.
Go to the source code of this file.
Data Structures | |
struct | WiFiCC3100_HWAttrs |
WiFiCC3100 Hardware attributes. More... | |
struct | WiFiCC3100_Object |
WiFiCC3100 Object. More... | |
Typedefs | |
typedef struct WiFiCC3100_HWAttrs | WiFiCC3100_HWAttrs |
WiFiCC3100 Hardware attributes. More... | |
typedef struct WiFiCC3100_Object | WiFiCC3100_Object |
WiFiCC3100 Object. More... | |
Variables | |
const WiFi_FxnTable | WiFiCC3100_fxnTable |
WiFi function table for CC3100 devices. More... | |
typedef struct WiFiCC3100_HWAttrs WiFiCC3100_HWAttrs |
WiFiCC3100 Hardware attributes.
These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. These definitions are found in: For TivaWare:
For MSP430Ware:
A sample structure is shown below:
typedef struct WiFiCC3100_Object WiFiCC3100_Object |
WiFiCC3100 Object.
The application must not access any member variables of this structure!
const WiFi_FxnTable WiFiCC3100_fxnTable |
WiFi function table for CC3100 devices.