NXP LPC LWIP port documentation  v1.10
LWIP port for LPC devices
C:/dev/git/lwip_work/lpc43xx/lwip_lpc/nxpcommon/lpc_phy.h
Go to the documentation of this file.
00001 /**********************************************************************
00002 * $Id$    lpc_phy.h     2011-11-20
00003 */
00026 #ifndef __LPC_PHY_H_
00027 #define __LPC_PHY_H_
00028 
00029 #include "lwip/opt.h"
00030 #include "lwip/err.h"
00031 #include "lwip/netif.h"
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00038 /* These PHY functions are usually part of the EMAC driver */
00039 
00048 s32_t lpc_phy_sts_sm(struct netif *netif);
00049 
00060 err_t lpc_phy_init(struct netif *netif);
00061 
00072 void lpc_mii_write_noblock(u32_t PhyReg, u32_t Value);
00073 
00083 err_t lpc_mii_write(u32_t PhyReg, u32_t Value);
00084 
00093 u32_t lpc_mii_is_busy(void);
00094 
00104 u32_t lpc_mii_read_data(void);
00105 
00115 err_t lpc_mii_read(u32_t PhyReg, u32_t *data);
00116 
00126 void lpc_mii_read_noblock(u32_t PhyReg);
00127 
00134 void lpc_emac_set_duplex(int full_duplex);
00135 
00142 void lpc_emac_set_speed(int mbs_100);
00143 
00144 #ifdef __cplusplus
00145 }
00146 #endif
00147 
00148 #endif /* __LPC_PHY_H_ */
00149 
00150 /* --------------------------------- End Of File ------------------------------ */