winc1500_driver.c File Reference

WINC1500 Wi-Fi controller. More...

#include "driver/include/m2m_wifi.h"
#include "core/net.h"
#include "drivers/wifi/winc1500_driver.h"
#include "winc1500_config.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   NIC_TRACE_LEVEL
 

Functions

error_t winc1500Init (NetInterface *interface)
 WINC1500 initialization. More...
 
void winc1500Tick (NetInterface *interface)
 WINC1500 timer handler. More...
 
void winc1500EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void winc1500DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
bool_t winc1500IrqHandler (void)
 WINC1500 interrupt service routine. More...
 
void winc1500EventHandler (NetInterface *interface)
 WINC1500 event handler. More...
 
error_t winc1500SendPacket (NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
 Send a packet. More...
 
error_t winc1500UpdateMacAddrFilter (NetInterface *interface)
 Configure MAC address filtering. More...
 
void winc1500AppWifiEvent (uint8_t msgType, void *msg)
 Callback function that handles Wi-Fi events. More...
 
void winc1500AppEthEvent (uint8_t msgType, void *msg, void *ctrlBuf)
 Callback function that handles events in bypass mode. More...
 

Variables

const NicDriver winc1500Driver
 WINC1500 driver. More...
 

Detailed Description

WINC1500 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.

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

Definition in file winc1500_driver.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   NIC_TRACE_LEVEL

Definition at line 32 of file winc1500_driver.c.

Function Documentation

◆ winc1500AppEthEvent()

void winc1500AppEthEvent ( uint8_t  msgType,
void *  msg,
void *  ctrlBuf 
)

Callback function that handles events in bypass mode.

Parameters
[in]msgTypeType of notification
[in]msgPointer to the buffer containing the notification parameters
[in]ctrlBufPointer to the control buffer

Definition at line 399 of file winc1500_driver.c.

◆ winc1500AppWifiEvent()

void winc1500AppWifiEvent ( uint8_t  msgType,
void *  msg 
)

Callback function that handles Wi-Fi events.

Parameters
[in]msgTypeType of notification
[in]msgPointer to the buffer containing the notification parameters

Definition at line 349 of file winc1500_driver.c.

◆ winc1500DisableIrq()

void winc1500DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 202 of file winc1500_driver.c.

◆ winc1500EnableIrq()

void winc1500EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 192 of file winc1500_driver.c.

◆ winc1500EventHandler()

void winc1500EventHandler ( NetInterface interface)

WINC1500 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 234 of file winc1500_driver.c.

◆ winc1500Init()

error_t winc1500Init ( NetInterface interface)

WINC1500 initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 81 of file winc1500_driver.c.

◆ winc1500IrqHandler()

bool_t winc1500IrqHandler ( void  )

WINC1500 interrupt service routine.

Returns
TRUE if a higher priority task must be woken. Else FALSE is returned

Definition at line 212 of file winc1500_driver.c.

◆ winc1500SendPacket()

error_t winc1500SendPacket ( NetInterface interface,
const NetBuffer buffer,
size_t  offset,
NetTxAncillary ancillary 
)

Send a packet.

Parameters
[in]interfaceUnderlying network interface
[in]bufferMulti-part buffer containing the data to send
[in]offsetOffset to the first data byte
[in]ancillaryAdditional options passed to the stack along with the packet
Returns
Error code

Definition at line 251 of file winc1500_driver.c.

◆ winc1500Tick()

void winc1500Tick ( NetInterface interface)

WINC1500 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 182 of file winc1500_driver.c.

◆ winc1500UpdateMacAddrFilter()

error_t winc1500UpdateMacAddrFilter ( NetInterface interface)

Configure MAC address filtering.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 305 of file winc1500_driver.c.

Variable Documentation

◆ winc1500Driver

const NicDriver winc1500Driver
void winc1500EventHandler(NetInterface *interface)
WINC1500 event handler.
#define TRUE
Definition: os_port.h:50
error_t winc1500Init(NetInterface *interface)
WINC1500 initialization.
void winc1500EnableIrq(NetInterface *interface)
Enable interrupts.
error_t winc1500SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
#define ETH_MTU
Definition: ethernet.h:116
error_t winc1500UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
void winc1500Tick(NetInterface *interface)
WINC1500 timer handler.
void winc1500DisableIrq(NetInterface *interface)
Disable interrupts.
@ NIC_TYPE_ETHERNET
Ethernet interface.
Definition: nic.h:83