TI-RTOS Drivers  tidrivers_full_2_20_00_08
WiFiCC3100.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
124 #ifndef ti_drivers_wifi_WiFiCC3100__include
125 #define ti_drivers_wifi_WiFiCC3100__include
126 
127 #ifdef __cplusplus
128 extern "C" {
129 #endif
130 
131 #if defined(MSP430WARE)
132 #include <ti/sysbios/hal/Hwi.h>
133 #else
134 #include <ti/sysbios/family/arm/m3/Hwi.h>
135 #endif
136 
137 #include <ti/drivers/SPI.h>
138 #include <ti/drivers/WiFi.h>
139 
150 /* Add WiFiCC3100_STATUS_* macros here */
151 
164 /* Add WiFiCC3100_CMD_* macros here */
165 
170 
214 typedef struct WiFiCC3100_HWAttrs {
215  uint32_t irqPort;
216  uint32_t irqPin;
217  uint32_t irqIntNum;
219  uint32_t csPort;
220  uint32_t csPin;
222  uint32_t enPort;
223  uint32_t enPin;
225 
231 typedef struct WiFiCC3100_Object {
232  Hwi_Struct wifiHwi;
234 
235  uint32_t bitRate;
236  unsigned int spiIndex;
237 
238  void (*wifiIntFxn)();
239 
240  bool isOpen;
242 
243 #ifdef __cplusplus
244 }
245 #endif
246 
247 #endif /* ti_drivers_wifi_WiFiCC3100__include */
uint32_t irqIntNum
Definition: WiFiCC3100.h:217
unsigned int spiIndex
Definition: WiFiCC3100.h:236
uint32_t enPort
Definition: WiFiCC3100.h:222
The definition of a WiFi function table that contains the required set of functions to control a spec...
Definition: WiFi.h:263
SPI driver interface.
void(* wifiIntFxn)()
Definition: WiFiCC3100.h:238
struct WiFiCC3100_HWAttrs WiFiCC3100_HWAttrs
WiFiCC3100 Hardware attributes.
struct WiFiCC3100_Object WiFiCC3100_Object
WiFiCC3100 Object.
uint32_t csPin
Definition: WiFiCC3100.h:220
SPI Global configuration.
Definition: SPI.h:436
WiFiCC3100 Hardware attributes.
Definition: WiFiCC3100.h:214
uint32_t bitRate
Definition: WiFiCC3100.h:235
WiFi driver interface.
uint32_t enPin
Definition: WiFiCC3100.h:223
bool isOpen
Definition: WiFiCC3100.h:240
uint32_t irqPort
Definition: WiFiCC3100.h:215
SPI_Handle spiHandle
Definition: WiFiCC3100.h:233
WiFiCC3100 Object.
Definition: WiFiCC3100.h:231
const WiFi_FxnTable WiFiCC3100_fxnTable
WiFi function table for CC3100 devices.
uint32_t irqPin
Definition: WiFiCC3100.h:216
Hwi_Struct wifiHwi
Definition: WiFiCC3100.h:232
uint32_t csPort
Definition: WiFiCC3100.h:219
Copyright 2016, Texas Instruments Incorporated