BCM43362 Wi-Fi controller. More...
#include "core/net.h"
#include "drivers/wifi/bcm43362_driver.h"
#include "debug.h"
#include "platform_init.h"
#include "platform_mcu_peripheral.h"
#include "wwd_constants.h"
#include "wwd_structures.h"
#include "wwd_buffer.h"
#include "wwd_events.h"
#include "wwd_management.h"
#include "wwd_poll.h"
#include "wwd_wifi.h"
#include "wwd_buffer_interface.h"
#include "wwd_bus_protocol_interface.h"
#include "wwd_network_constants.h"
#include "wwd_network_interface.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL NIC_TRACE_LEVEL |
Functions | |
void * | app_wifi_event_handler (const wwd_event_header_t *event_header, const uint8_t *event_data, void *handler_user_data) |
Callback function that handles Wi-Fi events. More... | |
error_t | bcm43362Init (NetInterface *interface) |
BCM43362 initialization. More... | |
void | bcm43362Tick (NetInterface *interface) |
BCM43362 timer handler. More... | |
void | bcm43362EnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | bcm43362DisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
bool_t | bcm43362IrqHandler (void) |
BCM43362 interrupt service routine. More... | |
void | bcm43362EventHandler (NetInterface *interface) |
BCM43362 event handler. More... | |
error_t | bcm43362SendPacket (NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary) |
Send a packet. More... | |
error_t | bcm43362UpdateMacAddrFilter (NetInterface *interface) |
Configure MAC address filtering. More... | |
void | host_network_process_ethernet_data (wiced_buffer_t buffer, wwd_interface_t interface) |
Callback function that handles incoming packets. More... | |
signed int | xTaskIsTaskFinished (void *xTask) |
portBASE_TYPE | vTaskFreeTerminated (TaskHandle_t xTask) |
Variables | |
QueueHandle_t | wwdRxQueue |
const NicDriver | bcm43362StaDriver |
BCM43362 driver (STA mode) More... | |
const NicDriver | bcm43362ApDriver |
BCM43362 driver (AP mode) More... | |
Detailed Description
BCM43362 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 bcm43362_driver.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL NIC_TRACE_LEVEL |
Definition at line 32 of file bcm43362_driver.c.
Function Documentation
◆ app_wifi_event_handler()
void * app_wifi_event_handler | ( | const wwd_event_header_t * | event_header, |
const uint8_t * | event_data, | ||
void * | handler_user_data | ||
) |
Callback function that handles Wi-Fi events.
Definition at line 420 of file bcm43362_driver.c.
◆ bcm43362DisableIrq()
void bcm43362DisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 250 of file bcm43362_driver.c.
◆ bcm43362EnableIrq()
void bcm43362EnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 240 of file bcm43362_driver.c.
◆ bcm43362EventHandler()
void bcm43362EventHandler | ( | NetInterface * | interface | ) |
BCM43362 event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 290 of file bcm43362_driver.c.
◆ bcm43362Init()
error_t bcm43362Init | ( | NetInterface * | interface | ) |
BCM43362 initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 132 of file bcm43362_driver.c.
◆ bcm43362IrqHandler()
bool_t bcm43362IrqHandler | ( | void | ) |
BCM43362 interrupt service routine.
- Returns
- TRUE if a higher priority task must be woken. Else FALSE is returned
Definition at line 260 of file bcm43362_driver.c.
◆ bcm43362SendPacket()
error_t bcm43362SendPacket | ( | 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 305 of file bcm43362_driver.c.
◆ bcm43362Tick()
void bcm43362Tick | ( | NetInterface * | interface | ) |
BCM43362 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 230 of file bcm43362_driver.c.
◆ bcm43362UpdateMacAddrFilter()
error_t bcm43362UpdateMacAddrFilter | ( | NetInterface * | interface | ) |
Configure MAC address filtering.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 372 of file bcm43362_driver.c.
◆ host_network_process_ethernet_data()
void host_network_process_ethernet_data | ( | wiced_buffer_t | buffer, |
wwd_interface_t | interface | ||
) |
Callback function that handles incoming packets.
Definition at line 508 of file bcm43362_driver.c.
◆ vTaskFreeTerminated()
portBASE_TYPE vTaskFreeTerminated | ( | TaskHandle_t | xTask | ) |
Definition at line 570 of file bcm43362_driver.c.
◆ xTaskIsTaskFinished()
signed int xTaskIsTaskFinished | ( | void * | xTask | ) |
Definition at line 564 of file bcm43362_driver.c.
Variable Documentation
◆ bcm43362ApDriver
const NicDriver bcm43362ApDriver |
BCM43362 driver (AP mode)
Definition at line 105 of file bcm43362_driver.c.
◆ bcm43362StaDriver
const NicDriver bcm43362StaDriver |
BCM43362 driver (STA mode)
Definition at line 80 of file bcm43362_driver.c.
◆ wwdRxQueue
QueueHandle_t wwdRxQueue |
Definition at line 59 of file bcm43362_driver.c.