bcm43362_driver.h
Go to the documentation of this file.
1 /**
2  * @file bcm43362_driver.h
3  * @brief BCM43362 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 _BCM43362_DRIVER_H
32 #define _BCM43362_DRIVER_H
33 
34 //Dependencies
35 #include "core/nic.h"
36 
37 //C++ guard
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 //BCM43362 driver (STA mode)
43 extern const NicDriver bcm43362StaDriver;
44 //BCM43362 driver (AP mode)
45 extern const NicDriver bcm43362ApDriver;
46 
47 //BCM43362 related functions
49 
50 void bcm43362Tick(NetInterface *interface);
51 
52 void bcm43362EnableIrq(NetInterface *interface);
53 void bcm43362DisableIrq(NetInterface *interface);
55 void bcm43362EventHandler(NetInterface *interface);
56 
58  const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary);
59 
61 
62 void bcm43362AppWifiEvent(uint8_t msgType, void *msg);
63 void bcm43362AppEthEvent(uint8_t msgType, void *msg, void *ctrlBuf);
64 
65 //C++ guard
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif
error_t bcm43362SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
error_t bcm43362Init(NetInterface *interface)
BCM43362 initialization.
void bcm43362EnableIrq(NetInterface *interface)
Enable interrupts.
const NicDriver bcm43362StaDriver
BCM43362 driver (STA mode)
bool_t bcm43362IrqHandler(void)
BCM43362 interrupt service routine.
void bcm43362AppEthEvent(uint8_t msgType, void *msg, void *ctrlBuf)
void bcm43362DisableIrq(NetInterface *interface)
Disable interrupts.
void bcm43362AppWifiEvent(uint8_t msgType, void *msg)
const NicDriver bcm43362ApDriver
BCM43362 driver (AP mode)
void bcm43362EventHandler(NetInterface *interface)
BCM43362 event handler.
void bcm43362Tick(NetInterface *interface)
BCM43362 timer handler.
error_t bcm43362UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
int bool_t
Definition: compiler_port.h:53
error_t
Error codes.
Definition: error.h:43
uint8_t msgType
#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