lan8770_driver.h File Reference

LAN8770 100Base-T1 Ethernet PHY driver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define LAN8770_PHY_ADDR   4
 
#define LAN8770_BASIC_CONTROL   0x00
 
#define LAN8770_BASIC_STATUS   0x01
 
#define LAN8770_PHY_ID1   0x02
 
#define LAN8770_PHY_ID2   0x03
 
#define LAN8770_MASTER_SLAVE_CONTROL   0x09
 
#define LAN8770_MASTER_SLAVE_STATUS   0x0A
 
#define LAN8770_MDIO_CONTROL2   0x10
 
#define LAN8770_MODE_STATUS   0x11
 
#define LAN8770_EXT_REG_CTL   0x14
 
#define LAN8770_EXT_REG_RD_DATA   0x15
 
#define LAN8770_EXT_REG_WR_DATA   0x16
 
#define LAN8770_PCS_CONTROL   0x17
 
#define LAN8770_INTERRUPT_SOURCE   0x18
 
#define LAN8770_INTERRUPT_MASK   0x19
 
#define LAN8770_POWER_DOWN_CONTROL   0x1A
 
#define LAN8770_PCS_RX_ERR_CNT_STS   0x1E
 
#define LAN8770_REV_ID   0x01, 0x01
 
#define LAN8770_INTERRUPT2_SOURCE   0x01, 0x08
 
#define LAN8770_INTERRUPT2_MASK   0x01, 0x09
 
#define LAN8770_CTRL_0   0x01, 0x10
 
#define LAN8770_CTRL_1   0x01, 0x11
 
#define LAN8770_CTRL_2   0x01, 0x15
 
#define LAN8770_CTRL_3   0x01, 0x17
 
#define LAN8770_DCQ_ERR_MAX   0x01, 0x1A
 
#define LAN8770_WKP_COM_CTL0   0x01, 0x20
 
#define LAN8770_WKP_COM_CTL1   0x01, 0x21
 
#define LAN8770_WKP_DBG_STS   0x01, 0x22
 
#define LAN8770_WKP_PRT_CTL   0x01, 0x24
 
#define LAN8770_SLEEP_WAKE_DET   0x02, 0x20
 
#define LAN8770_AFE_PORT_CFG1   0x03, 0x0B
 
#define LAN8770_COEF_CLK_PWR_DN_CFG   0x04, 0x04
 
#define LAN8770_COEF_RW_CTL_CFG   0x04, 0x0D
 
#define LAN8770_DCQ_CONFIG1   0x04, 0x2E
 
#define LAN8770_DCQ_CONFIG2   0x04, 0x4A
 
#define LAN8770_SQI_SQU_MEAN_LSB   0x04, 0x82
 
#define LAN8770_SQI_SQU_MEAN_MSB   0x04, 0x83
 
#define LAN8770_SQI_TBL0   0x04, 0xBA
 
#define LAN8770_SQI_TBL1   0x04, 0xBB
 
#define LAN8770_SQI_TBL2   0x04, 0xBC
 
#define LAN8770_SQI_TBL3   0x04, 0xBD
 
#define LAN8770_SQI_TBL4   0x04, 0xBE
 
#define LAN8770_SQI_TBL5   0x04, 0xBF
 
#define LAN8770_SQI_TBL6   0x04, 0xC0
 
#define LAN8770_DCQ_MSE   0x04, 0xC1
 
#define LAN8770_DCQ_MSE_WC   0x04, 0xC2
 
#define LAN8770_DCQ_SQI   0x04, 0xC3
 
#define LAN8770_DCQ_PMSE   0x04, 0xC4
 
#define LAN8770_BER_RATE_CNT   0x04, 0xF3
 
#define LAN8770_BER_RATE_WIN_TOG   0x04, 0xF4
 
#define LAN8770_BASIC_CONTROL_SW_RESET   0x8000
 
#define LAN8770_BASIC_CONTROL_LOOPBACK   0x4000
 
#define LAN8770_BASIC_CONTROL_SPEED_SEL_LSB   0x2000
 
#define LAN8770_BASIC_CONTROL_AN_EN   0x1000
 
#define LAN8770_BASIC_CONTROL_POWER_DOWN   0x0800
 
#define LAN8770_BASIC_CONTROL_ISOLATE   0x0400
 
#define LAN8770_BASIC_CONTROL_RESTART_AN   0x0200
 
#define LAN8770_BASIC_CONTROL_DUPLEX_MODE   0x0100
 
#define LAN8770_BASIC_CONTROL_COL_TEST   0x0080
 
#define LAN8770_BASIC_CONTROL_SPEED_SEL_MSB   0x0040
 
#define LAN8770_BASIC_CONTROL_UNIDIRECTIONAL_EN   0x0020
 
#define LAN8770_BASIC_STATUS_100BT4   0x8000
 
#define LAN8770_BASIC_STATUS_100BTX_FD   0x4000
 
#define LAN8770_BASIC_STATUS_100BTX_HD   0x2000
 
#define LAN8770_BASIC_STATUS_10BT_FD   0x1000
 
#define LAN8770_BASIC_STATUS_10BT_HD   0x0800
 
#define LAN8770_BASIC_STATUS_100BT2_FD   0x0400
 
#define LAN8770_BASIC_STATUS_100BT2_HD   0x0200
 
#define LAN8770_BASIC_STATUS_EXTENDED_STATUS   0x0100
 
#define LAN8770_BASIC_STATUS_UNIDIRECTIONAL_EN   0x0080
 
#define LAN8770_BASIC_STATUS_MF_PREAMBLE_SUPPR   0x0040
 
#define LAN8770_BASIC_STATUS_AN_COMPLETE   0x0020
 
#define LAN8770_BASIC_STATUS_REMOTE_FAULT   0x0010
 
#define LAN8770_BASIC_STATUS_AN_CAPABLE   0x0008
 
#define LAN8770_BASIC_STATUS_LINK_STATUS   0x0004
 
#define LAN8770_BASIC_STATUS_JABBER_DETECT   0x0002
 
#define LAN8770_BASIC_STATUS_EXTENDED_CAPABLE   0x0001
 
#define LAN8770_PHY_ID1_PHY_ID_MSB   0xFFFF
 
#define LAN8770_PHY_ID1_PHY_ID_MSB_DEFAULT   0x0007
 
#define LAN8770_PHY_ID2_PHY_ID_LSB   0xFC00
 
#define LAN8770_PHY_ID2_PHY_ID_LSB_DEFAULT   0xC000
 
#define LAN8770_PHY_ID2_MODEL_NUM   0x03F0
 
#define LAN8770_PHY_ID2_MODEL_NUM_DEFAULT   0x0150
 
#define LAN8770_PHY_ID2_REVISION_NUM   0x000F
 
#define LAN8770_MASTER_SLAVE_CONTROL_TEST_MODE   0xE000
 
#define LAN8770_MASTER_SLAVE_CONTROL_MS_MAN_CONF_EN   0x1000
 
#define LAN8770_MASTER_SLAVE_CONTROL_MS_MAN_CONF_VAL   0x0800
 
#define LAN8770_MASTER_SLAVE_CONTROL_PORT_TYPE   0x0400
 
#define LAN8770_MASTER_SLAVE_CONTROL_1000BT_FD   0x0200
 
#define LAN8770_MASTER_SLAVE_CONTROL_1000BT_HD   0x0100
 
#define LAN8770_MASTER_SLAVE_STATUS_MS_CONF_FAULT   0x8000
 
#define LAN8770_MASTER_SLAVE_STATUS_MS_CONF_RES   0x4000
 
#define LAN8770_MASTER_SLAVE_STATUS_LOC_RCVR_STATUS   0x2000
 
#define LAN8770_MASTER_SLAVE_STATUS_REM_RCVR_STATUS   0x1000
 
#define LAN8770_MASTER_SLAVE_STATUS_LP_1000BT_FD   0x0800
 
#define LAN8770_MASTER_SLAVE_STATUS_LP_1000BT_HD   0x0400
 
#define LAN8770_MASTER_SLAVE_STATUS_IDLE_ERR_COUNT   0x00FF
 
#define LAN8770_MDIO_CONTROL2_WAKE_REQ   0x2000
 
#define LAN8770_MDIO_CONTROL2_SLEEP_REQ   0x1000
 
#define LAN8770_MODE_STATUS_ENERGY_STATUS   0x0040
 
#define LAN8770_MODE_STATUS_DSCR_LOCK_STATUS   0x0008
 
#define LAN8770_MODE_STATUS_LINK_UP   0x0001
 
#define LAN8770_EXT_REG_CTL_READ_CONTROL   0x1000
 
#define LAN8770_EXT_REG_CTL_WRITE_CONTROL   0x0800
 
