Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
enc624j600.h File Reference
ENC624J600/ENC424J600 Ethernet controller. More...
Go to the source code of this file.
Data Structures | |
| struct | Enc624j600Context |
| ENC624J600 driver context. More... | |
Functions | |
| error_t | enc624j600Init (NetInterface *interface) |
| ENC624J600 controller initialization. | |
| void | enc624j600Tick (NetInterface *interface) |
| ENC624J600 timer handler. | |
| void | enc624j600EnableIrq (NetInterface *interface) |
| Enable interrupts. | |
| void | enc624j600DisableIrq (NetInterface *interface) |
| Disable interrupts. | |
| bool_t | enc624j600IrqHandler (NetInterface *interface) |
| ENC624J600 interrupt service routine. | |
| void | enc624j600EventHandler (NetInterface *interface) |
| ENC624J600 event handler. | |
| error_t | enc624j600SendPacket (NetInterface *interface, const NetBuffer *buffer, size_t offset) |
| Send a packet. | |
| error_t | enc624j600ReceivePacket (NetInterface *interface) |
| Receive a packet. | |
| error_t | enc624j600SetMulticastFilter (NetInterface *interface) |
| Configure multicast MAC address filtering. | |
| void | enc624j600UpdateMacConfig (NetInterface *interface) |
| Adjust MAC configuration parameters for proper operation. | |
| error_t | enc624j600SoftReset (NetInterface *interface) |
| Reset ENC624J600 controller. | |
| void | enc624j600WriteReg (NetInterface *interface, uint8_t address, uint16_t data) |
| Write ENC624J600 register. | |
| uint16_t | enc624j600ReadReg (NetInterface *interface, uint8_t address) |
| Read ENC624J600 register. | |
| void | enc624j600WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data) |
| Write PHY register. | |
| uint16_t | enc624j600ReadPhyReg (NetInterface *interface, uint8_t address) |
| Read PHY register. | |
| void | enc624j600WriteBuffer (NetInterface *interface, uint8_t opcode, const NetBuffer *buffer, size_t offset) |
| Write SRAM buffer. | |
| void | enc624j600ReadBuffer (NetInterface *interface, uint8_t opcode, uint8_t *data, size_t length) |
| Read SRAM buffer. | |
| void | enc624j600SetBit (NetInterface *interface, uint8_t address, uint16_t mask) |
| Set bit field. | |
| void | enc624j600ClearBit (NetInterface *interface, uint8_t address, uint16_t mask) |
| Clear bit field. | |
| uint32_t | enc624j600CalcCrc (const void *data, size_t length) |
| CRC calculation using the polynomial 0x4C11DB7. | |
| void | enc624j600DumpReg (NetInterface *interface) |
| Dump registers for debugging purpose. | |
| void | enc624j600DumpPhyReg (NetInterface *interface) |
| Dump PHY registers for debugging purpose. | |
Variables | |
| const NicDriver | enc624j600Driver |
| ENC624J600 driver. | |
Detailed Description
ENC624J600/ENC424J600 Ethernet controller.
License
Copyright (C) 2010-2017 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:
- 1.7.6
Definition in file enc624j600.h.
Function Documentation
| uint32_t enc624j600CalcCrc | ( | const void * | data, |
| size_t | length | ||
| ) |
CRC calculation using the polynomial 0x4C11DB7.
- Parameters:
-
[in] data Pointer to the data over which to calculate the CRC [in] length Number of bytes to process
- Returns:
- Resulting CRC value
Definition at line 848 of file enc624j600.c.
| void enc624j600ClearBit | ( | NetInterface * | interface, |
| uint8_t | address, | ||
| uint16_t | mask | ||
| ) |
Clear bit field.
- Parameters:
-
[in] interface Underlying network interface [in] address Register address [in] mask Bits to clear in the target register
Definition at line 823 of file enc624j600.c.
| void enc624j600DisableIrq | ( | NetInterface * | interface ) |
Disable interrupts.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 198 of file enc624j600.c.
| void enc624j600DumpPhyReg | ( | NetInterface * | interface ) |
Dump PHY registers for debugging purpose.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 922 of file enc624j600.c.
| void enc624j600DumpReg | ( | NetInterface * | interface ) |
Dump registers for debugging purpose.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 882 of file enc624j600.c.
| void enc624j600EnableIrq | ( | NetInterface * | interface ) |
Enable interrupts.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 186 of file enc624j600.c.
| void enc624j600EventHandler | ( | NetInterface * | interface ) |
ENC624J600 event handler.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 273 of file enc624j600.c.
| error_t enc624j600Init | ( | NetInterface * | interface ) |
ENC624J600 controller initialization.
- Parameters:
-
[in] interface Underlying network interface
- Returns:
- Error code
Definition at line 69 of file enc624j600.c.
| bool_t enc624j600IrqHandler | ( | NetInterface * | interface ) |
ENC624J600 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 211 of file enc624j600.c.
| void enc624j600ReadBuffer | ( | NetInterface * | interface, |
| uint8_t | opcode, | ||
| uint8_t * | data, | ||
| size_t | length | ||
| ) |
Read SRAM buffer.
- Parameters:
-
[in] interface Underlying network interface [in] opcode SRAM buffer operation [in] data Buffer where to store the incoming data [in] length Number of data to read
Definition at line 771 of file enc624j600.c.
| uint16_t enc624j600ReadPhyReg | ( | NetInterface * | interface, |
| uint8_t | address | ||
| ) |
Read PHY register.
- Parameters:
-
[in] interface Underlying network interface [in] address PHY register address
- Returns:
- Register value
Definition at line 691 of file enc624j600.c.
| uint16_t enc624j600ReadReg | ( | NetInterface * | interface, |
| uint8_t | address | ||
| ) |
Read ENC624J600 register.
- Parameters:
-
[in] interface Underlying network interface [in] address Register address
- Returns:
- Register value
Definition at line 641 of file enc624j600.c.
| error_t enc624j600ReceivePacket | ( | NetInterface * | interface ) |
Receive a packet.
- Parameters:
-
[in] interface Underlying network interface
- Returns:
- Error code
Definition at line 409 of file enc624j600.c.
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
- Returns:
- Error code
Definition at line 353 of file enc624j600.c.
| void enc624j600SetBit | ( | NetInterface * | interface, |
| uint8_t | address, | ||
| uint16_t | mask | ||
| ) |
Set bit field.
- Parameters:
-
[in] interface Underlying network interface [in] address Register address [in] mask Bits to set in the target register
Definition at line 798 of file enc624j600.c.
| error_t enc624j600SetMulticastFilter | ( | NetInterface * | interface ) |
Configure multicast MAC address filtering.
- Parameters:
-
[in] interface Underlying network interface
- Returns:
- Error code
Definition at line 488 of file enc624j600.c.
| error_t enc624j600SoftReset | ( | NetInterface * | interface ) |
Reset ENC624J600 controller.
- Parameters:
-
[in] interface Underlying network interface
- Returns:
- Error code
Definition at line 577 of file enc624j600.c.
| void enc624j600Tick | ( | NetInterface * | interface ) |
ENC624J600 timer handler.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 176 of file enc624j600.c.
| void enc624j600UpdateMacConfig | ( | NetInterface * | interface ) |
Adjust MAC configuration parameters for proper operation.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 543 of file enc624j600.c.
| void enc624j600WriteBuffer | ( | NetInterface * | interface, |
| uint8_t | opcode, | ||
| const NetBuffer * | buffer, | ||
| size_t | offset | ||
| ) |
Write SRAM buffer.
- Parameters:
-
[in] interface Underlying network interface [in] opcode SRAM buffer operation [in] buffer Multi-part buffer containing the data to be written [in] offset Offset to the first data byte
Definition at line 719 of file enc624j600.c.
| void enc624j600WritePhyReg | ( | NetInterface * | interface, |
| uint8_t | address, | ||
| uint16_t | data | ||
| ) |
Write PHY register.
- Parameters:
-
[in] interface Underlying network interface [in] address PHY register address [in] data Register value
Definition at line 672 of file enc624j600.c.
| void enc624j600WriteReg | ( | NetInterface * | interface, |
| uint8_t | address, | ||
| uint16_t | data | ||
| ) |
Write ENC624J600 register.
- Parameters:
-
[in] interface Underlying network interface [in] address Register address [in] data Register value
Definition at line 616 of file enc624j600.c.
Variable Documentation
| const NicDriver enc624j600Driver |
ENC624J600 driver.
Definition at line 42 of file enc624j600.c.
Generated on Tue Jul 12 2022 17:10:19 by
1.7.2