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

DP83848C 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 DP8_BMCR_REG   0x0
 DP83848 PHY register offsets.
#define DP8_BMSR_REG   0x1
#define DP8_ANADV_REG   0x4
#define DP8_ANLPA_REG   0x5
#define DP8_ANEEXP_REG   0x6
#define DP8_PHY_STAT_REG   0x10
#define DP8_PHY_INT_CTL_REG   0x11
#define DP8_PHY_STS_REG   0x19
#define DP8_RESET   (1 << 15)
 DP83848 Control register definitions.
#define DP8_LOOPBACK   (1 << 14)
#define DP8_SPEED_SELECT   (1 << 13)
#define DP8_AUTONEG   (1 << 12)
#define DP8_POWER_DOWN   (1 << 11)
#define DP8_ISOLATE   (1 << 10)
#define DP8_RESTART_AUTONEG   (1 << 9)
#define DP8_DUPLEX_MODE   (1 << 8)
#define DP8_COLLISION_TEST   (1 << 7)
#define DP8_100BASE_T4   (1 << 15)
 DP83848 Status register definitions.
#define DP8_100BASE_TX_FD   (1 << 14)
#define DP8_100BASE_TX_HD   (1 << 13)
#define DP8_10BASE_T_FD   (1 << 12)
#define DP8_10BASE_T_HD   (1 << 11)
#define DP8_MF_PREAMB_SUPPR   (1 << 6)
#define DP8_AUTONEG_COMP   (1 << 5)
#define DP8_RMT_FAULT   (1 << 4)
#define DP8_AUTONEG_ABILITY   (1 << 3)
#define DP8_LINK_STATUS   (1 << 2)
#define DP8_JABBER_DETECT   (1 << 1)
#define DP8_EXTEND_CAPAB   (1 << 0)
#define DP8_REMOTEFAULT   (1 << 6)
 DP83848 PHY status definitions.
#define DP8_FULLDUPLEX   (1 << 2)
#define DP8_SPEED10MBPS   (1 << 1)
#define DP8_VALID_LINK   (1 << 0)
#define DP8_PHYID1_OUI   0x2000
 DP83848 PHY ID register definitions.
#define DP8_PHYID2_OUI   0x5c90

Functions

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

Detailed Description

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