#define LAN8770_EXT_REG_CTL_REGISTER_BANK   0x0700
 
#define LAN8770_EXT_REG_CTL_REGISTER_BANK_MISC   0x0100
 
#define LAN8770_EXT_REG_CTL_REGISTER_BANK_PCS   0x0200
 
#define LAN8770_EXT_REG_CTL_REGISTER_BANK_AFE   0x0300
 
#define LAN8770_EXT_REG_CTL_REGISTER_BANK_DSP   0x0400
 
#define LAN8770_EXT_REG_CTL_REGISTER_ADDR   0x00FF
 
#define LAN8770_PCS_CONTROL_POL_FLIP_RX_CTRL   0x0200
 
#define LAN8770_PCS_CONTROL_POL_FLIP_TX_CTRL   0x0100
 
#define LAN8770_PCS_CONTROL_POL_FLIP_MAN_CTRL   0x0080
 
#define LAN8770_INTERRUPT_SOURCE_SOFT   0x8000
 
#define LAN8770_INTERRUPT_SOURCE_WAKE_IN   0x4000
 
#define LAN8770_INTERRUPT_SOURCE_BER_TOGGLE   0x2000
 
#define LAN8770_INTERRUPT_SOURCE_DCQ_ERROR   0x1000
 
#define LAN8770_INTERRUPT_SOURCE_OVER_TEMP_ERROR   0x0800
 
#define LAN8770_INTERRUPT_SOURCE_RECEIVE_WAKE   0x0400
 
#define LAN8770_INTERRUPT_SOURCE_ENERGY_OFF   0x0040
 
#define LAN8770_INTERRUPT_SOURCE_RECEIVE_LPS   0x0020
 
#define LAN8770_INTERRUPT_SOURCE_JABBER_DETECT   0x0008
 
#define LAN8770_INTERRUPT_SOURCE_LINK_UP   0x0004
 
#define LAN8770_INTERRUPT_SOURCE_LINK_DOWN   0x0002
 
#define LAN8770_INTERRUPT_SOURCE_ENERGY_ON   0x0001
 
#define LAN8770_INTERRUPT_MASK_SOFT   0x8000
 
#define LAN8770_INTERRUPT_MASK_WAKE_IN   0x4000
 
#define LAN8770_INTERRUPT_MASK_BER_TOGGLE   0x2000
 
#define LAN8770_INTERRUPT_MASK_DCQ_ERROR   0x1000
 
#define LAN8770_INTERRUPT_MASK_OVER_TEMP_ERROR   0x0800
 
#define LAN8770_INTERRUPT_MASK_RECEIVE_WAKE   0x0400
 
#define LAN8770_INTERRUPT_MASK_ENERGY_OFF   0x0040
 
#define LAN8770_INTERRUPT_MASK_RECEIVE_LPS   0x0020
 
#define LAN8770_INTERRUPT_MASK_JABBER_DETECT   0x0008
 
#define LAN8770_INTERRUPT_MASK_LINK_UP   0x0004
 
#define LAN8770_INTERRUPT_MASK_LINK_DOWN   0x0002
 
#define LAN8770_INTERRUPT_MASK_ENERGY_ON   0x0001
 
#define LAN8770_POWER_DOWN_CONTROL_HARD_INIT_SEQ_EN   0x0100
 
#define LAN8770_PCS_RX_ERR_CNT_STS_PCS_RX_ERR_CNT   0xFFFF
 
#define LAN8770_REV_ID_REVISION   0x00FF
 
#define LAN8770_INTERRUPT2_SOURCE_POR_RDY_STS   0x0800
 
#define LAN8770_INTERRUPT2_SOURCE_COMM_READY   0x0400
 
#define LAN8770_INTERRUPT2_SOURCE_REM_RCVR_STS_DOWN   0x0080
 
#define LAN8770_INTERRUPT2_SOURCE_REM_RCVR_STS_UP   0x0040
 
#define LAN8770_INTERRUPT2_SOURCE_LOC_RCVR_STS_DOWN   0x0020
 
#define LAN8770_INTERRUPT2_SOURCE_LOC_RCVR_STS_UP   0x0010
 
#define LAN8770_INTERRUPT2_SOURCE_DSP_CBL_DIAG_DONE   0x0008
 
#define LAN8770_INTERRUPT2_SOURCE_HW_INIT_DONE   0x0004
 
#define LAN8770_INTERRUPT2_MASK_POR_RDY   0x0800
 
#define LAN8770_INTERRUPT2_MASK_COMM_READY   0x0400
 
#define LAN8770_INTERRUPT2_MASK_REM_RCVR_STS_DOWN   0x0080
 
#define LAN8770_INTERRUPT2_MASK_REM_RCVR_STS_UP   0x0040
 
#define LAN8770_INTERRUPT2_MASK_LOC_RCVR_STS_DOWN   0x0020
 
#define LAN8770_INTERRUPT2_MASK_LOC_RCVR_STS_UP   0x0010
 
#define LAN8770_INTERRUPT2_MASK_DSP_CBL_DIAG   0x0008
 
#define LAN8770_INTERRUPT2_MASK_HW_INIT_DONE   0x0004
 
#define LAN8770_CTRL_0_REG_OFF_CONF_STRAP   0x0400
 
#define LAN8770_CTRL_0_PHYAD1_CONF_STRAP   0x0200
 
#define LAN8770_CTRL_0_PHYAD0_CONF_STRAP   0x0100
 
#define LAN8770_CTRL_0_MODE3_CONF_STRAP   0x0080
 
#define LAN8770_CTRL_0_MODE2_CONF_STRAP   0x0040
 
#define LAN8770_CTRL_0_MODE1_CONF_STRAP   0x0020
 
#define LAN8770_CTRL_0_MODE0_CONF_STRAP   0x0010
 
#define LAN8770_CTRL_0_LED_EN   0x0008
 
#define LAN8770_CTRL_0_LED_MODE   0x0007
 
#define LAN8770_CTRL_0_LED_MODE_LINK_UP   0x0000
 
#define LAN8770_CTRL_0_LED_MODE_LINK_UP_REM_STATUS   0x0001
 
#define LAN8770_CTRL_0_LED_MODE_LINK_UP_LOC_STATUS   0x0002
 
#define LAN8770_CTRL_1_CLK125_EDGE_MODE   0x8000
 
#define LAN8770_CTRL_1_RGMII_TXC_DELAY_EN   0x4000
 
#define LAN8770_CTRL_1_RGMII_RXC_DELAY_EN   0x2000
 
#define LAN8770_CTRL_1_BROADCAST_ADDR_EN   0x1000
 
#define LAN8770_CTRL_1_MISC_DRIVER   0x0C00
 
#define LAN8770_CTRL_1_MISC_DRIVER_2MA   0x0000
 
#define LAN8770_CTRL_1_MISC_DRIVER_4MA   0x0400
 
#define LAN8770_CTRL_1_MISC_DRIVER_8MA   0x0800
 
#define LAN8770_CTRL_1_MISC_DRIVER_10MA   0x0C00
 
#define LAN8770_CTRL_1_MII_DRIVER   0x0300
 
#define LAN8770_CTRL_1_MII_DRIVER_2MA   0x0000
 
#define LAN8770_CTRL_1_MII_DRIVER_4MA   0x0100
 
#define LAN8770_CTRL_1_MII_DRIVER_8MA   0x0200
 
#define LAN8770_CTRL_1_MII_DRIVER_10MA   0x0300
 
#define LAN8770_CTRL_1_MII_EXT_LOOPBACK_EN   0x0008
 
#define LAN8770_CTRL_1_RMII_EXT_LOOPBACK_EN   0x0004
 
#define LAN8770_CTRL_1_PMA_LOOPBACK_EN   0x0002
 
#define LAN8770_CTRL_2_CLK125_EN   0x8000
 
#define LAN8770_CTRL_2_XMII_MODE   0x0380
 
#define LAN8770_CTRL_2_XMII_MODE_MII   0x0000
 
#define LAN8770_CTRL_2_XMII_MODE_RMII_REFCLK_IN   0x0080
 
#define LAN8770_CTRL_2_XMII_MODE_RMII_REFCLK_OUT   0x0100
 
#define LAN8770_CTRL_2_XMII_MODE_REVERSE_MII   0x0180
 
#define LAN8770_CTRL_2_XMII_MODE_RGMII   0x0200
 
#define LAN8770_CTRL_2_DCQ_INT_SEL   0x0007
 
#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_SQI_METHOD_B   0x0000
 
#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_MSE   0x0001
 
#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_SQI_METHOD_A   0x0002
 
#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_PMSE   0x0003
 
#define LAN8770_CTRL_3_OVER_TEMP_DETECT_STATUS   0x0200
 
