NXP LPC LWIP port documentation  v0.80
LWIP port for LPC devices
C:/lwip_lpc/nxpcommon/lpc_phy_lan8720.c File Reference

LAN8720 PHY status and control. More...

#include "lwip/opt.h"
#include "lwip/err.h"
#include "lwip/snmp.h"
#include "lpc177x_8x_emac.h"
#include "lpc_emac_config.h"
#include "lpc_phy.h"

Defines

#define LAN8_BCR_REG   0x0
 LAN8720 PHY register offsets.
#define LAN8_BSR_REG   0x1
#define LAN8_PHYID1_REG   0x2
#define LAN8_PHYID2_REG   0x3
#define LAN8_PHYSPLCTL_REG   0x1F
#define LAN8_RESET   (1 << 15)
#define LAN8_LOOPBACK   (1 << 14)
#define LAN8_SPEED_SELECT   (1 << 13)
#define LAN8_AUTONEG   (1 << 12)
#define LAN8_POWER_DOWN   (1 << 11)
#define LAN8_ISOLATE   (1 << 10)
#define LAN8_RESTART_AUTONEG   (1 << 9)
#define LAN8_DUPLEX_MODE   (1 << 8)
#define LAN8_100BASE_T4   (1 << 15)
#define LAN8_100BASE_TX_FD   (1 << 14)
#define LAN8_100BASE_TX_HD   (1 << 13)
#define LAN8_10BASE_T_FD   (1 << 12)
#define LAN8_10BASE_T_HD   (1 << 11)
#define LAN8_AUTONEG_COMP   (1 << 5)
#define LAN8_RMT_FAULT   (1 << 4)
#define LAN8_AUTONEG_ABILITY   (1 << 3)
#define LAN8_LINK_STATUS   (1 << 2)
#define LAN8_JABBER_DETECT   (1 << 1)
#define LAN8_EXTEND_CAPAB   (1 << 0)
#define LAN8_SPEEDMASK   (7 << 2)
#define LAN8_SPEED100F   (6 << 2)
#define LAN8_SPEED10F   (5 << 2)
#define LAN8_SPEED100H   (2 << 2)
#define LAN8_SPEED10H   (1 << 2)
#define LAN8_PHYID1_OUI   0x0007
#define LAN8_PHYID2_OUI   0xC0F0

Functions

err_t lpc_phy_init (struct netif *netif)
 Initialize the LAN8720 PHY.
s32_t lpc_phy_sts_sm (struct netif *netif)
 Phy status update state machine.

Detailed Description

LAN8720 PHY status and control.

Version:
1.0
Date:
20 Nov. 2011
Author:
NXP MCU SW Application Team

Copyright(C) 2011, NXP Semiconductor All rights reserved.

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.