WIZnet W3150A+ Ethernet controller. More...
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL NIC_TRACE_LEVEL |
Functions | |
error_t | w3150aInit (NetInterface *interface) |
W3150A+ controller initialization. More... | |
__weak_func void | w3150aInitHook (NetInterface *interface) |
W3150A+ custom configuration. More... | |
__weak_func void | w3150aTick (NetInterface *interface) |
W3150A+ timer handler. More... | |
void | w3150aEnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | w3150aDisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
bool_t | w3150aIrqHandler (NetInterface *interface) |
W3150A+ interrupt service routine. More... | |
void | w3150aEventHandler (NetInterface *interface) |
W3150A+ event handler. More... | |
error_t | w3150aSendPacket (NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary) |
Send a packet. More... | |
error_t | w3150aReceivePacket (NetInterface *interface) |
Receive a packet. More... | |
error_t | w3150aUpdateMacAddrFilter (NetInterface *interface) |
Configure MAC address filtering. More... | |
void | w3150aWriteReg8 (NetInterface *interface, uint16_t address, uint8_t data) |
Write 8-bit register. More... | |
uint8_t | w3150aReadReg8 (NetInterface *interface, uint16_t address) |
Read 8-bit register. More... | |
void | w3150aWriteReg16 (NetInterface *interface, uint16_t address, uint16_t data) |
Write 16-bit register. More... | |
uint16_t | w3150aReadReg16 (NetInterface *interface, uint16_t address) |
Read 16-bit register. More... | |
void | w3150aWriteData (NetInterface *interface, const uint8_t *data, size_t length) |
Write data. More... | |
void | w3150aReadData (NetInterface *interface, uint8_t *data, size_t length) |
Read data. More... | |
void | w3150aWriteBuffer (NetInterface *interface, uint16_t address, const uint8_t *data, size_t length) |
Write TX buffer. More... | |
void | w3150aReadBuffer (NetInterface *interface, uint16_t address, uint8_t *data, size_t length) |
Read RX buffer. More... | |
void | w3150aDumpReg (NetInterface *interface) |
Dump registers for debugging purpose. More... | |
Variables | |
const NicDriver | w3150aDriver |
W3150A+ driver. More... | |
Detailed Description
WIZnet W3150A+ Ethernet 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 w3150a_driver.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL NIC_TRACE_LEVEL |
Definition at line 32 of file w3150a_driver.c.
Function Documentation
◆ w3150aDisableIrq()
void w3150aDisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 202 of file w3150a_driver.c.
◆ w3150aDumpReg()
void w3150aDumpReg | ( | NetInterface * | interface | ) |
Dump registers for debugging purpose.
- Parameters
-
[in] interface Underlying network interface
Definition at line 716 of file w3150a_driver.c.
◆ w3150aEnableIrq()
void w3150aEnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 187 of file w3150a_driver.c.
◆ w3150aEventHandler()
void w3150aEventHandler | ( | NetInterface * | interface | ) |
W3150A+ event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 279 of file w3150a_driver.c.
◆ w3150aInit()
error_t w3150aInit | ( | NetInterface * | interface | ) |
W3150A+ controller initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 71 of file w3150a_driver.c.
◆ w3150aInitHook()
__weak_func void w3150aInitHook | ( | NetInterface * | interface | ) |
W3150A+ custom configuration.
- Parameters
-
[in] interface Underlying network interface
Definition at line 159 of file w3150a_driver.c.
◆ w3150aIrqHandler()
bool_t w3150aIrqHandler | ( | NetInterface * | interface | ) |
W3150A+ interrupt service routine.
- Parameters
-
[in] interface Underlying network interface
- Returns
- TRUE if a higher priority task must be woken. Else FALSE is returned
Definition at line 218 of file w3150a_driver.c.
◆ w3150aReadBuffer()
void w3150aReadBuffer | ( | NetInterface * | interface, |
uint16_t | address, | ||
uint8_t * | data, | ||
size_t | length | ||
) |
Read RX buffer.
- Parameters
-
[in] interface Underlying network interface [in] address Buffer address [out] data Buffer where to store the incoming data [in] length Number of data to read
Definition at line 696 of file w3150a_driver.c.
◆ w3150aReadData()
void w3150aReadData | ( | NetInterface * | interface, |
uint8_t * | data, | ||
size_t | length | ||
) |
Read data.
- Parameters
-
[in] interface Underlying network interface [out] data Buffer where to store the incoming data [in] length Number of data to read
Definition at line 607 of file w3150a_driver.c.
◆ w3150aReadReg16()
uint16_t w3150aReadReg16 | ( | NetInterface * | interface, |
uint16_t | address | ||
) |
Read 16-bit register.
- Parameters
-
[in] interface Underlying network interface [in] address Register address
- Returns
- Register value
Definition at line 507 of file w3150a_driver.c.
◆ w3150aReadReg8()
uint8_t w3150aReadReg8 | ( | NetInterface * | interface, |
uint16_t | address | ||
) |
Read 8-bit register.
- Parameters
-
[in] interface Underlying network interface [in] address Register address
- Returns
- Register value
Definition at line 459 of file w3150a_driver.c.
◆ w3150aReceivePacket()
error_t w3150aReceivePacket | ( | NetInterface * | interface | ) |
Receive a packet.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 357 of file w3150a_driver.c.
◆ w3150aSendPacket()
error_t w3150aSendPacket | ( | 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 304 of file w3150a_driver.c.
◆ w3150aTick()
__weak_func void w3150aTick | ( | NetInterface * | interface | ) |
W3150A+ timer handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 169 of file w3150a_driver.c.
◆ w3150aUpdateMacAddrFilter()
error_t w3150aUpdateMacAddrFilter | ( | NetInterface * | interface | ) |
Configure MAC address filtering.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 418 of file w3150a_driver.c.
◆ w3150aWriteBuffer()
void w3150aWriteBuffer | ( | NetInterface * | interface, |
uint16_t | address, | ||
const uint8_t * | data, | ||
size_t | length | ||
) |
Write TX buffer.
- Parameters
-
[in] interface Underlying network interface [in] address Buffer address [in] data Pointer to the data being written [in] length Number of data to write
Definition at line 673 of file w3150a_driver.c.
◆ w3150aWriteData()
void w3150aWriteData | ( | NetInterface * | interface, |
const uint8_t * | data, | ||
size_t | length | ||
) |
Write data.
- Parameters
-
[in] interface Underlying network interface [in] data Pointer to the data being written [in] length Number of data to write
Definition at line 541 of file w3150a_driver.c.
◆ w3150aWriteReg16()
void w3150aWriteReg16 | ( | NetInterface * | interface, |
uint16_t | address, | ||
uint16_t | data | ||
) |
Write 16-bit register.
- Parameters
-
[in] interface Underlying network interface [in] address Register address [in] data Register value
Definition at line 491 of file w3150a_driver.c.
◆ w3150aWriteReg8()
void w3150aWriteReg8 | ( | NetInterface * | interface, |
uint16_t | address, | ||
uint8_t | data | ||
) |
Write 8-bit register.
- Parameters
-
[in] interface Underlying network interface [in] address Register address [in] data Register value
Definition at line 432 of file w3150a_driver.c.