#define LAN8770_CTRL_3_TSD_ADJ   0x001C
 
#define LAN8770_CTRL_3_OVER_TEMP_EN   0x0001
 
#define LAN8770_WKP_COM_CTL0_VBAT_COMMON_REG_WRITE   0x8000
 
#define LAN8770_WKP_COM_CTL0_RING_OSC_STATUS   0x0040
 
#define LAN8770_WKP_COM_CTL0_RING_OSC_EN   0x0020
 
#define LAN8770_WKP_COM_CTL0_WAKE_DEBOUNCE_UNITS   0x0008
 
#define LAN8770_WKP_COM_CTL0_SLEEP_EN   0x0004
 
#define LAN8770_WKP_COM_CTL0_INH_EN   0x0002
 
#define LAN8770_WKP_COM_CTL0_WAKE_IN_EN   0x0001
 
#define LAN8770_WKP_COM_CTL1_WAKE_IN_DEBOUNCE_VALUE   0xFF00
 
#define LAN8770_WKP_DBG_STS_TC10_STATE   0x0007
 
#define LAN8770_WKP_DBG_STS_TC10_STATE_START   0x0000
 
#define LAN8770_WKP_DBG_STS_TC10_STATE_NORMAL   0x0001
 
#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_ACK   0x0002
 
#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_REQ   0x0003
 
#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_FAIL   0x0004
 
#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_SILENT   0x0005
 
#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP   0x0006
 
#define LAN8770_WKP_PRT_CTL_VBAT_PORT_REG_WRITE   0x8000
 
#define LAN8770_WKP_PRT_CTL_WUP_AUTO_FORWARD_EN   0x1000
 
#define LAN8770_WKP_PRT_CTL_WAKEUP_DEBOUNCE_UNITS   0x0800
 
#define LAN8770_WKP_PRT_CTL_SD_TUNE   0x0600
 
#define LAN8770_WKP_PRT_CTL_MDI_WAKE_EN   0x0100
 
#define LAN8770_WKP_PRT_CTL_WUP_DEBOUNCE_VALUE   0x00FF
 
#define LAN8770_SLEEP_WAKE_DET_WUR_DETECT_LEN   0xFF00
 
#define LAN8770_SLEEP_WAKE_DET_WUR_DETECT_LEN_DEFAULT   0x2800
 
#define LAN8770_SLEEP_WAKE_DET_LPS_DETECT_LEN   0x00FF
 
#define LAN8770_SLEEP_WAKE_DET_LPS_DETECT_LEN_DEFAULT   0x003C
 
#define LAN8770_AFE_PORT_CFG1_TX_PD   0x0020
 
#define LAN8770_AFE_PORT_CFG1_TX_AMP   0x001E
 
#define LAN8770_AFE_PORT_CFG1_TX_AMP_DEFAULT   0x0008
 
#define LAN8770_AFE_PORT_CFG1_TX_SRC   0x0001
 
#define LAN8770_COEF_CLK_PWR_DN_CFG_COEF_CLK_PWR_DN_EN   0x0001
 
#define LAN8770_COEF_RW_CTL_CFG_TAP_EN   0x0020
 
#define LAN8770_COEF_RW_CTL_CFG_TAP_DIS   0x0010
 
#define LAN8770_COEF_RW_CTL_CFG_OVERRIDE_COEF_DIS   0x0008
 
#define LAN8770_COEF_RW_CTL_CFG_OVERRIDE_COEF_EN   0x0004
 
#define LAN8770_COEF_RW_CTL_CFG_POKE_COEF_EN   0x0002
 
#define LAN8770_COEF_RW_CTL_CFG_PEAK_COEF_EN   0x0001
 
#define LAN8770_DCQ_CONFIG1_PMSE_SCALING_FACTOR   0xC000
 
#define LAN8770_DCQ_CONFIG1_PMSE_KP_FACTOR   0x3C00
 
#define LAN8770_DCQ_CONFIG1_MSE_SCALING_FACTOR   0x0300
 
#define LAN8770_DCQ_CONFIG1_DCQ_RESET   0x0080
 
#define LAN8770_DCQ_CONFIG1_SQI_METHOD_B_MODE_SEL   0x0040
 
#define LAN8770_DCQ_CONFIG1_SQI_METHOD_B_EN   0x0020
 
#define LAN8770_DCQ_CONFIG1_SQI_KP   0x001F
 
#define LAN8770_DCQ_CONFIG2_DCQ_PMSE_EN   0x0002
 
#define LAN8770_DCQ_CONFIG2_DCQ_MSE_SQI_METHOD_A_EN   0x0001
 
#define LAN8770_SQI_TBL0_SQI_METHOD_A_VALUE   0x01FF
 
#define LAN8770_SQI_TBL1_SQI_METHOD_A_VALUE   0x01FF
 
#define LAN8770_SQI_TBL2_SQI_METHOD_A_VALUE   0x01FF
 
#define LAN8770_SQI_TBL3_SQI_METHOD_A_VALUE   0x01FF
 
#define LAN8770_SQI_TBL4_SQI_METHOD_A_VALUE   0x01FF
 
#define LAN8770_SQI_TBL5_SQI_METHOD_A_VALUE   0x01FF
 
#define LAN8770_SQI_TBL6_SQI_METHOD_A_VALUE   0x01FF
 
#define LAN8770_DCQ_MSE_MSE_VALUE_VALID   0x0200
 
#define LAN8770_DCQ_MSE_MSE_VALUE   0x01FF
 
#define LAN8770_DCQ_MSE_WC_MSE_WORST_CASE_VALUE_VALID   0x0200
 
#define LAN8770_DCQ_MSE_WC_MSE_WORST_CASE_VALUE   0x01FF
 
#define LAN8770_DCQ_SQI_DCQ_SQI_METHOD_A_WORST_CASE   0x00E0
 
#define LAN8770_DCQ_SQI_DCQ_SQI_METHOD_A_VALUE   0x000E
 
#define LAN8770_DCQ_PMSE_PEAK_MSE_WORST_CASE   0xFF00
 
#define LAN8770_DCQ_PMSE_PEAK_MSE_VALUE   0x00FF
 
#define LAN8770_BER_RATE_WIN_TOG_BER_WINDOW_TOGGLE   0x0001
 

Functions

error_t lan8770Init (NetInterface *interface)
 LAN8770 PHY transceiver initialization. More...
 
void lan8770InitHook (NetInterface *interface)
 LAN8770 custom configuration. More...
 
void lan8770Tick (NetInterface *interface)
 LAN8770 timer handler. More...
 
void lan8770EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void lan8770DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void lan8770EventHandler (NetInterface *interface)
 LAN8770 event handler. More...
 
void lan8770WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t lan8770ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void lan8770DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 
void lan8770WriteExtReg (NetInterface *interface, uint8_t bank, uint8_t addr, uint16_t data)
 Write extended register. More...
 
uint16_t lan8770ReadExtReg (NetInterface *interface, uint8_t bank, uint8_t addr)
 Read extended register. More...
 

Variables

const PhyDriver lan8770PhyDriver
 LAN8770 Ethernet PHY driver. More...
 

Detailed Description

LAN8770 100Base-T1 Ethernet PHY driver.

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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file lan8770_driver.h.

Macro Definition Documentation

◆ LAN8770_AFE_PORT_CFG1

#define LAN8770_AFE_PORT_CFG1   0x03, 0x0B

Definition at line 80 of file lan8770_driver.h.

◆ LAN8770_AFE_PORT_CFG1_TX_AMP

#define LAN8770_AFE_PORT_CFG1_TX_AMP   0x001E

Definition at line 333 of file lan8770_driver.h.

◆ LAN8770_AFE_PORT_CFG1_TX_AMP_DEFAULT

#define LAN8770_AFE_PORT_CFG1_TX_AMP_DEFAULT   0x0008

Definition at line 334 of file lan8770_driver.h.

◆ LAN8770_AFE_PORT_CFG1_TX_PD

#define LAN8770_AFE_PORT_CFG1_TX_PD   0x0020

Definition at line 332 of file lan8770_driver.h.

◆ LAN8770_AFE_PORT_CFG1_TX_SRC

#define LAN8770_AFE_PORT_CFG1_TX_SRC   0x0001

Definition at line 335 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL

#define LAN8770_BASIC_CONTROL   0x00

Definition at line 45 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_AN_EN

#define LAN8770_BASIC_CONTROL_AN_EN   0x1000

Definition at line 107 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_COL_TEST

#define LAN8770_BASIC_CONTROL_COL_TEST   0x0080

Definition at line 112 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_DUPLEX_MODE

#define LAN8770_BASIC_CONTROL_DUPLEX_MODE   0x0100

