WILC1000 Wi-Fi controller. More...
#include "driver/include/m2m_wifi.h"#include "core/net.h"#include "drivers/wifi/wilc1000_driver.h"#include "wilc1000_config.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL NIC_TRACE_LEVEL | 
Functions | |
| error_t | wilc1000Init (NetInterface *interface) | 
| WILC1000 initialization.  More... | |
| void | wilc1000Tick (NetInterface *interface) | 
| WILC1000 timer handler.  More... | |
| void | wilc1000EnableIrq (NetInterface *interface) | 
| Enable interrupts.  More... | |
| void | wilc1000DisableIrq (NetInterface *interface) | 
| Disable interrupts.  More... | |
| bool_t | wilc1000IrqHandler (void) | 
| WILC1000 interrupt service routine.  More... | |
| void | wilc1000EventHandler (NetInterface *interface) | 
| WILC1000 event handler.  More... | |
| error_t | wilc1000SendPacket (NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary) | 
| Send a packet.  More... | |
| error_t | wilc1000UpdateMacAddrFilter (NetInterface *interface) | 
| Configure MAC address filtering.  More... | |
| bool_t | wilc1000GetAddrRefCount (NetInterface *interface, const MacAddr *macAddr) | 
| Get reference count for the specified multicast MAC address.  More... | |
| void | wilc1000AppWifiEvent (uint8_t msgType, void *msg) | 
| Callback function that handles Wi-Fi events.  More... | |
| void | wilc1000AppEthEvent (uint8_t msgType, void *msg, void *ctrlBuf) | 
| Callback function that handles events in bypass mode.  More... | |
Variables | |
| NetInterface * | wilc1000StaInterface = NULL | 
| NetInterface * | wilc1000ApInterface = NULL | 
| const NicDriver | wilc1000StaDriver | 
| WILC1000 driver (STA mode)  More... | |
| const NicDriver | wilc1000ApDriver | 
| WILC1000 driver (AP mode)  More... | |
Detailed Description
WILC1000 Wi-Fi controller.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
 - 2.5.4
 
Definition in file wilc1000_driver.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL NIC_TRACE_LEVEL | 
Definition at line 32 of file wilc1000_driver.c.
Function Documentation
◆ wilc1000AppEthEvent()
| void wilc1000AppEthEvent | ( | uint8_t | msgType, | 
| void * | msg, | ||
| void * | ctrlBuf | ||
| ) | 
Callback function that handles events in bypass mode.
- Parameters
 - 
  
[in] msgType Type of notification [in] msg Pointer to the buffer containing the notification parameters [in] ctrlBuf Pointer to the control buffer  
Definition at line 648 of file wilc1000_driver.c.
◆ wilc1000AppWifiEvent()
| void wilc1000AppWifiEvent | ( | uint8_t | msgType, | 
| void * | msg | ||
| ) | 
Callback function that handles Wi-Fi events.
- Parameters
 - 
  
[in] msgType Type of notification [in] msg Pointer to the buffer containing the notification parameters  
Definition at line 558 of file wilc1000_driver.c.
◆ wilc1000DisableIrq()
| void wilc1000DisableIrq | ( | NetInterface * | interface | ) | 
Disable interrupts.
- Parameters
 - 
  
[in] interface Underlying network interface  
Definition at line 319 of file wilc1000_driver.c.
◆ wilc1000EnableIrq()
| void wilc1000EnableIrq | ( | NetInterface * | interface | ) | 
Enable interrupts.
- Parameters
 - 
  
[in] interface Underlying network interface  
Definition at line 309 of file wilc1000_driver.c.
◆ wilc1000EventHandler()
| void wilc1000EventHandler | ( | NetInterface * | interface | ) | 
WILC1000 event handler.
- Parameters
 - 
  
[in] interface Underlying network interface  
Definition at line 359 of file wilc1000_driver.c.
◆ wilc1000GetAddrRefCount()
| bool_t wilc1000GetAddrRefCount | ( | NetInterface * | interface, | 
| const MacAddr * | macAddr | ||
| ) | 
Get reference count for the specified multicast MAC address.
- Parameters
 - 
  
[in] interface Underlying network interface [in] macAddr MAC address  
- Returns
 - Reference count
 
Definition at line 513 of file wilc1000_driver.c.
◆ wilc1000Init()
| error_t wilc1000Init | ( | NetInterface * | interface | ) | 
WILC1000 initialization.
- Parameters
 - 
  
[in] interface Underlying network interface  
- Returns
 - Error code
 
Definition at line 107 of file wilc1000_driver.c.
◆ wilc1000IrqHandler()
| bool_t wilc1000IrqHandler | ( | void | ) | 
WILC1000 interrupt service routine.
- Returns
 - TRUE if a higher priority task must be woken. Else FALSE is returned
 
Definition at line 329 of file wilc1000_driver.c.
◆ wilc1000SendPacket()
| error_t wilc1000SendPacket | ( | NetInterface * | interface, | 
| const NetBuffer * | buffer, | ||
| size_t | offset, | ||
| NetTxAncillary * | ancillary | ||
| ) | 
Send a packet.
- Parameters
 - 
  
[in] interface Underlying network interface [in] buffer Multi-part buffer containing the data to send [in] offset Offset to the first data byte [in] ancillary Additional options passed to the stack along with the packet  
- Returns
 - Error code
 
Definition at line 376 of file wilc1000_driver.c.
◆ wilc1000Tick()
| void wilc1000Tick | ( | NetInterface * | interface | ) | 
WILC1000 timer handler.
This routine is periodically called by the TCP/IP stack to handle periodic operations such as polling the link state
- Parameters
 - 
  
[in] interface Underlying network interface  
Definition at line 299 of file wilc1000_driver.c.
◆ wilc1000UpdateMacAddrFilter()
| error_t wilc1000UpdateMacAddrFilter | ( | NetInterface * | interface | ) | 
Configure MAC address filtering.
- Parameters
 - 
  
[in] interface Underlying network interface  
- Returns
 - Error code
 
Definition at line 453 of file wilc1000_driver.c.
Variable Documentation
◆ wilc1000ApDriver
| const NicDriver wilc1000ApDriver | 
WILC1000 driver (AP mode)
Definition at line 80 of file wilc1000_driver.c.
◆ wilc1000ApInterface
| NetInterface* wilc1000ApInterface = NULL | 
Definition at line 43 of file wilc1000_driver.c.
◆ wilc1000StaDriver
| const NicDriver wilc1000StaDriver | 
WILC1000 driver (STA mode)
Definition at line 55 of file wilc1000_driver.c.
◆ wilc1000StaInterface
| NetInterface* wilc1000StaInterface = NULL | 
Definition at line 42 of file wilc1000_driver.c.
