wf200_driver.h
Go to the documentation of this file.
1 /**
2  * @file wf200_driver.h
3  * @brief WF200 Wi-Fi controller
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneTCP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 2.4.0
29  **/
30 
31 #ifndef _WF200_DRIVER_H
32 #define _WF200_DRIVER_H
33 
34 //Dependencies
35 #include "core/nic.h"
36 
37 //C++ guard
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 //WF200 driver (STA mode)
43 extern const NicDriver wf200StaDriver;
44 //WF200 driver (AP mode)
45 extern const NicDriver wf200ApDriver;
46 
47 //WF200 related functions
48 error_t wf200Init(NetInterface *interface);
49 
50 void wf200Tick(NetInterface *interface);
51 
52 void wf200EnableIrq(NetInterface *interface);
53 void wf200DisableIrq(NetInterface *interface);
54 void wf200EventHandler(NetInterface *interface);
55 
57  const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary);
58 
60 
61 void wf200ConnectCallback(void);
62 void wf200DisconnectCallback(void);
63 void wf200StartApCallback(void);
64 void wf200StopApCallback(void);
65 
66 //C++ guard
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif
error_t
Error codes.
Definition: error.h:43
#define NetInterface
Definition: net.h:36
#define NetTxAncillary
Definition: net_misc.h:36
Network interface controller abstraction layer.
Structure describing a buffer that spans multiple chunks.
Definition: net_mem.h:89
NIC driver.
Definition: nic.h:283
void wf200EventHandler(NetInterface *interface)
WF200 event handler.
Definition: wf200_driver.c:235
void wf200ConnectCallback(void)
Station connected callback.
Definition: wf200_driver.c:399
void wf200DisconnectCallback(void)
Station disconnected callback.
Definition: wf200_driver.c:421
void wf200Tick(NetInterface *interface)
WF200 timer handler.
Definition: wf200_driver.c:205
void wf200EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: wf200_driver.c:215
void wf200StartApCallback(void)
Station connected callback.
Definition: wf200_driver.c:443
void wf200DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: wf200_driver.c:225
const NicDriver wf200ApDriver
WF200 driver (AP mode)
Definition: wf200_driver.c:82
void wf200StopApCallback(void)
Station disconnected callback.
Definition: wf200_driver.c:465
const NicDriver wf200StaDriver
WF200 driver (STA mode)
Definition: wf200_driver.c:57
error_t wf200UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: wf200_driver.c:325
error_t wf200SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: wf200_driver.c:250
error_t wf200Init(NetInterface *interface)
WF200 initialization.
Definition: wf200_driver.c:109