Definition at line 111 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_ISOLATE

#define LAN8770_BASIC_CONTROL_ISOLATE   0x0400

Definition at line 109 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_LOOPBACK

#define LAN8770_BASIC_CONTROL_LOOPBACK   0x4000

Definition at line 105 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_POWER_DOWN

#define LAN8770_BASIC_CONTROL_POWER_DOWN   0x0800

Definition at line 108 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_RESTART_AN

#define LAN8770_BASIC_CONTROL_RESTART_AN   0x0200

Definition at line 110 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_SPEED_SEL_LSB

#define LAN8770_BASIC_CONTROL_SPEED_SEL_LSB   0x2000

Definition at line 106 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_SPEED_SEL_MSB

#define LAN8770_BASIC_CONTROL_SPEED_SEL_MSB   0x0040

Definition at line 113 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_SW_RESET

#define LAN8770_BASIC_CONTROL_SW_RESET   0x8000

Definition at line 104 of file lan8770_driver.h.

◆ LAN8770_BASIC_CONTROL_UNIDIRECTIONAL_EN

#define LAN8770_BASIC_CONTROL_UNIDIRECTIONAL_EN   0x0020

Definition at line 114 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS

#define LAN8770_BASIC_STATUS   0x01

Definition at line 46 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_100BT2_FD

#define LAN8770_BASIC_STATUS_100BT2_FD   0x0400

Definition at line 122 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_100BT2_HD

#define LAN8770_BASIC_STATUS_100BT2_HD   0x0200

Definition at line 123 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_100BT4

#define LAN8770_BASIC_STATUS_100BT4   0x8000

Definition at line 117 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_100BTX_FD

#define LAN8770_BASIC_STATUS_100BTX_FD   0x4000

Definition at line 118 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_100BTX_HD

#define LAN8770_BASIC_STATUS_100BTX_HD   0x2000

Definition at line 119 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_10BT_FD

#define LAN8770_BASIC_STATUS_10BT_FD   0x1000

Definition at line 120 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_10BT_HD

#define LAN8770_BASIC_STATUS_10BT_HD   0x0800

Definition at line 121 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_AN_CAPABLE

#define LAN8770_BASIC_STATUS_AN_CAPABLE   0x0008

Definition at line 129 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_AN_COMPLETE

#define LAN8770_BASIC_STATUS_AN_COMPLETE   0x0020

Definition at line 127 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_EXTENDED_CAPABLE

#define LAN8770_BASIC_STATUS_EXTENDED_CAPABLE   0x0001

Definition at line 132 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_EXTENDED_STATUS

#define LAN8770_BASIC_STATUS_EXTENDED_STATUS   0x0100

Definition at line 124 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_JABBER_DETECT

#define LAN8770_BASIC_STATUS_JABBER_DETECT   0x0002

Definition at line 131 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_LINK_STATUS

#define LAN8770_BASIC_STATUS_LINK_STATUS   0x0004

Definition at line 130 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_MF_PREAMBLE_SUPPR

#define LAN8770_BASIC_STATUS_MF_PREAMBLE_SUPPR   0x0040

Definition at line 126 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_REMOTE_FAULT

#define LAN8770_BASIC_STATUS_REMOTE_FAULT   0x0010

Definition at line 128 of file lan8770_driver.h.

◆ LAN8770_BASIC_STATUS_UNIDIRECTIONAL_EN

#define LAN8770_BASIC_STATUS_UNIDIRECTIONAL_EN   0x0080

Definition at line 125 of file lan8770_driver.h.

◆ LAN8770_BER_RATE_CNT

#define LAN8770_BER_RATE_CNT   0x04, 0xF3

Definition at line 100 of file lan8770_driver.h.

◆ LAN8770_BER_RATE_WIN_TOG

#define LAN8770_BER_RATE_WIN_TOG   0x04, 0xF4

Definition at line 101 of file lan8770_driver.h.

◆ LAN8770_BER_RATE_WIN_TOG_BER_WINDOW_TOGGLE

#define LAN8770_BER_RATE_WIN_TOG_BER_WINDOW_TOGGLE   0x0001

Definition at line 399 of file lan8770_driver.h.

◆ LAN8770_COEF_CLK_PWR_DN_CFG

#define LAN8770_COEF_CLK_PWR_DN_CFG   0x04, 0x04

Definition at line 83 of file lan8770_driver.h.

◆ LAN8770_COEF_CLK_PWR_DN_CFG_COEF_CLK_PWR_DN_EN

#define LAN8770_COEF_CLK_PWR_DN_CFG_COEF_CLK_PWR_DN_EN   0x0001

Definition at line 338 of file lan8770_driver.h.

◆ LAN8770_COEF_RW_CTL_CFG

#define LAN8770_COEF_RW_CTL_CFG   0x04, 0x0D

Definition at line 84 of file lan8770_driver.h.

◆ LAN8770_COEF_RW_CTL_CFG_OVERRIDE_COEF_DIS

#define LAN8770_COEF_RW_CTL_CFG_OVERRIDE_COEF_DIS   0x0008

Definition at line 343 of file lan8770_driver.h.

◆ LAN8770_COEF_RW_CTL_CFG_OVERRIDE_COEF_EN

#define LAN8770_COEF_RW_CTL_CFG_OVERRIDE_COEF_EN   0x0004

Definition at line 344 of file lan8770_driver.h.

◆ LAN8770_COEF_RW_CTL_CFG_PEAK_COEF_EN

#define LAN8770_COEF_RW_CTL_CFG_PEAK_COEF_EN   0x0001

Definition at line 346 of file lan8770_driver.h.

◆ LAN8770_COEF_RW_CTL_CFG_POKE_COEF_EN

#define LAN8770_COEF_RW_CTL_CFG_POKE_COEF_EN   0x0002

Definition at line 345 of file lan8770_driver.h.

◆ LAN8770_COEF_RW_CTL_CFG_TAP_DIS

#define LAN8770_COEF_RW_CTL_CFG_TAP_DIS   0x0010

Definition at line 342 of file lan8770_driver.h.

◆ LAN8770_COEF_RW_CTL_CFG_TAP_EN

#define LAN8770_COEF_RW_CTL_CFG_TAP_EN   0x0020

Definition at line 341 of file lan8770_driver.h.

◆ LAN8770_CTRL_0

#define LAN8770_CTRL_0   0x01, 0x10

Definition at line 66 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_LED_EN

#define LAN8770_CTRL_0_LED_EN   0x0008

Definition at line 251 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_LED_MODE

#define LAN8770_CTRL_0_LED_MODE   0x0007

Definition at line 252 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_LED_MODE_LINK_UP

#define LAN8770_CTRL_0_LED_MODE_LINK_UP   0x0000

Definition at line 253 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_LED_MODE_LINK_UP_LOC_STATUS

#define LAN8770_CTRL_0_LED_MODE_LINK_UP_LOC_STATUS   0x0002

Definition at line 255 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_LED_MODE_LINK_UP_REM_STATUS

#define LAN8770_CTRL_0_LED_MODE_LINK_UP_REM_STATUS   0x0001

Definition at line 254 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_MODE0_CONF_STRAP

#define LAN8770_CTRL_0_MODE0_CONF_STRAP   0x0010

Definition at line 250 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_MODE1_CONF_STRAP

#define LAN8770_CTRL_0_MODE1_CONF_STRAP   0x0020

Definition at line 249 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_MODE2_CONF_STRAP

#define LAN8770_CTRL_0_MODE2_CONF_STRAP   0x0040

Definition at line 248 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_MODE3_CONF_STRAP

#define LAN8770_CTRL_0_MODE3_CONF_STRAP   0x0080

Definition at line 247 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_PHYAD0_CONF_STRAP

#define LAN8770_CTRL_0_PHYAD0_CONF_STRAP   0x0100

Definition at line 246 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_PHYAD1_CONF_STRAP

#define LAN8770_CTRL_0_PHYAD1_CONF_STRAP   0x0200

Definition at line 245 of file lan8770_driver.h.

◆ LAN8770_CTRL_0_REG_OFF_CONF_STRAP

#define LAN8770_CTRL_0_REG_OFF_CONF_STRAP   0x0400

Definition at line 244 of file lan8770_driver.h.

◆ LAN8770_CTRL_1

#define LAN8770_CTRL_1   0x01, 0x11

Definition at line 67 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_BROADCAST_ADDR_EN

#define LAN8770_CTRL_1_BROADCAST_ADDR_EN   0x1000

Definition at line 261 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_CLK125_EDGE_MODE

#define LAN8770_CTRL_1_CLK125_EDGE_MODE   0x8000

Definition at line 258 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MII_DRIVER

#define LAN8770_CTRL_1_MII_DRIVER   0x0300

