bcm43362_driver.c File Reference

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)
 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

Copyright (C) 2010-2018 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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.0

Definition in file bcm43362_driver.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   NIC_TRACE_LEVEL

Definition at line 30 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 408 of file bcm43362_driver.c.

◆ bcm43362DisableIrq()

void bcm43362DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 248 of file bcm43362_driver.c.

◆ bcm43362EnableIrq()

void bcm43362EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 238 of file bcm43362_driver.c.

◆ bcm43362EventHandler()

void bcm43362EventHandler ( NetInterface interface)

BCM43362 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 284 of file bcm43362_driver.c.

◆ bcm43362Init()

error_t bcm43362Init ( NetInterface interface)

BCM43362 initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 130 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 258 of file bcm43362_driver.c.

◆ bcm43362SendPacket()

error_t bcm43362SendPacket ( NetInterface interface,
const NetBuffer buffer,
size_t  offset 
)

Send a packet.

Parameters
[in]interfaceUnderlying network interface
[in]bufferMulti-part buffer containing the data to send
[in]offsetOffset to the first data byte
Returns
Error code

Definition at line 297 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]interfaceUnderlying network interface

Definition at line 228 of file bcm43362_driver.c.

◆ bcm43362UpdateMacAddrFilter()

error_t bcm43362UpdateMacAddrFilter ( NetInterface interface)

Configure MAC address filtering.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 360 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 488 of file bcm43362_driver.c.

◆ vTaskFreeTerminated()

portBASE_TYPE vTaskFreeTerminated ( TaskHandle_t  xTask)

Definition at line 539 of file bcm43362_driver.c.

◆ xTaskIsTaskFinished()

signed int xTaskIsTaskFinished ( void *  xTask)

Definition at line 533 of file bcm43362_driver.c.

Variable Documentation

◆ bcm43362ApDriver

const NicDriver bcm43362ApDriver
Initial value:
=
{
NULL,
NULL,
NULL,
}
void bcm43362EventHandler(NetInterface *interface)
BCM43362 event handler.
error_t bcm43362UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
#define TRUE
Definition: os_port.h:48
error_t bcm43362SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset)
Send a packet.
#define ETH_MTU
Definition: ethernet.h:82
Ethernet interface.
Definition: nic.h:69
void bcm43362Tick(NetInterface *interface)
BCM43362 timer handler.
void bcm43362EnableIrq(NetInterface *interface)
Enable interrupts.
void bcm43362DisableIrq(NetInterface *interface)
Disable interrupts.
error_t bcm43362Init(NetInterface *interface)
BCM43362 initialization.

BCM43362 driver (AP mode)

Definition at line 103 of file bcm43362_driver.c.

◆ bcm43362StaDriver

const NicDriver bcm43362StaDriver
Initial value:
=
{
NULL,
NULL,
NULL,
}
void bcm43362EventHandler(NetInterface *interface)
BCM43362 event handler.
error_t bcm43362UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
#define TRUE
Definition: os_port.h:48
error_t bcm43362SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset)
Send a packet.
#define ETH_MTU
Definition: ethernet.h:82
Ethernet interface.
Definition: nic.h:69
void bcm43362Tick(NetInterface *interface)
BCM43362 timer handler.
void bcm43362EnableIrq(NetInterface *interface)
Enable interrupts.
void bcm43362DisableIrq(NetInterface *interface)
Disable interrupts.
error_t bcm43362Init(NetInterface *interface)
BCM43362 initialization.

BCM43362 driver (STA mode)

Definition at line 78 of file bcm43362_driver.c.

◆ wwdRxQueue

QueueHandle_t wwdRxQueue

Definition at line 57 of file bcm43362_driver.c.