WF200 Wi-Fi controller. More...
#include "sl_wfx.h"
#include "sl_wfx_host.h"
#include "sl_wfx_host_api.h"
#include "core/net.h"
#include "drivers/wifi/wf200_driver.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL NIC_TRACE_LEVEL |
Functions | |
sl_status_t | sl_wfx_host_init_pins (void) |
error_t | wf200Init (NetInterface *interface) |
WF200 initialization. More... | |
void | wf200Tick (NetInterface *interface) |
WF200 timer handler. More... | |
void | wf200EnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | wf200DisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
void | wf200EventHandler (NetInterface *interface) |
WF200 event handler. More... | |
error_t | wf200SendPacket (NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary) |
Send a packet. More... | |
error_t | wf200UpdateMacAddrFilter (NetInterface *interface) |
Configure MAC address filtering. More... | |
void | wf200ConnectCallback (void) |
Station connected callback. More... | |
void | wf200DisconnectCallback (void) |
Station disconnected callback. More... | |
void | wf200StartApCallback (void) |
Station connected callback. More... | |
void | wf200StopApCallback (void) |
Station disconnected callback. More... | |
void | sl_wfx_host_received_frame_callback (sl_wfx_received_ind_t *ind) |
Callback function that handles incoming packets. More... | |
Variables | |
const NicDriver | wf200StaDriver |
WF200 driver (STA mode) More... | |
const NicDriver | wf200ApDriver |
WF200 driver (AP mode) More... | |
Detailed Description
WF200 Wi-Fi controller.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 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.4.4
Definition in file wf200_driver.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL NIC_TRACE_LEVEL |
Definition at line 32 of file wf200_driver.c.
Function Documentation
◆ sl_wfx_host_init_pins()
sl_status_t sl_wfx_host_init_pins | ( | void | ) |
◆ sl_wfx_host_received_frame_callback()
void sl_wfx_host_received_frame_callback | ( | sl_wfx_received_ind_t * | ind | ) |
Callback function that handles incoming packets.
- Parameters
-
[in] ind Pointer to the received indication
Definition at line 488 of file wf200_driver.c.
◆ wf200ConnectCallback()
void wf200ConnectCallback | ( | void | ) |
Station connected callback.
Definition at line 399 of file wf200_driver.c.
◆ wf200DisableIrq()
void wf200DisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 225 of file wf200_driver.c.
◆ wf200DisconnectCallback()
void wf200DisconnectCallback | ( | void | ) |
Station disconnected callback.
Definition at line 421 of file wf200_driver.c.
◆ wf200EnableIrq()
void wf200EnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 215 of file wf200_driver.c.
◆ wf200EventHandler()
void wf200EventHandler | ( | NetInterface * | interface | ) |
WF200 event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 235 of file wf200_driver.c.
◆ wf200Init()
error_t wf200Init | ( | NetInterface * | interface | ) |
WF200 initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 109 of file wf200_driver.c.
◆ wf200SendPacket()
error_t wf200SendPacket | ( | 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 250 of file wf200_driver.c.
◆ wf200StartApCallback()
void wf200StartApCallback | ( | void | ) |
Station connected callback.
Definition at line 443 of file wf200_driver.c.
◆ wf200StopApCallback()
void wf200StopApCallback | ( | void | ) |
Station disconnected callback.
Definition at line 465 of file wf200_driver.c.
◆ wf200Tick()
void wf200Tick | ( | NetInterface * | interface | ) |
WF200 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 205 of file wf200_driver.c.
◆ wf200UpdateMacAddrFilter()
error_t wf200UpdateMacAddrFilter | ( | NetInterface * | interface | ) |
Configure MAC address filtering.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 325 of file wf200_driver.c.
Variable Documentation
◆ wf200ApDriver
const NicDriver wf200ApDriver |
WF200 driver (AP mode)
Definition at line 82 of file wf200_driver.c.