Definition at line 267 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MII_DRIVER_10MA

#define LAN8770_CTRL_1_MII_DRIVER_10MA   0x0300

Definition at line 271 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MII_DRIVER_2MA

#define LAN8770_CTRL_1_MII_DRIVER_2MA   0x0000

Definition at line 268 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MII_DRIVER_4MA

#define LAN8770_CTRL_1_MII_DRIVER_4MA   0x0100

Definition at line 269 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MII_DRIVER_8MA

#define LAN8770_CTRL_1_MII_DRIVER_8MA   0x0200

Definition at line 270 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MII_EXT_LOOPBACK_EN

#define LAN8770_CTRL_1_MII_EXT_LOOPBACK_EN   0x0008

Definition at line 272 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MISC_DRIVER

#define LAN8770_CTRL_1_MISC_DRIVER   0x0C00

Definition at line 262 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MISC_DRIVER_10MA

#define LAN8770_CTRL_1_MISC_DRIVER_10MA   0x0C00

Definition at line 266 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MISC_DRIVER_2MA

#define LAN8770_CTRL_1_MISC_DRIVER_2MA   0x0000

Definition at line 263 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MISC_DRIVER_4MA

#define LAN8770_CTRL_1_MISC_DRIVER_4MA   0x0400

Definition at line 264 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_MISC_DRIVER_8MA

#define LAN8770_CTRL_1_MISC_DRIVER_8MA   0x0800

Definition at line 265 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_PMA_LOOPBACK_EN

#define LAN8770_CTRL_1_PMA_LOOPBACK_EN   0x0002

Definition at line 274 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_RGMII_RXC_DELAY_EN

#define LAN8770_CTRL_1_RGMII_RXC_DELAY_EN   0x2000

Definition at line 260 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_RGMII_TXC_DELAY_EN

#define LAN8770_CTRL_1_RGMII_TXC_DELAY_EN   0x4000

Definition at line 259 of file lan8770_driver.h.

◆ LAN8770_CTRL_1_RMII_EXT_LOOPBACK_EN

#define LAN8770_CTRL_1_RMII_EXT_LOOPBACK_EN   0x0004

Definition at line 273 of file lan8770_driver.h.

◆ LAN8770_CTRL_2

#define LAN8770_CTRL_2   0x01, 0x15

Definition at line 68 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_CLK125_EN

#define LAN8770_CTRL_2_CLK125_EN   0x8000

Definition at line 277 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_DCQ_INT_SEL

#define LAN8770_CTRL_2_DCQ_INT_SEL   0x0007

Definition at line 284 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_MSE

#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_MSE   0x0001

Definition at line 286 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_PMSE

#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_PMSE   0x0003

Definition at line 288 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_SQI_METHOD_A

#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_SQI_METHOD_A   0x0002

Definition at line 287 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_SQI_METHOD_B

#define LAN8770_CTRL_2_DCQ_INT_SEL_DCQ_SQI_METHOD_B   0x0000

Definition at line 285 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_XMII_MODE

#define LAN8770_CTRL_2_XMII_MODE   0x0380

Definition at line 278 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_XMII_MODE_MII

#define LAN8770_CTRL_2_XMII_MODE_MII   0x0000

Definition at line 279 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_XMII_MODE_REVERSE_MII

#define LAN8770_CTRL_2_XMII_MODE_REVERSE_MII   0x0180

Definition at line 282 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_XMII_MODE_RGMII

#define LAN8770_CTRL_2_XMII_MODE_RGMII   0x0200

Definition at line 283 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_XMII_MODE_RMII_REFCLK_IN

#define LAN8770_CTRL_2_XMII_MODE_RMII_REFCLK_IN   0x0080

Definition at line 280 of file lan8770_driver.h.

◆ LAN8770_CTRL_2_XMII_MODE_RMII_REFCLK_OUT

#define LAN8770_CTRL_2_XMII_MODE_RMII_REFCLK_OUT   0x0100

Definition at line 281 of file lan8770_driver.h.

◆ LAN8770_CTRL_3

#define LAN8770_CTRL_3   0x01, 0x17

Definition at line 69 of file lan8770_driver.h.

◆ LAN8770_CTRL_3_OVER_TEMP_DETECT_STATUS

#define LAN8770_CTRL_3_OVER_TEMP_DETECT_STATUS   0x0200

Definition at line 291 of file lan8770_driver.h.

◆ LAN8770_CTRL_3_OVER_TEMP_EN

#define LAN8770_CTRL_3_OVER_TEMP_EN   0x0001

Definition at line 293 of file lan8770_driver.h.

◆ LAN8770_CTRL_3_TSD_ADJ

#define LAN8770_CTRL_3_TSD_ADJ   0x001C

Definition at line 292 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1

#define LAN8770_DCQ_CONFIG1   0x04, 0x2E

Definition at line 85 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1_DCQ_RESET

#define LAN8770_DCQ_CONFIG1_DCQ_RESET   0x0080

Definition at line 352 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1_MSE_SCALING_FACTOR

#define LAN8770_DCQ_CONFIG1_MSE_SCALING_FACTOR   0x0300

Definition at line 351 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1_PMSE_KP_FACTOR

#define LAN8770_DCQ_CONFIG1_PMSE_KP_FACTOR   0x3C00

Definition at line 350 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1_PMSE_SCALING_FACTOR

#define LAN8770_DCQ_CONFIG1_PMSE_SCALING_FACTOR   0xC000

Definition at line 349 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1_SQI_KP

#define LAN8770_DCQ_CONFIG1_SQI_KP   0x001F

Definition at line 355 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1_SQI_METHOD_B_EN

#define LAN8770_DCQ_CONFIG1_SQI_METHOD_B_EN   0x0020

Definition at line 354 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG1_SQI_METHOD_B_MODE_SEL

#define LAN8770_DCQ_CONFIG1_SQI_METHOD_B_MODE_SEL   0x0040

Definition at line 353 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG2

#define LAN8770_DCQ_CONFIG2   0x04, 0x4A

Definition at line 86 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG2_DCQ_MSE_SQI_METHOD_A_EN

#define LAN8770_DCQ_CONFIG2_DCQ_MSE_SQI_METHOD_A_EN   0x0001

Definition at line 359 of file lan8770_driver.h.

◆ LAN8770_DCQ_CONFIG2_DCQ_PMSE_EN

#define LAN8770_DCQ_CONFIG2_DCQ_PMSE_EN   0x0002

Definition at line 358 of file lan8770_driver.h.

◆ LAN8770_DCQ_ERR_MAX

#define LAN8770_DCQ_ERR_MAX   0x01, 0x1A

Definition at line 70 of file lan8770_driver.h.

◆ LAN8770_DCQ_MSE

#define LAN8770_DCQ_MSE   0x04, 0xC1

Definition at line 96 of file lan8770_driver.h.

◆ LAN8770_DCQ_MSE_MSE_VALUE

#define LAN8770_DCQ_MSE_MSE_VALUE   0x01FF

Definition at line 384 of file lan8770_driver.h.

◆ LAN8770_DCQ_MSE_MSE_VALUE_VALID

#define LAN8770_DCQ_MSE_MSE_VALUE_VALID   0x0200

Definition at line 383 of file lan8770_driver.h.

◆ LAN8770_DCQ_MSE_WC

#define LAN8770_DCQ_MSE_WC   0x04, 0xC2

Definition at line 97 of file lan8770_driver.h.

◆ LAN8770_DCQ_MSE_WC_MSE_WORST_CASE_VALUE

#define LAN8770_DCQ_MSE_WC_MSE_WORST_CASE_VALUE   0x01FF

Definition at line 388 of file lan8770_driver.h.

◆ LAN8770_DCQ_MSE_WC_MSE_WORST_CASE_VALUE_VALID

#define LAN8770_DCQ_MSE_WC_MSE_WORST_CASE_VALUE_VALID   0x0200

Definition at line 387 of file lan8770_driver.h.

◆ LAN8770_DCQ_PMSE

#define LAN8770_DCQ_PMSE   0x04, 0xC4

Definition at line 99 of file lan8770_driver.h.

◆ LAN8770_DCQ_PMSE_PEAK_MSE_VALUE

#define LAN8770_DCQ_PMSE_PEAK_MSE_VALUE   0x00FF

Definition at line 396 of file lan8770_driver.h.

◆ LAN8770_DCQ_PMSE_PEAK_MSE_WORST_CASE

#define LAN8770_DCQ_PMSE_PEAK_MSE_WORST_CASE   0xFF00

Definition at line 395 of file lan8770_driver.h.

◆ LAN8770_DCQ_SQI

#define LAN8770_DCQ_SQI   0x04, 0xC3

Definition at line 98 of file lan8770_driver.h.

◆ LAN8770_DCQ_SQI_DCQ_SQI_METHOD_A_VALUE

#define LAN8770_DCQ_SQI_DCQ_SQI_METHOD_A_VALUE   0x000E

Definition at line 392 of file lan8770_driver.h.

◆ LAN8770_DCQ_SQI_DCQ_SQI_METHOD_A_WORST_CASE

#define LAN8770_DCQ_SQI_DCQ_SQI_METHOD_A_WORST_CASE   0x00E0

Definition at line 391 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL

#define LAN8770_EXT_REG_CTL   0x14

Definition at line 53 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_READ_CONTROL

#define LAN8770_EXT_REG_CTL_READ_CONTROL   0x1000

Definition at line 172 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_REGISTER_ADDR

#define LAN8770_EXT_REG_CTL_REGISTER_ADDR   0x00FF

Definition at line 179 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_REGISTER_BANK

#define LAN8770_EXT_REG_CTL_REGISTER_BANK   0x0700

Definition at line 174 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_REGISTER_BANK_AFE

#define LAN8770_EXT_REG_CTL_REGISTER_BANK_AFE   0x0300

Definition at line 177 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_REGISTER_BANK_DSP

#define LAN8770_EXT_REG_CTL_REGISTER_BANK_DSP   0x0400

Definition at line 178 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_REGISTER_BANK_MISC

#define LAN8770_EXT_REG_CTL_REGISTER_BANK_MISC   0x0100

Definition at line 175 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_REGISTER_BANK_PCS

#define LAN8770_EXT_REG_CTL_REGISTER_BANK_PCS   0x0200

Definition at line 176 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_CTL_WRITE_CONTROL

#define LAN8770_EXT_REG_CTL_WRITE_CONTROL   0x0800

Definition at line 173 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_RD_DATA

#define LAN8770_EXT_REG_RD_DATA   0x15

Definition at line 54 of file lan8770_driver.h.

◆ LAN8770_EXT_REG_WR_DATA

#define LAN8770_EXT_REG_WR_DATA   0x16

Definition at line 55 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK

#define LAN8770_INTERRUPT2_MASK   0x01, 0x09

Definition at line 65 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_COMM_READY

#define LAN8770_INTERRUPT2_MASK_COMM_READY   0x0400

Definition at line 235 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_DSP_CBL_DIAG

#define LAN8770_INTERRUPT2_MASK_DSP_CBL_DIAG   0x0008

Definition at line 240 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_HW_INIT_DONE

#define LAN8770_INTERRUPT2_MASK_HW_INIT_DONE   0x0004

Definition at line 241 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_LOC_RCVR_STS_DOWN

#define LAN8770_INTERRUPT2_MASK_LOC_RCVR_STS_DOWN   0x0020

Definition at line 238 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_LOC_RCVR_STS_UP

#define LAN8770_INTERRUPT2_MASK_LOC_RCVR_STS_UP   0x0010

Definition at line 239 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_POR_RDY

#define LAN8770_INTERRUPT2_MASK_POR_RDY   0x0800

Definition at line 234 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_REM_RCVR_STS_DOWN

#define LAN8770_INTERRUPT2_MASK_REM_RCVR_STS_DOWN   0x0080

Definition at line 236 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_MASK_REM_RCVR_STS_UP

#define LAN8770_INTERRUPT2_MASK_REM_RCVR_STS_UP   0x0040

Definition at line 237 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE

#define LAN8770_INTERRUPT2_SOURCE   0x01, 0x08

Definition at line 64 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_COMM_READY

#define LAN8770_INTERRUPT2_SOURCE_COMM_READY   0x0400

Definition at line 225 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_DSP_CBL_DIAG_DONE

#define LAN8770_INTERRUPT2_SOURCE_DSP_CBL_DIAG_DONE   0x0008

Definition at line 230 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_HW_INIT_DONE

#define LAN8770_INTERRUPT2_SOURCE_HW_INIT_DONE   0x0004

Definition at line 231 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_LOC_RCVR_STS_DOWN

#define LAN8770_INTERRUPT2_SOURCE_LOC_RCVR_STS_DOWN   0x0020

Definition at line 228 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_LOC_RCVR_STS_UP

#define LAN8770_INTERRUPT2_SOURCE_LOC_RCVR_STS_UP   0x0010

Definition at line 229 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_POR_RDY_STS

#define LAN8770_INTERRUPT2_SOURCE_POR_RDY_STS   0x0800

Definition at line 224 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_REM_RCVR_STS_DOWN

#define LAN8770_INTERRUPT2_SOURCE_REM_RCVR_STS_DOWN   0x0080

Definition at line 226 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT2_SOURCE_REM_RCVR_STS_UP

#define LAN8770_INTERRUPT2_SOURCE_REM_RCVR_STS_UP   0x0040

Definition at line 227 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK

#define LAN8770_INTERRUPT_MASK   0x19

Definition at line 58 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_BER_TOGGLE

#define LAN8770_INTERRUPT_MASK_BER_TOGGLE   0x2000

Definition at line 203 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_DCQ_ERROR

#define LAN8770_INTERRUPT_MASK_DCQ_ERROR   0x1000

Definition at line 204 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_ENERGY_OFF

#define LAN8770_INTERRUPT_MASK_ENERGY_OFF   0x0040

Definition at line 207 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_ENERGY_ON

#define LAN8770_INTERRUPT_MASK_ENERGY_ON   0x0001

Definition at line 212 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_JABBER_DETECT

#define LAN8770_INTERRUPT_MASK_JABBER_DETECT   0x0008

Definition at line 209 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_LINK_DOWN

#define LAN8770_INTERRUPT_MASK_LINK_DOWN   0x0002

Definition at line 211 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_LINK_UP

#define LAN8770_INTERRUPT_MASK_LINK_UP   0x0004

Definition at line 210 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_OVER_TEMP_ERROR

#define LAN8770_INTERRUPT_MASK_OVER_TEMP_ERROR   0x0800

Definition at line 205 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_RECEIVE_LPS

#define LAN8770_INTERRUPT_MASK_RECEIVE_LPS   0x0020

Definition at line 208 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_RECEIVE_WAKE

#define LAN8770_INTERRUPT_MASK_RECEIVE_WAKE   0x0400

Definition at line 206 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_SOFT

#define LAN8770_INTERRUPT_MASK_SOFT   0x8000

Definition at line 201 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_MASK_WAKE_IN

#define LAN8770_INTERRUPT_MASK_WAKE_IN   0x4000

Definition at line 202 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE

#define LAN8770_INTERRUPT_SOURCE   0x18

Definition at line 57 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_BER_TOGGLE

#define LAN8770_INTERRUPT_SOURCE_BER_TOGGLE   0x2000

Definition at line 189 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_DCQ_ERROR

#define LAN8770_INTERRUPT_SOURCE_DCQ_ERROR   0x1000

Definition at line 190 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_ENERGY_OFF

#define LAN8770_INTERRUPT_SOURCE_ENERGY_OFF   0x0040

Definition at line 193 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_ENERGY_ON

#define LAN8770_INTERRUPT_SOURCE_ENERGY_ON   0x0001

Definition at line 198 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_JABBER_DETECT

#define LAN8770_INTERRUPT_SOURCE_JABBER_DETECT   0x0008

Definition at line 195 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_LINK_DOWN

#define LAN8770_INTERRUPT_SOURCE_LINK_DOWN   0x0002

Definition at line 197 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_LINK_UP

#define LAN8770_INTERRUPT_SOURCE_LINK_UP   0x0004

Definition at line 196 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_OVER_TEMP_ERROR

#define LAN8770_INTERRUPT_SOURCE_OVER_TEMP_ERROR   0x0800

Definition at line 191 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_RECEIVE_LPS

#define LAN8770_INTERRUPT_SOURCE_RECEIVE_LPS   0x0020

Definition at line 194 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_RECEIVE_WAKE

#define LAN8770_INTERRUPT_SOURCE_RECEIVE_WAKE   0x0400

Definition at line 192 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_SOFT

#define LAN8770_INTERRUPT_SOURCE_SOFT   0x8000

Definition at line 187 of file lan8770_driver.h.

◆ LAN8770_INTERRUPT_SOURCE_WAKE_IN

#define LAN8770_INTERRUPT_SOURCE_WAKE_IN   0x4000

Definition at line 188 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_CONTROL

#define LAN8770_MASTER_SLAVE_CONTROL   0x09

Definition at line 49 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_CONTROL_1000BT_FD

#define LAN8770_MASTER_SLAVE_CONTROL_1000BT_FD   0x0200

Definition at line 150 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_CONTROL_1000BT_HD

#define LAN8770_MASTER_SLAVE_CONTROL_1000BT_HD   0x0100

Definition at line 151 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_CONTROL_MS_MAN_CONF_EN

#define LAN8770_MASTER_SLAVE_CONTROL_MS_MAN_CONF_EN   0x1000

Definition at line 147 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_CONTROL_MS_MAN_CONF_VAL

#define LAN8770_MASTER_SLAVE_CONTROL_MS_MAN_CONF_VAL   0x0800

Definition at line 148 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_CONTROL_PORT_TYPE

#define LAN8770_MASTER_SLAVE_CONTROL_PORT_TYPE   0x0400

Definition at line 149 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_CONTROL_TEST_MODE

#define LAN8770_MASTER_SLAVE_CONTROL_TEST_MODE   0xE000

Definition at line 146 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS

#define LAN8770_MASTER_SLAVE_STATUS   0x0A

Definition at line 50 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS_IDLE_ERR_COUNT

#define LAN8770_MASTER_SLAVE_STATUS_IDLE_ERR_COUNT   0x00FF

Definition at line 160 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS_LOC_RCVR_STATUS

#define LAN8770_MASTER_SLAVE_STATUS_LOC_RCVR_STATUS   0x2000

Definition at line 156 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS_LP_1000BT_FD

#define LAN8770_MASTER_SLAVE_STATUS_LP_1000BT_FD   0x0800

Definition at line 158 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS_LP_1000BT_HD

#define LAN8770_MASTER_SLAVE_STATUS_LP_1000BT_HD   0x0400

Definition at line 159 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS_MS_CONF_FAULT

#define LAN8770_MASTER_SLAVE_STATUS_MS_CONF_FAULT   0x8000

Definition at line 154 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS_MS_CONF_RES

#define LAN8770_MASTER_SLAVE_STATUS_MS_CONF_RES   0x4000

Definition at line 155 of file lan8770_driver.h.

◆ LAN8770_MASTER_SLAVE_STATUS_REM_RCVR_STATUS

#define LAN8770_MASTER_SLAVE_STATUS_REM_RCVR_STATUS   0x1000

Definition at line 157 of file lan8770_driver.h.

◆ LAN8770_MDIO_CONTROL2

#define LAN8770_MDIO_CONTROL2   0x10

Definition at line 51 of file lan8770_driver.h.

◆ LAN8770_MDIO_CONTROL2_SLEEP_REQ

#define LAN8770_MDIO_CONTROL2_SLEEP_REQ   0x1000

Definition at line 164 of file lan8770_driver.h.

◆ LAN8770_MDIO_CONTROL2_WAKE_REQ

#define LAN8770_MDIO_CONTROL2_WAKE_REQ   0x2000

Definition at line 163 of file lan8770_driver.h.

◆ LAN8770_MODE_STATUS

#define LAN8770_MODE_STATUS   0x11

Definition at line 52 of file lan8770_driver.h.

◆ LAN8770_MODE_STATUS_DSCR_LOCK_STATUS

#define LAN8770_MODE_STATUS_DSCR_LOCK_STATUS   0x0008

Definition at line 168 of file lan8770_driver.h.

◆ LAN8770_MODE_STATUS_ENERGY_STATUS

#define LAN8770_MODE_STATUS_ENERGY_STATUS   0x0040

Definition at line 167 of file lan8770_driver.h.

◆ LAN8770_MODE_STATUS_LINK_UP

#define LAN8770_MODE_STATUS_LINK_UP   0x0001

Definition at line 169 of file lan8770_driver.h.

◆ LAN8770_PCS_CONTROL

#define LAN8770_PCS_CONTROL   0x17

Definition at line 56 of file lan8770_driver.h.

◆ LAN8770_PCS_CONTROL_POL_FLIP_MAN_CTRL

#define LAN8770_PCS_CONTROL_POL_FLIP_MAN_CTRL   0x0080

Definition at line 184 of file lan8770_driver.h.

◆ LAN8770_PCS_CONTROL_POL_FLIP_RX_CTRL

#define LAN8770_PCS_CONTROL_POL_FLIP_RX_CTRL   0x0200

Definition at line 182 of file lan8770_driver.h.

◆ LAN8770_PCS_CONTROL_POL_FLIP_TX_CTRL

#define LAN8770_PCS_CONTROL_POL_FLIP_TX_CTRL   0x0100

Definition at line 183 of file lan8770_driver.h.

◆ LAN8770_PCS_RX_ERR_CNT_STS

#define LAN8770_PCS_RX_ERR_CNT_STS   0x1E

Definition at line 60 of file lan8770_driver.h.

◆ LAN8770_PCS_RX_ERR_CNT_STS_PCS_RX_ERR_CNT

#define LAN8770_PCS_RX_ERR_CNT_STS_PCS_RX_ERR_CNT   0xFFFF

Definition at line 218 of file lan8770_driver.h.

◆ LAN8770_PHY_ADDR

#define LAN8770_PHY_ADDR   4

Definition at line 39 of file lan8770_driver.h.

◆ LAN8770_PHY_ID1

#define LAN8770_PHY_ID1   0x02

Definition at line 47 of file lan8770_driver.h.

◆ LAN8770_PHY_ID1_PHY_ID_MSB

#define LAN8770_PHY_ID1_PHY_ID_MSB   0xFFFF

Definition at line 135 of file lan8770_driver.h.

◆ LAN8770_PHY_ID1_PHY_ID_MSB_DEFAULT

#define LAN8770_PHY_ID1_PHY_ID_MSB_DEFAULT   0x0007

Definition at line 136 of file lan8770_driver.h.

◆ LAN8770_PHY_ID2

#define LAN8770_PHY_ID2   0x03

Definition at line 48 of file lan8770_driver.h.

◆ LAN8770_PHY_ID2_MODEL_NUM

#define LAN8770_PHY_ID2_MODEL_NUM   0x03F0

Definition at line 141 of file lan8770_driver.h.

◆ LAN8770_PHY_ID2_MODEL_NUM_DEFAULT

#define LAN8770_PHY_ID2_MODEL_NUM_DEFAULT   0x0150

Definition at line 142 of file lan8770_driver.h.

◆ LAN8770_PHY_ID2_PHY_ID_LSB

#define LAN8770_PHY_ID2_PHY_ID_LSB   0xFC00

Definition at line 139 of file lan8770_driver.h.

◆ LAN8770_PHY_ID2_PHY_ID_LSB_DEFAULT

#define LAN8770_PHY_ID2_PHY_ID_LSB_DEFAULT   0xC000

Definition at line 140 of file lan8770_driver.h.

◆ LAN8770_PHY_ID2_REVISION_NUM

#define LAN8770_PHY_ID2_REVISION_NUM   0x000F

Definition at line 143 of file lan8770_driver.h.

◆ LAN8770_POWER_DOWN_CONTROL

#define LAN8770_POWER_DOWN_CONTROL   0x1A

Definition at line 59 of file lan8770_driver.h.

◆ LAN8770_POWER_DOWN_CONTROL_HARD_INIT_SEQ_EN

#define LAN8770_POWER_DOWN_CONTROL_HARD_INIT_SEQ_EN   0x0100

Definition at line 215 of file lan8770_driver.h.

◆ LAN8770_REV_ID

#define LAN8770_REV_ID   0x01, 0x01

Definition at line 63 of file lan8770_driver.h.

◆ LAN8770_REV_ID_REVISION

#define LAN8770_REV_ID_REVISION   0x00FF

Definition at line 221 of file lan8770_driver.h.

◆ LAN8770_SLEEP_WAKE_DET

#define LAN8770_SLEEP_WAKE_DET   0x02, 0x20

Definition at line 77 of file lan8770_driver.h.

◆ LAN8770_SLEEP_WAKE_DET_LPS_DETECT_LEN

#define LAN8770_SLEEP_WAKE_DET_LPS_DETECT_LEN   0x00FF

Definition at line 328 of file lan8770_driver.h.

◆ LAN8770_SLEEP_WAKE_DET_LPS_DETECT_LEN_DEFAULT

#define LAN8770_SLEEP_WAKE_DET_LPS_DETECT_LEN_DEFAULT   0x003C

Definition at line 329 of file lan8770_driver.h.

◆ LAN8770_SLEEP_WAKE_DET_WUR_DETECT_LEN

#define LAN8770_SLEEP_WAKE_DET_WUR_DETECT_LEN   0xFF00

Definition at line 326 of file lan8770_driver.h.

◆ LAN8770_SLEEP_WAKE_DET_WUR_DETECT_LEN_DEFAULT

#define LAN8770_SLEEP_WAKE_DET_WUR_DETECT_LEN_DEFAULT   0x2800

Definition at line 327 of file lan8770_driver.h.

◆ LAN8770_SQI_SQU_MEAN_LSB

#define LAN8770_SQI_SQU_MEAN_LSB   0x04, 0x82

Definition at line 87 of file lan8770_driver.h.

◆ LAN8770_SQI_SQU_MEAN_MSB

#define LAN8770_SQI_SQU_MEAN_MSB   0x04, 0x83

Definition at line 88 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL0

#define LAN8770_SQI_TBL0   0x04, 0xBA

Definition at line 89 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL0_SQI_METHOD_A_VALUE

#define LAN8770_SQI_TBL0_SQI_METHOD_A_VALUE   0x01FF

Definition at line 362 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL1

#define LAN8770_SQI_TBL1   0x04, 0xBB

Definition at line 90 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL1_SQI_METHOD_A_VALUE

#define LAN8770_SQI_TBL1_SQI_METHOD_A_VALUE   0x01FF

Definition at line 365 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL2

#define LAN8770_SQI_TBL2   0x04, 0xBC

Definition at line 91 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL2_SQI_METHOD_A_VALUE

#define LAN8770_SQI_TBL2_SQI_METHOD_A_VALUE   0x01FF

Definition at line 368 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL3

#define LAN8770_SQI_TBL3   0x04, 0xBD

Definition at line 92 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL3_SQI_METHOD_A_VALUE

#define LAN8770_SQI_TBL3_SQI_METHOD_A_VALUE   0x01FF

Definition at line 371 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL4

#define LAN8770_SQI_TBL4   0x04, 0xBE

Definition at line 93 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL4_SQI_METHOD_A_VALUE

#define LAN8770_SQI_TBL4_SQI_METHOD_A_VALUE   0x01FF

Definition at line 374 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL5

#define LAN8770_SQI_TBL5   0x04, 0xBF

Definition at line 94 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL5_SQI_METHOD_A_VALUE

#define LAN8770_SQI_TBL5_SQI_METHOD_A_VALUE   0x01FF

Definition at line 377 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL6

#define LAN8770_SQI_TBL6   0x04, 0xC0

Definition at line 95 of file lan8770_driver.h.

◆ LAN8770_SQI_TBL6_SQI_METHOD_A_VALUE

#define LAN8770_SQI_TBL6_SQI_METHOD_A_VALUE   0x01FF

Definition at line 380 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0

#define LAN8770_WKP_COM_CTL0   0x01, 0x20

Definition at line 71 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0_INH_EN

#define LAN8770_WKP_COM_CTL0_INH_EN   0x0002

Definition at line 301 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0_RING_OSC_EN

#define LAN8770_WKP_COM_CTL0_RING_OSC_EN   0x0020

Definition at line 298 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0_RING_OSC_STATUS

#define LAN8770_WKP_COM_CTL0_RING_OSC_STATUS   0x0040

Definition at line 297 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0_SLEEP_EN

#define LAN8770_WKP_COM_CTL0_SLEEP_EN   0x0004

Definition at line 300 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0_VBAT_COMMON_REG_WRITE

#define LAN8770_WKP_COM_CTL0_VBAT_COMMON_REG_WRITE   0x8000

Definition at line 296 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0_WAKE_DEBOUNCE_UNITS

#define LAN8770_WKP_COM_CTL0_WAKE_DEBOUNCE_UNITS   0x0008

Definition at line 299 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL0_WAKE_IN_EN

#define LAN8770_WKP_COM_CTL0_WAKE_IN_EN   0x0001

Definition at line 302 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL1

#define LAN8770_WKP_COM_CTL1   0x01, 0x21

Definition at line 72 of file lan8770_driver.h.

◆ LAN8770_WKP_COM_CTL1_WAKE_IN_DEBOUNCE_VALUE

#define LAN8770_WKP_COM_CTL1_WAKE_IN_DEBOUNCE_VALUE   0xFF00

Definition at line 305 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS

#define LAN8770_WKP_DBG_STS   0x01, 0x22

Definition at line 73 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE

#define LAN8770_WKP_DBG_STS_TC10_STATE   0x0007

Definition at line 308 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE_NORMAL

#define LAN8770_WKP_DBG_STS_TC10_STATE_NORMAL   0x0001

Definition at line 310 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP

#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP   0x0006

Definition at line 315 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_ACK

#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_ACK   0x0002

Definition at line 311 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_FAIL

#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_FAIL   0x0004

Definition at line 313 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_REQ

#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_REQ   0x0003

Definition at line 312 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_SILENT

#define LAN8770_WKP_DBG_STS_TC10_STATE_SLEEP_SILENT   0x0005

Definition at line 314 of file lan8770_driver.h.

◆ LAN8770_WKP_DBG_STS_TC10_STATE_START

#define LAN8770_WKP_DBG_STS_TC10_STATE_START   0x0000

Definition at line 309 of file lan8770_driver.h.

◆ LAN8770_WKP_PRT_CTL

#define LAN8770_WKP_PRT_CTL   0x01, 0x24

Definition at line 74 of file lan8770_driver.h.

◆ LAN8770_WKP_PRT_CTL_MDI_WAKE_EN

#define LAN8770_WKP_PRT_CTL_MDI_WAKE_EN   0x0100

Definition at line 322 of file lan8770_driver.h.

◆ LAN8770_WKP_PRT_CTL_SD_TUNE

#define LAN8770_WKP_PRT_CTL_SD_TUNE   0x0600

Definition at line 321 of file lan8770_driver.h.

◆ LAN8770_WKP_PRT_CTL_VBAT_PORT_REG_WRITE

#define LAN8770_WKP_PRT_CTL_VBAT_PORT_REG_WRITE   0x8000

Definition at line 318 of file lan8770_driver.h.

◆ LAN8770_WKP_PRT_CTL_WAKEUP_DEBOUNCE_UNITS

#define LAN8770_WKP_PRT_CTL_WAKEUP_DEBOUNCE_UNITS   0x0800

Definition at line 320 of file lan8770_driver.h.

◆ LAN8770_WKP_PRT_CTL_WUP_AUTO_FORWARD_EN

#define LAN8770_WKP_PRT_CTL_WUP_AUTO_FORWARD_EN   0x1000

Definition at line 319 of file lan8770_driver.h.

◆ LAN8770_WKP_PRT_CTL_WUP_DEBOUNCE_VALUE

#define LAN8770_WKP_PRT_CTL_WUP_DEBOUNCE_VALUE   0x00FF

Definition at line 323 of file lan8770_driver.h.

Function Documentation

◆ lan8770DisableIrq()

void lan8770DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 217 of file lan8770_driver.c.

◆ lan8770DumpPhyReg()

void lan8770DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 320 of file lan8770_driver.c.

◆ lan8770EnableIrq()

void lan8770EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 202 of file lan8770_driver.c.

◆ lan8770EventHandler()

void lan8770EventHandler ( NetInterface interface)

LAN8770 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 232 of file lan8770_driver.c.

◆ lan8770Init()

error_t lan8770Init ( NetInterface interface)

LAN8770 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 60 of file lan8770_driver.c.

◆ lan8770InitHook()

void lan8770InitHook ( NetInterface interface)

LAN8770 custom configuration.

Parameters
[in]interfaceUnderlying network interface

Definition at line 154 of file lan8770_driver.c.

◆ lan8770ReadExtReg()

uint16_t lan8770ReadExtReg ( NetInterface interface,
uint8_t  bank,
uint8_t  addr 
)

Read extended register.

Parameters
[in]interfaceUnderlying network interface
[in]bankRegister bank
[in]addrRegister address
Returns
Extended register value

Definition at line 373 of file lan8770_driver.c.

◆ lan8770ReadPhyReg()

uint16_t lan8770ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]addressPHY register address
Returns
Register value

Definition at line 294 of file lan8770_driver.c.

◆ lan8770Tick()

void lan8770Tick ( NetInterface interface)

LAN8770 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 164 of file lan8770_driver.c.

◆ lan8770WriteExtReg()

void lan8770WriteExtReg ( NetInterface interface,
uint8_t  bank,
uint8_t  addr,
uint16_t  data 
)

Write extended register.

Parameters
[in]interfaceUnderlying network interface
[in]bankRegister bank
[in]addrRegister address
[in]dataExtended register value

Definition at line 345 of file lan8770_driver.c.

◆ lan8770WritePhyReg()

void lan8770WritePhyReg ( NetInterface interface,
uint8_t  address,
uint16_t  data 
)

Write PHY register.

Parameters
[in]interfaceUnderlying network interface
[in]addressPHY register address
[in]dataRegister value

Definition at line 270 of file lan8770_driver.c.

Variable Documentation

◆ lan8770PhyDriver

const PhyDriver lan8770PhyDriver
extern

LAN8770 Ethernet PHY driver.

Definition at line 44 of file lan8770_driver.c.