lan8830_driver.h File Reference

LAN8830 Gigabit Ethernet PHY driver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define LAN8830_PHY_ADDR   3
 
#define LAN8830_BMCR   0x00
 
#define LAN8830_BMSR   0x01
 
#define LAN8830_PHYID1   0x02
 
#define LAN8830_PHYID2   0x03
 
#define LAN8830_ANAR   0x04
 
#define LAN8830_ANLPAR   0x05
 
#define LAN8830_ANER   0x06
 
#define LAN8830_ANNPTR   0x07
 
#define LAN8830_ANNPRR   0x08
 
#define LAN8830_GBCR   0x09
 
#define LAN8830_GBSR   0x0A
 
#define LAN8830_MMDACR   0x0D
 
#define LAN8830_MMDAADR   0x0E
 
#define LAN8830_GBESR   0x0F
 
#define LAN8830_RLB   0x11
 
#define LAN8830_LINKMD   0x12
 
#define LAN8830_DPMAPCSS   0x13
 
#define LAN8830_RXERCTR   0x15
 
#define LAN8830_LED_MODE_SEL   0x16
 
#define LAN8830_LED_BEHAVIOR   0x17
 
#define LAN8830_OUT_CTRL   0x19
 
#define LAN8830_LEGACY_LED_MODE   0x1A
 
#define LAN8830_ISR   0x1B
 
#define LAN8830_AUTOMDI   0x1C
 
#define LAN8830_SPDC   0x1D
 
#define LAN8830_EXT_LOOPBACK   0x1E
 
#define LAN8830_PHYCON   0x1F
 
#define LAN8830_MEAN_SLICER_ERROR   0x01, 0xE1
 
#define LAN8830_DCQ_MEAN_SQUARE_ERROR   0x01, 0xE2
 
#define LAN8830_DCQ_MEAN_SQUARE_ERROR_WORST_CASE   0x01, 0xE3
 
#define LAN8830_DCQ_SQI   0x01, 0xE4
 
#define LAN8830_DCQ_PEAK_MSE   0x01, 0xE5
 
#define LAN8830_DCQ_CTRL   0x01, 0xE6
 
#define LAN8830_DCQ_CONFIG   0x01, 0xE7
 
#define LAN8830_DCQ_SQI_TABLE   0x01, 0xE8
 
#define LAN8830_COMMON_CTRL   0x02, 0x00
 
#define LAN8830_STRAP_STAT   0x02, 0x01
 
#define LAN8830_OP_MODE_STRAP_OVERRIDE   0x02, 0x02
 
#define LAN8830_OP_MODE_STRAP   0x02, 0x03
 
#define LAN8830_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW   0x02, 0x04
 
#define LAN8830_RGMII_RX_DATA_PAD_SKEW   0x02, 0x05
 
#define LAN8830_RGMII_TX_DATA_PAD_SKEW   0x02, 0x06
 
#define LAN8830_CLK_PAD_SKEW   0x02, 0x08
 
#define LAN8830_SELF_TEST_PKT_COUNT_LO   0x02, 0x09
 
#define LAN8830_SELF_TEST_PKT_COUNT_HI   0x02, 0x0A
 
#define LAN8830_SELF_TEST_STAT   0x02, 0x0B
 
#define LAN8830_SELF_TEST_FRAME_COUNT_EN   0x02, 0x0C
 
#define LAN8830_SELF_TEST_PGEN_EN   0x02, 0x0D
 
#define LAN8830_SELF_TEST_EN   0x02, 0x0E
 
#define LAN8830_WOL_CTRL   0x02, 0x10
 
#define LAN8830_WOL_MAC_LO   0x02, 0x11
 
#define LAN8830_WOL_MAC_MI   0x02, 0x12
 
#define LAN8830_WOL_MAC_HI   0x02, 0x13
 
#define LAN8830_CUSTOM_PKT0_CRC_LO   0x02, 0x14
 
#define LAN8830_CUSTOM_PKT0_CRC_HI   0x02, 0x15
 
#define LAN8830_CUSTOM_PKT1_CRC_LO   0x02, 0x16
 
#define LAN8830_CUSTOM_PKT1_CRC_HI   0x02, 0x17
 
#define LAN8830_CUSTOM_PKT2_CRC_LO   0x02, 0x18
 
#define LAN8830_CUSTOM_PKT2_CRC_HI   0x02, 0x19
 
#define LAN8830_CUSTOM_PKT3_CRC_LO   0x02, 0x1A
 
#define LAN8830_CUSTOM_PKT3_CRC_HI   0x02, 0x1B
 
#define LAN8830_CUSTOM_PKT0_MASK_LL   0x02, 0x1C
 
#define LAN8830_CUSTOM_PKT0_MASK_LH   0x02, 0x1D
 
#define LAN8830_CUSTOM_PKT0_MASK_HL   0x02, 0x1E
 
#define LAN8830_CUSTOM_PKT0_MASK_HH   0x02, 0x1F
 
#define LAN8830_CUSTOM_PKT1_MASK_LL   0x02, 0x20
 
#define LAN8830_CUSTOM_PKT1_MASK_LH   0x02, 0x21
 
#define LAN8830_CUSTOM_PKT1_MASK_HL   0x02, 0x22
 
#define LAN8830_CUSTOM_PKT1_MASK_HH   0x02, 0x23
 
#define LAN8830_CUSTOM_PKT2_MASK_LL   0x02, 0x24
 
#define LAN8830_CUSTOM_PKT2_MASK_LH   0x02, 0x25
 
#define LAN8830_CUSTOM_PKT2_MASK_HL   0x02, 0x26
 
#define LAN8830_CUSTOM_PKT2_MASK_HH   0x02, 0x27
 
#define LAN8830_CUSTOM_PKT3_MASK_LL   0x02, 0x28
 
#define LAN8830_CUSTOM_PKT3_MASK_LH   0x02, 0x29
 
#define LAN8830_CUSTOM_PKT3_MASK_HL   0x02, 0x2A
 
#define LAN8830_CUSTOM_PKT3_MASK_HH   0x02, 0x2B
 
#define LAN8830_WOL_CTRL_STAT   0x02, 0x2C
 
#define LAN8830_WOL_CUSTOM_PKT_RECEIVE_STAT   0x02, 0x2D
 
#define LAN8830_WOL_MAGIC_PKT_RECEIVE_STAT   0x02, 0x2E
 
#define LAN8830_WOL_DATA_MODULE_STAT   0x02, 0x2F
 
#define LAN8830_CUSTOM_PKT0_RCVD_CRC_L   0x02, 0x30
 
#define LAN8830_CUSTOM_PKT0_RCVD_CRC_H   0x02, 0x31
 
#define LAN8830_CUSTOM_PKT1_RCVD_CRC_L   0x02, 0x32
 
#define LAN8830_CUSTOM_PKT1_RCVD_CRC_H   0x02, 0x33
 
#define LAN8830_CUSTOM_PKT2_RCVD_CRC_L   0x02, 0x34
 
#define LAN8830_CUSTOM_PKT2_RCVD_CRC_H   0x02, 0x35
 
#define LAN8830_CUSTOM_PKT3_RCVD_CRC_L   0x02, 0x36
 
#define LAN8830_CUSTOM_PKT3_RCVD_CRC_H   0x02, 0x37
 
#define LAN8830_SELF_TEST_CORRECT_COUNT_LO   0x02, 0x3C
 
#define LAN8830_SELF_TEST_CORRECT_COUNT_HI   0x02, 0x3D
 
#define LAN8830_SELF_TEST_ERROR_COUNT_LO   0x02, 0x3E
 
#define LAN8830_SELF_TEST_ERROR_COUNT_HI   0x02, 0x3F
 
#define LAN8830_RX_DLL_CTRL   0x02, 0x4C
 
#define LAN8830_TX_DLL_CTRL   0x02, 0x4D
 
#define LAN8830_DRIVING_STRENGTH   0x02, 0x6F
 
#define LAN8830_GPIO_EN   0x02, 0x80
 
#define LAN8830_GPIO_DIR   0x02, 0x81
 
#define LAN8830_GPIO_BUF   0x02, 0x82
 
#define LAN8830_GPIO_DATA_SEL1   0x02, 0x83
 
#define LAN8830_GPIO_DATA_SEL2   0x02, 0x84
 
#define LAN8830_GPIO_DATA   0x02, 0x85
 
#define LAN8830_GPIO_INT_STS   0x02, 0x86
 
#define LAN8830_GPIO_INT_EN   0x02, 0x87
 
#define LAN8830_GPIO_INT_POL   0x02, 0x88
 
#define LAN8830_PCS_CTRL1   0x03, 0x00
 
#define LAN8830_PCS_STAT1   0x03, 0x01
 
#define LAN8830_EEE_QUIET_TIMER   0x03, 0x08
 
#define LAN8830_EEE_UPDATE_TIMER   0x03, 0x09
 
#define LAN8830_EEE_LINK_FAIL_TIMER   0x03, 0x0A
 
#define LAN8830_EEE_POST_UPDATE_TIMER   0x03, 0x0B
 
#define LAN8830_EEE_WAIT_WQ_TIMER   0x03, 0x0C
 
#define LAN8830_EEE_WAKE_TIMER   0x03, 0x0D
 
#define LAN8830_EEE_WAKE_TX_TIMER   0x03, 0x0E
 
#define LAN8830_EEE_WAKE_MZ_TIMER   0x03, 0x0F
 
#define LAN8830_EEE_CTRL_CAPABILITY   0x03, 0x14
 
#define LAN8830_EEE_WAKE_ERROR_COUNTER   0x03, 0x16
 
#define LAN8830_EEE_100_TIMER0   0x03, 0x18
 
#define LAN8830_EEE_100_TIMER1   0x03, 0x19
 
#define LAN8830_EEE_100_TIMER2   0x03, 0x1A
 
#define LAN8830_EEE_100_TIMER3   0x03, 0x1B
 
#define LAN8830_EEE_ADV   0x07, 0x3C
 
#define LAN8830_EEE_LP_ABILITY   0x07, 0x3D
 
#define LAN8830_EEE_LP_ABILITY_OVERRIDE   0x07, 0x3E
 
#define LAN8830_EEE_MSG_CODE   0x07, 0x3F
 
#define LAN8830_XTAL_CTRL   0x1C, 0x01
 
#define LAN8830_AFED_CTRL   0x1C, 0x09
 
#define LAN8830_LDO_CTRL   0x1C, 0x0E
 
#define LAN8830_EDPD_CTRL   0x1C, 0x24
 
#define LAN8830_EMITX_CTRL   0x1C, 0x25
 
#define LAN8830_EMITX_COEFF   0x1C, 0x26
 
#define LAN8830_BMCR_RESET   0x8000
 
#define LAN8830_BMCR_LOOPBACK   0x4000
 
#define LAN8830_BMCR_SPEED_SEL_LSB   0x2000
 
#define LAN8830_BMCR_AN_EN   0x1000
 
#define LAN8830_BMCR_POWER_DOWN   0x0800
 
#define LAN8830_BMCR_ISOLATE   0x0400
 
#define LAN8830_BMCR_RESTART_AN   0x0200
 
#define LAN8830_BMCR_DUPLEX_MODE   0x0100
 
#define LAN8830_BMCR_COL_TEST   0x0080
 
#define LAN8830_BMCR_SPEED_SEL_MSB   0x0040
 
#define LAN8830_BMSR_100BT4   0x8000
 
#define LAN8830_BMSR_100BTX_FD   0x4000
 
#define LAN8830_BMSR_100BTX_HD   0x2000
 
#define LAN8830_BMSR_10BT_FD   0x1000
 
#define LAN8830_BMSR_10BT_HD   0x0800
 
#define LAN8830_BMSR_100BT2_FD   0x0400
 
#define LAN8830_BMSR_100BT2_HD   0x0200
 
#define LAN8830_BMSR_EXTENDED_STATUS   0x0100
 
#define LAN8830_BMSR_UNIDIRECTIONAL_ABLE   0x0080
 
#define LAN8830_BMSR_MF_PREAMBLE_SUPPR   0x0040
 
#define LAN8830_BMSR_AN_COMPLETE   0x0020
 
#define LAN8830_BMSR_REMOTE_FAULT   0x0010
 
#define LAN8830_BMSR_AN_CAPABLE   0x0008
 
#define LAN8830_BMSR_LINK_STATUS   0x0004
 
#define LAN8830_BMSR_JABBER_DETECT   0x0002
 
#define LAN8830_BMSR_EXTENDED_CAPABLE   0x0001
 
#define LAN8830_PHYID1_PHY_ID_MSB   0xFFFF
 
#define LAN8830_PHYID1_PHY_ID_MSB_DEFAULT   0x0022
 
#define LAN8830_PHYID2_PHY_ID_LSB   0xFC00
 
#define LAN8830_PHYID2_PHY_ID_LSB_DEFAULT   0x1400
 
#define LAN8830_PHYID2_MODEL_NUM   0x03F0
 
#define LAN8830_PHYID2_MODEL_NUM_DEFAULT   0x0250
 
#define LAN8830_PHYID2_REVISION_NUM   0x000F
 
#define LAN8830_ANAR_NEXT_PAGE   0x8000
 
#define LAN8830_ANAR_REMOTE_FAULT   0x2000
 
#define LAN8830_ANAR_EXTENDED_NEXT_PAGE   0x1000
 
#define LAN8830_ANAR_ASYM_PAUSE   0x0800
 
#define LAN8830_ANAR_SYM_PAUSE   0x0400
 
#define LAN8830_ANAR_100BT4   0x0200
 
#define LAN8830_ANAR_100BTX_FD   0x0100
 
#define LAN8830_ANAR_100BTX_HD   0x0080
 
#define LAN8830_ANAR_10BT_FD   0x0040
 
#define LAN8830_ANAR_10BT_HD   0x0020
 
#define LAN8830_ANAR_SELECTOR   0x001F
 
#define LAN8830_ANAR_SELECTOR_DEFAULT   0x0001
 
#define LAN8830_ANLPAR_NEXT_PAGE   0x8000
 
#define LAN8830_ANLPAR_ACK   0x4000
 
#define LAN8830_ANLPAR_REMOTE_FAULT   0x2000
 
#define LAN8830_ANLPAR_EXTENDED_NEXT_PAGE   0x1000
 
#define LAN8830_ANLPAR_ASYM_PAUSE   0x0800
 
#define LAN8830_ANLPAR_PAUSE   0x0400
 
#define LAN8830_ANLPAR_100BT4   0x0200
 
#define LAN8830_ANLPAR_100BTX_FD   0x0100
 
#define LAN8830_ANLPAR_100BTX_HD   0x0080
 
#define LAN8830_ANLPAR_10BT_FD   0x0040
 
#define LAN8830_ANLPAR_10BT_HD   0x0020
 
#define LAN8830_ANLPAR_SELECTOR   0x001F
 
#define LAN8830_ANLPAR_SELECTOR_DEFAULT   0x0001
 
#define LAN8830_ANER_RECEIVE_NP_LOC_ABLE   0x0040
 
#define LAN8830_ANER_RECEIVE_NP_STOR_LOC   0x0020
 
#define LAN8830_ANER_PAR_DETECT_FAULT   0x0010
 
#define LAN8830_ANER_LP_NEXT_PAGE_ABLE   0x0008
 
#define LAN8830_ANER_NEXT_PAGE_ABLE   0x0004
 
#define LAN8830_ANER_PAGE_RECEIVED   0x0002
 
#define LAN8830_ANER_LP_AN_ABLE   0x0001
 
#define LAN8830_ANNPTR_NEXT_PAGE   0x8000
 
#define LAN8830_ANNPTR_MSG_PAGE   0x2000
 
#define LAN8830_ANNPTR_ACK2   0x1000
 
#define LAN8830_ANNPTR_TOGGLE   0x0800
 
#define LAN8830_ANNPTR_MESSAGE   0x07FF
 
#define LAN8830_ANNPRR_NEXT_PAGE   0x8000
 
#define LAN8830_ANNPRR_ACK   0x4000
 
#define LAN8830_ANNPRR_MSG_PAGE   0x2000
 
#define LAN8830_ANNPRR_ACK2   0x1000
 
#define LAN8830_ANNPRR_TOGGLE   0x0800
 
#define LAN8830_ANNPRR_MESSAGE   0x07FF
 
#define LAN8830_GBCR_TEST_MODE   0xE000
 
#define LAN8830_GBCR_MS_MAN_CONF_EN   0x1000
 
#define LAN8830_GBCR_MS_MAN_CONF_VAL   0x0800
 
#define LAN8830_GBCR_PORT_TYPE   0x0400
 
#define LAN8830_GBCR_1000BT_FD   0x0200
 
#define LAN8830_GBCR_1000BT_HD   0x0100
 
#define LAN8830_GBSR_MS_CONF_FAULT   0x8000
 
#define LAN8830_GBSR_MS_CONF_RES   0x4000
 
#define LAN8830_GBSR_LOCAL_RECEIVER_STATUS   0x2000
 
#define LAN8830_GBSR_REMOTE_RECEIVER_STATUS   0x1000
 
#define LAN8830_GBSR_LP_1000BT_FD   0x0800
 
#define LAN8830_GBSR_LP_1000BT_HD   0x0400
 
#define LAN8830_GBSR_IDLE_ERR_COUNT   0x00FF
 
#define LAN8830_MMDACR_FUNC   0xC000
 
#define LAN8830_MMDACR_FUNC_ADDR   0x0000
 
#define LAN8830_MMDACR_FUNC_DATA_NO_POST_INC   0x4000
 
#define LAN8830_MMDACR_FUNC_DATA_POST_INC_RW   0x8000
 
#define LAN8830_MMDACR_FUNC_DATA_POST_INC_W   0xC000
 
#define LAN8830_MMDACR_DEVAD   0x001F
 
#define LAN8830_GBESR_1000BX_FD   0x8000
 
#define LAN8830_GBESR_1000BX_HD   0x4000
 
#define LAN8830_GBESR_1000BT_FD   0x2000
 
#define LAN8830_GBESR_1000BT_HD   0x1000
 
#define LAN8830_RLB_REMOTE_LOOPBACK   0x0100
 
#define LAN8830_LINKMD_TEST_EN   0x8000
 
#define LAN8830_LINKMD_TX_DIS   0x4000
 
#define LAN8830_LINKMD_PAIR   0x3000
 
#define LAN8830_LINKMD_PAIR_A   0x0000
 
#define LAN8830_LINKMD_PAIR_B   0x1000
 
#define LAN8830_LINKMD_PAIR_C   0x2000
 
#define LAN8830_LINKMD_PAIR_D   0x3000
 
#define LAN8830_LINKMD_SEL   0x0C00
 
#define LAN8830_LINKMD_STATUS   0x0300
 
#define LAN8830_LINKMD_STATUS_NORMAL   0x0000
 
#define LAN8830_LINKMD_STATUS_OPEN   0x0100
 
#define LAN8830_LINKMD_STATUS_SHORT   0x0200
 
#define LAN8830_LINKMD_STATUS_TEST_FAILED   0x0300
 
#define LAN8830_LINKMD_FAULT_DATA   0x00FF
 
#define LAN8830_DPMAPCSS_1000BT_LINK_STATUS   0x0002
 
#define LAN8830_DPMAPCSS_100BTX_LINK_STATUS   0x0001
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG   0xF000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_ACT   0x0000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_1000_ACT   0x1000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_100_ACT   0x2000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_ACT   0x3000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_100_1000_ACT   0x4000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_1000_ACT   0x5000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_100_ACT   0x6000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_DUPLEX_COL   0x8000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_COL   0x9000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_ACT   0xA000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_AN_FAULT   0xC000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_OFF   0xE000
 
#define LAN8830_LED_MODE_SEL_LED4_CONFIG_ON   0xF000
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG   0x0F00
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_ACT   0x0000
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_1000_ACT   0x0100
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_100_ACT   0x0200
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_ACT   0x0300
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_100_1000_ACT   0x0400
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_1000_ACT   0x0500
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_100_ACT   0x0600
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_DUPLEX_COL   0x0800
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_COL   0x0900
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_ACT   0x0A00
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_AN_FAULT   0x0C00
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_OFF   0x0E00
 
#define LAN8830_LED_MODE_SEL_LED3_CONFIG_ON   0x0F00
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG   0x00F0
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_ACT   0x0000
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_1000_ACT   0x0010
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_100_ACT   0x0020
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_ACT   0x0030
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_100_1000_ACT   0x0040
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_1000_ACT   0x0050
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_100_ACT   0x0060
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_DUPLEX_COL   0x0080
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_COL   0x0090
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_ACT   0x00A0
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_AN_FAULT   0x00C0
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_OFF   0x00E0
 
#define LAN8830_LED_MODE_SEL_LED2_CONFIG_ON   0x00F0
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG   0x000F
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_ACT   0x0000
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_1000_ACT   0x0001
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_100_ACT   0x0002
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_ACT   0x0003
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_100_1000_ACT   0x0004
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_1000_ACT   0x0005
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_100_ACT   0x0006
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_DUPLEX_COL   0x0008
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_COL   0x0009
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_ACT   0x000A
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_AN_FAULT   0x000C
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_OFF   0x000E
 
#define LAN8830_LED_MODE_SEL_LED1_CONFIG_ON   0x000F
 
#define LAN8830_LED_BEHAVIOR_LED_ACT_OUT_SEL   0x4000
 
#define LAN8830_LED_BEHAVIOR_LED_PULSING_EN   0x1000
 
#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE   0x0C00
 
#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ   0x0000
 
#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_5HZ   0x0400
 
#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_10HZ   0x0800
 
#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_20HZ   0x0C00
 
#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN   0x01E0
 
#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED4   0x0100
 
#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED3   0x0080
 
#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2   0x0040
 
#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1   0x0020
 
#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS   0x000F
 
#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED4   0x0008
 
#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED3   0x0004
 
#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2   0x0002
 
#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1   0x0001
 
#define LAN8830_OUT_CTRL_MDIO_BUFFER_TYPE   0x8000
 
#define LAN8830_OUT_CTRL_INT_BUFFER_TYPE   0x4000
 
#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE   0x3F00
 
#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED4   0x0800
 
#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED3   0x0400
 
#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED2   0x0200
 
#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED1   0x0100
 
#define LAN8830_OUT_CTRL_PME_POLARITY   0x0080
 
#define LAN8830_OUT_CTRL_LED_POLARITY   0x003F
 
#define LAN8830_OUT_CTRL_LED_POLARITY_LED4   0x0008
 
#define LAN8830_OUT_CTRL_LED_POLARITY_LED3   0x0004
 
#define LAN8830_OUT_CTRL_LED_POLARITY_LED2   0x0002
 
#define LAN8830_OUT_CTRL_LED_POLARITY_LED1   0x0001
 
#define LAN8830_LEGACY_LED_MODE_KSZ9031_LED_MODE   0x4000
 
#define LAN8830_ISR_ENERGY_NOT_DETECT   0x0800
 
#define LAN8830_ISR_ENERGY_DETECT   0x0400
 
#define LAN8830_ISR_GPIO   0x0100
 
#define LAN8830_ISR_JABBER   0x0080
 
#define LAN8830_ISR_RECEIVE_ERROR   0x0040
 
#define LAN8830_ISR_PAGE_RECEIVED   0x0020
 
#define LAN8830_ISR_PAR_DETECT_FAULT   0x0010
 
#define LAN8830_ISR_LP_ACK   0x0008
 
#define LAN8830_ISR_LINK_DOWN   0x0004
 
#define LAN8830_ISR_ADC_FIFO_ERROR   0x0002
 
#define LAN8830_ISR_LINK_UP   0x0001
 
#define LAN8830_AUTOMDI_MDI_SET   0x0080
 
#define LAN8830_AUTOMDI_SWAP_OFF   0x0040
 
#define LAN8830_SPDC_CLK_GATE_OVERRIDE   0x0800
 
#define LAN8830_SPDC_PLL_DIS   0x0400
 
#define LAN8830_SPDC_IO_DC_TEST_EN   0x0080
 
#define LAN8830_SPDC_VOH   0x0040
 
#define LAN8830_EXT_LOOPBACK_EXT_LPBK   0x0008
 
#define LAN8830_PHYCON_INT_POL_INVERT   0x4000
 
#define LAN8830_PHYCON_JABBER_EN   0x0200
 
#define LAN8830_PHYCON_SQE_TEST_EN   0x0100
 
#define LAN8830_PHYCON_SPEED_1000BT   0x0040
 
#define LAN8830_PHYCON_SPEED_100BTX   0x0020
 
#define LAN8830_PHYCON_SPEED_10BT   0x0010
 
#define LAN8830_PHYCON_DUPLEX_STATUS   0x0008
 
#define LAN8830_PHYCON_1000BT_MS_STATUS   0x0004
 
#define LAN8830_PHYCON_SOFT_RESET   0x0002
 
#define LAN8830_PHYCON_LINK_STATUS_CHECK_FAIL   0x0001
 
#define LAN8830_RX_DLL_CTRL_RXDLL_TUNE_DIS   0x8000
 
#define LAN8830_RX_DLL_CTRL_BYPASS_RXDLL   0x4000
 
#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_SEL   0x3F80
 
#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT   0x0D80
 
#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_ADJ   0x007F
 
#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT   0x001B
 
#define LAN8830_TX_DLL_CTRL_TXDLL_TUNE_DIS   0x8000
 
#define LAN8830_TX_DLL_CTRL_BYPASS_TXDLL   0x4000
 
#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_SEL   0x3F80
 
#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT   0x0D80
 
#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_ADJ   0x007F
 
#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT   0x001B
 

Functions

error_t lan8830Init (NetInterface *interface)
 LAN8830 PHY transceiver initialization. More...
 
void lan8830InitHook (NetInterface *interface)
 LAN8830 custom configuration. More...
 
void lan8830Tick (NetInterface *interface)
 LAN8830 timer handler. More...
 
void lan8830EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void lan8830DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void lan8830EventHandler (NetInterface *interface)
 LAN8830 event handler. More...
 
void lan8830WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t lan8830ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void lan8830DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 
void lan8830WriteMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data)
 Write MMD register. More...
 
uint16_t lan8830ReadMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr)
 Read MMD register. More...
 

Variables

const PhyDriver lan8830PhyDriver
 LAN8830 Ethernet PHY driver. More...
 

Detailed Description

LAN8830 Gigabit 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 lan8830_driver.h.

Macro Definition Documentation

◆ LAN8830_AFED_CTRL

#define LAN8830_AFED_CTRL   0x1C, 0x09

Definition at line 173 of file lan8830_driver.h.

◆ LAN8830_ANAR

#define LAN8830_ANAR   0x04

Definition at line 49 of file lan8830_driver.h.

◆ LAN8830_ANAR_100BT4

#define LAN8830_ANAR_100BT4   0x0200

Definition at line 226 of file lan8830_driver.h.

◆ LAN8830_ANAR_100BTX_FD

#define LAN8830_ANAR_100BTX_FD   0x0100

Definition at line 227 of file lan8830_driver.h.

◆ LAN8830_ANAR_100BTX_HD

#define LAN8830_ANAR_100BTX_HD   0x0080

Definition at line 228 of file lan8830_driver.h.

◆ LAN8830_ANAR_10BT_FD

#define LAN8830_ANAR_10BT_FD   0x0040

Definition at line 229 of file lan8830_driver.h.

◆ LAN8830_ANAR_10BT_HD

#define LAN8830_ANAR_10BT_HD   0x0020

Definition at line 230 of file lan8830_driver.h.

◆ LAN8830_ANAR_ASYM_PAUSE

#define LAN8830_ANAR_ASYM_PAUSE   0x0800

Definition at line 224 of file lan8830_driver.h.

◆ LAN8830_ANAR_EXTENDED_NEXT_PAGE

#define LAN8830_ANAR_EXTENDED_NEXT_PAGE   0x1000

Definition at line 223 of file lan8830_driver.h.

◆ LAN8830_ANAR_NEXT_PAGE

#define LAN8830_ANAR_NEXT_PAGE   0x8000

Definition at line 221 of file lan8830_driver.h.

◆ LAN8830_ANAR_REMOTE_FAULT

#define LAN8830_ANAR_REMOTE_FAULT   0x2000

Definition at line 222 of file lan8830_driver.h.

◆ LAN8830_ANAR_SELECTOR

#define LAN8830_ANAR_SELECTOR   0x001F

Definition at line 231 of file lan8830_driver.h.

◆ LAN8830_ANAR_SELECTOR_DEFAULT

#define LAN8830_ANAR_SELECTOR_DEFAULT   0x0001

Definition at line 232 of file lan8830_driver.h.

◆ LAN8830_ANAR_SYM_PAUSE

#define LAN8830_ANAR_SYM_PAUSE   0x0400

Definition at line 225 of file lan8830_driver.h.

◆ LAN8830_ANER

#define LAN8830_ANER   0x06

Definition at line 51 of file lan8830_driver.h.

◆ LAN8830_ANER_LP_AN_ABLE

#define LAN8830_ANER_LP_AN_ABLE   0x0001

Definition at line 256 of file lan8830_driver.h.

◆ LAN8830_ANER_LP_NEXT_PAGE_ABLE

#define LAN8830_ANER_LP_NEXT_PAGE_ABLE   0x0008

Definition at line 253 of file lan8830_driver.h.

◆ LAN8830_ANER_NEXT_PAGE_ABLE

#define LAN8830_ANER_NEXT_PAGE_ABLE   0x0004

Definition at line 254 of file lan8830_driver.h.

◆ LAN8830_ANER_PAGE_RECEIVED

#define LAN8830_ANER_PAGE_RECEIVED   0x0002

Definition at line 255 of file lan8830_driver.h.

◆ LAN8830_ANER_PAR_DETECT_FAULT

#define LAN8830_ANER_PAR_DETECT_FAULT   0x0010

Definition at line 252 of file lan8830_driver.h.

◆ LAN8830_ANER_RECEIVE_NP_LOC_ABLE

#define LAN8830_ANER_RECEIVE_NP_LOC_ABLE   0x0040

Definition at line 250 of file lan8830_driver.h.

◆ LAN8830_ANER_RECEIVE_NP_STOR_LOC

#define LAN8830_ANER_RECEIVE_NP_STOR_LOC   0x0020

Definition at line 251 of file lan8830_driver.h.

◆ LAN8830_ANLPAR

#define LAN8830_ANLPAR   0x05

Definition at line 50 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_100BT4

#define LAN8830_ANLPAR_100BT4   0x0200

Definition at line 241 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_100BTX_FD

#define LAN8830_ANLPAR_100BTX_FD   0x0100

Definition at line 242 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_100BTX_HD

#define LAN8830_ANLPAR_100BTX_HD   0x0080

Definition at line 243 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_10BT_FD

#define LAN8830_ANLPAR_10BT_FD   0x0040

Definition at line 244 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_10BT_HD

#define LAN8830_ANLPAR_10BT_HD   0x0020

Definition at line 245 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_ACK

#define LAN8830_ANLPAR_ACK   0x4000

Definition at line 236 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_ASYM_PAUSE

#define LAN8830_ANLPAR_ASYM_PAUSE   0x0800

Definition at line 239 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_EXTENDED_NEXT_PAGE

#define LAN8830_ANLPAR_EXTENDED_NEXT_PAGE   0x1000

Definition at line 238 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_NEXT_PAGE

#define LAN8830_ANLPAR_NEXT_PAGE   0x8000

Definition at line 235 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_PAUSE

#define LAN8830_ANLPAR_PAUSE   0x0400

Definition at line 240 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_REMOTE_FAULT

#define LAN8830_ANLPAR_REMOTE_FAULT   0x2000

Definition at line 237 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_SELECTOR

#define LAN8830_ANLPAR_SELECTOR   0x001F

Definition at line 246 of file lan8830_driver.h.

◆ LAN8830_ANLPAR_SELECTOR_DEFAULT

#define LAN8830_ANLPAR_SELECTOR_DEFAULT   0x0001

Definition at line 247 of file lan8830_driver.h.

◆ LAN8830_ANNPRR

#define LAN8830_ANNPRR   0x08

Definition at line 53 of file lan8830_driver.h.

◆ LAN8830_ANNPRR_ACK

#define LAN8830_ANNPRR_ACK   0x4000

Definition at line 267 of file lan8830_driver.h.

◆ LAN8830_ANNPRR_ACK2

#define LAN8830_ANNPRR_ACK2   0x1000

Definition at line 269 of file lan8830_driver.h.

◆ LAN8830_ANNPRR_MESSAGE

#define LAN8830_ANNPRR_MESSAGE   0x07FF

Definition at line 271 of file lan8830_driver.h.

◆ LAN8830_ANNPRR_MSG_PAGE

#define LAN8830_ANNPRR_MSG_PAGE   0x2000

Definition at line 268 of file lan8830_driver.h.

◆ LAN8830_ANNPRR_NEXT_PAGE

#define LAN8830_ANNPRR_NEXT_PAGE   0x8000

Definition at line 266 of file lan8830_driver.h.

◆ LAN8830_ANNPRR_TOGGLE

#define LAN8830_ANNPRR_TOGGLE   0x0800

Definition at line 270 of file lan8830_driver.h.

◆ LAN8830_ANNPTR

#define LAN8830_ANNPTR   0x07

Definition at line 52 of file lan8830_driver.h.

◆ LAN8830_ANNPTR_ACK2

#define LAN8830_ANNPTR_ACK2   0x1000

Definition at line 261 of file lan8830_driver.h.

◆ LAN8830_ANNPTR_MESSAGE

#define LAN8830_ANNPTR_MESSAGE   0x07FF

Definition at line 263 of file lan8830_driver.h.

◆ LAN8830_ANNPTR_MSG_PAGE

#define LAN8830_ANNPTR_MSG_PAGE   0x2000

Definition at line 260 of file lan8830_driver.h.

◆ LAN8830_ANNPTR_NEXT_PAGE

#define LAN8830_ANNPTR_NEXT_PAGE   0x8000

Definition at line 259 of file lan8830_driver.h.

◆ LAN8830_ANNPTR_TOGGLE

#define LAN8830_ANNPTR_TOGGLE   0x0800

Definition at line 262 of file lan8830_driver.h.

◆ LAN8830_AUTOMDI

#define LAN8830_AUTOMDI   0x1C

Definition at line 68 of file lan8830_driver.h.

◆ LAN8830_AUTOMDI_MDI_SET

#define LAN8830_AUTOMDI_MDI_SET   0x0080

Definition at line 436 of file lan8830_driver.h.

◆ LAN8830_AUTOMDI_SWAP_OFF

#define LAN8830_AUTOMDI_SWAP_OFF   0x0040

Definition at line 437 of file lan8830_driver.h.

◆ LAN8830_BMCR

#define LAN8830_BMCR   0x00

Definition at line 45 of file lan8830_driver.h.

◆ LAN8830_BMCR_AN_EN

#define LAN8830_BMCR_AN_EN   0x1000

Definition at line 183 of file lan8830_driver.h.

◆ LAN8830_BMCR_COL_TEST

#define LAN8830_BMCR_COL_TEST   0x0080

Definition at line 188 of file lan8830_driver.h.

◆ LAN8830_BMCR_DUPLEX_MODE

#define LAN8830_BMCR_DUPLEX_MODE   0x0100

Definition at line 187 of file lan8830_driver.h.

◆ LAN8830_BMCR_ISOLATE

#define LAN8830_BMCR_ISOLATE   0x0400

Definition at line 185 of file lan8830_driver.h.

◆ LAN8830_BMCR_LOOPBACK

#define LAN8830_BMCR_LOOPBACK   0x4000

Definition at line 181 of file lan8830_driver.h.

◆ LAN8830_BMCR_POWER_DOWN

#define LAN8830_BMCR_POWER_DOWN   0x0800

Definition at line 184 of file lan8830_driver.h.

◆ LAN8830_BMCR_RESET

#define LAN8830_BMCR_RESET   0x8000

Definition at line 180 of file lan8830_driver.h.

◆ LAN8830_BMCR_RESTART_AN

#define LAN8830_BMCR_RESTART_AN   0x0200

Definition at line 186 of file lan8830_driver.h.

◆ LAN8830_BMCR_SPEED_SEL_LSB

#define LAN8830_BMCR_SPEED_SEL_LSB   0x2000

Definition at line 182 of file lan8830_driver.h.

◆ LAN8830_BMCR_SPEED_SEL_MSB

#define LAN8830_BMCR_SPEED_SEL_MSB   0x0040

Definition at line 189 of file lan8830_driver.h.

◆ LAN8830_BMSR

#define LAN8830_BMSR   0x01

Definition at line 46 of file lan8830_driver.h.

◆ LAN8830_BMSR_100BT2_FD

#define LAN8830_BMSR_100BT2_FD   0x0400

Definition at line 197 of file lan8830_driver.h.

◆ LAN8830_BMSR_100BT2_HD

#define LAN8830_BMSR_100BT2_HD   0x0200

Definition at line 198 of file lan8830_driver.h.

◆ LAN8830_BMSR_100BT4

#define LAN8830_BMSR_100BT4   0x8000

Definition at line 192 of file lan8830_driver.h.

◆ LAN8830_BMSR_100BTX_FD

#define LAN8830_BMSR_100BTX_FD   0x4000

Definition at line 193 of file lan8830_driver.h.

◆ LAN8830_BMSR_100BTX_HD

#define LAN8830_BMSR_100BTX_HD   0x2000

Definition at line 194 of file lan8830_driver.h.

◆ LAN8830_BMSR_10BT_FD

#define LAN8830_BMSR_10BT_FD   0x1000

Definition at line 195 of file lan8830_driver.h.

◆ LAN8830_BMSR_10BT_HD

#define LAN8830_BMSR_10BT_HD   0x0800

Definition at line 196 of file lan8830_driver.h.

◆ LAN8830_BMSR_AN_CAPABLE

#define LAN8830_BMSR_AN_CAPABLE   0x0008

Definition at line 204 of file lan8830_driver.h.

◆ LAN8830_BMSR_AN_COMPLETE

#define LAN8830_BMSR_AN_COMPLETE   0x0020

Definition at line 202 of file lan8830_driver.h.

◆ LAN8830_BMSR_EXTENDED_CAPABLE

#define LAN8830_BMSR_EXTENDED_CAPABLE   0x0001

Definition at line 207 of file lan8830_driver.h.

◆ LAN8830_BMSR_EXTENDED_STATUS

#define LAN8830_BMSR_EXTENDED_STATUS   0x0100

Definition at line 199 of file lan8830_driver.h.

◆ LAN8830_BMSR_JABBER_DETECT

#define LAN8830_BMSR_JABBER_DETECT   0x0002

Definition at line 206 of file lan8830_driver.h.

◆ LAN8830_BMSR_LINK_STATUS

#define LAN8830_BMSR_LINK_STATUS   0x0004

Definition at line 205 of file lan8830_driver.h.

◆ LAN8830_BMSR_MF_PREAMBLE_SUPPR

#define LAN8830_BMSR_MF_PREAMBLE_SUPPR   0x0040

Definition at line 201 of file lan8830_driver.h.

◆ LAN8830_BMSR_REMOTE_FAULT

#define LAN8830_BMSR_REMOTE_FAULT   0x0010

Definition at line 203 of file lan8830_driver.h.

◆ LAN8830_BMSR_UNIDIRECTIONAL_ABLE

#define LAN8830_BMSR_UNIDIRECTIONAL_ABLE   0x0080

Definition at line 200 of file lan8830_driver.h.

◆ LAN8830_CLK_PAD_SKEW

#define LAN8830_CLK_PAD_SKEW   0x02, 0x08

Definition at line 89 of file lan8830_driver.h.

◆ LAN8830_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW

#define LAN8830_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW   0x02, 0x04

Definition at line 86 of file lan8830_driver.h.

◆ LAN8830_COMMON_CTRL

#define LAN8830_COMMON_CTRL   0x02, 0x00

Definition at line 82 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_CRC_HI

#define LAN8830_CUSTOM_PKT0_CRC_HI   0x02, 0x15

Definition at line 101 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_CRC_LO

#define LAN8830_CUSTOM_PKT0_CRC_LO   0x02, 0x14

Definition at line 100 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_MASK_HH

#define LAN8830_CUSTOM_PKT0_MASK_HH   0x02, 0x1F

Definition at line 111 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_MASK_HL

#define LAN8830_CUSTOM_PKT0_MASK_HL   0x02, 0x1E

Definition at line 110 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_MASK_LH

#define LAN8830_CUSTOM_PKT0_MASK_LH   0x02, 0x1D

Definition at line 109 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_MASK_LL

#define LAN8830_CUSTOM_PKT0_MASK_LL   0x02, 0x1C

Definition at line 108 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_RCVD_CRC_H

#define LAN8830_CUSTOM_PKT0_RCVD_CRC_H   0x02, 0x31

Definition at line 129 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT0_RCVD_CRC_L

#define LAN8830_CUSTOM_PKT0_RCVD_CRC_L   0x02, 0x30

Definition at line 128 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_CRC_HI

#define LAN8830_CUSTOM_PKT1_CRC_HI   0x02, 0x17

Definition at line 103 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_CRC_LO

#define LAN8830_CUSTOM_PKT1_CRC_LO   0x02, 0x16

Definition at line 102 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_MASK_HH

#define LAN8830_CUSTOM_PKT1_MASK_HH   0x02, 0x23

Definition at line 115 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_MASK_HL

#define LAN8830_CUSTOM_PKT1_MASK_HL   0x02, 0x22

Definition at line 114 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_MASK_LH

#define LAN8830_CUSTOM_PKT1_MASK_LH   0x02, 0x21

Definition at line 113 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_MASK_LL

#define LAN8830_CUSTOM_PKT1_MASK_LL   0x02, 0x20

Definition at line 112 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_RCVD_CRC_H

#define LAN8830_CUSTOM_PKT1_RCVD_CRC_H   0x02, 0x33

Definition at line 131 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT1_RCVD_CRC_L

#define LAN8830_CUSTOM_PKT1_RCVD_CRC_L   0x02, 0x32

Definition at line 130 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_CRC_HI

#define LAN8830_CUSTOM_PKT2_CRC_HI   0x02, 0x19

Definition at line 105 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_CRC_LO

#define LAN8830_CUSTOM_PKT2_CRC_LO   0x02, 0x18

Definition at line 104 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_MASK_HH

#define LAN8830_CUSTOM_PKT2_MASK_HH   0x02, 0x27

Definition at line 119 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_MASK_HL

#define LAN8830_CUSTOM_PKT2_MASK_HL   0x02, 0x26

Definition at line 118 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_MASK_LH

#define LAN8830_CUSTOM_PKT2_MASK_LH   0x02, 0x25

Definition at line 117 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_MASK_LL

#define LAN8830_CUSTOM_PKT2_MASK_LL   0x02, 0x24

Definition at line 116 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_RCVD_CRC_H

#define LAN8830_CUSTOM_PKT2_RCVD_CRC_H   0x02, 0x35

Definition at line 133 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT2_RCVD_CRC_L

#define LAN8830_CUSTOM_PKT2_RCVD_CRC_L   0x02, 0x34

Definition at line 132 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_CRC_HI

#define LAN8830_CUSTOM_PKT3_CRC_HI   0x02, 0x1B

Definition at line 107 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_CRC_LO

#define LAN8830_CUSTOM_PKT3_CRC_LO   0x02, 0x1A

Definition at line 106 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_MASK_HH

#define LAN8830_CUSTOM_PKT3_MASK_HH   0x02, 0x2B

Definition at line 123 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_MASK_HL

#define LAN8830_CUSTOM_PKT3_MASK_HL   0x02, 0x2A

Definition at line 122 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_MASK_LH

#define LAN8830_CUSTOM_PKT3_MASK_LH   0x02, 0x29

Definition at line 121 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_MASK_LL

#define LAN8830_CUSTOM_PKT3_MASK_LL   0x02, 0x28

Definition at line 120 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_RCVD_CRC_H

#define LAN8830_CUSTOM_PKT3_RCVD_CRC_H   0x02, 0x37

Definition at line 135 of file lan8830_driver.h.

◆ LAN8830_CUSTOM_PKT3_RCVD_CRC_L

#define LAN8830_CUSTOM_PKT3_RCVD_CRC_L   0x02, 0x36

Definition at line 134 of file lan8830_driver.h.

◆ LAN8830_DCQ_CONFIG

#define LAN8830_DCQ_CONFIG   0x01, 0xE7

Definition at line 80 of file lan8830_driver.h.

◆ LAN8830_DCQ_CTRL

#define LAN8830_DCQ_CTRL   0x01, 0xE6

Definition at line 79 of file lan8830_driver.h.

◆ LAN8830_DCQ_MEAN_SQUARE_ERROR

#define LAN8830_DCQ_MEAN_SQUARE_ERROR   0x01, 0xE2

Definition at line 75 of file lan8830_driver.h.

◆ LAN8830_DCQ_MEAN_SQUARE_ERROR_WORST_CASE

#define LAN8830_DCQ_MEAN_SQUARE_ERROR_WORST_CASE   0x01, 0xE3

Definition at line 76 of file lan8830_driver.h.

◆ LAN8830_DCQ_PEAK_MSE

#define LAN8830_DCQ_PEAK_MSE   0x01, 0xE5

Definition at line 78 of file lan8830_driver.h.

◆ LAN8830_DCQ_SQI

#define LAN8830_DCQ_SQI   0x01, 0xE4

Definition at line 77 of file lan8830_driver.h.

◆ LAN8830_DCQ_SQI_TABLE

#define LAN8830_DCQ_SQI_TABLE   0x01, 0xE8

Definition at line 81 of file lan8830_driver.h.

◆ LAN8830_DPMAPCSS

#define LAN8830_DPMAPCSS   0x13

Definition at line 61 of file lan8830_driver.h.

◆ LAN8830_DPMAPCSS_1000BT_LINK_STATUS

#define LAN8830_DPMAPCSS_1000BT_LINK_STATUS   0x0002

Definition at line 324 of file lan8830_driver.h.

◆ LAN8830_DPMAPCSS_100BTX_LINK_STATUS

#define LAN8830_DPMAPCSS_100BTX_LINK_STATUS   0x0001

Definition at line 325 of file lan8830_driver.h.

◆ LAN8830_DRIVING_STRENGTH

#define LAN8830_DRIVING_STRENGTH   0x02, 0x6F

Definition at line 142 of file lan8830_driver.h.

◆ LAN8830_EDPD_CTRL

#define LAN8830_EDPD_CTRL   0x1C, 0x24

Definition at line 175 of file lan8830_driver.h.

◆ LAN8830_EEE_100_TIMER0

#define LAN8830_EEE_100_TIMER0   0x03, 0x18

Definition at line 164 of file lan8830_driver.h.

◆ LAN8830_EEE_100_TIMER1

#define LAN8830_EEE_100_TIMER1   0x03, 0x19

Definition at line 165 of file lan8830_driver.h.

◆ LAN8830_EEE_100_TIMER2

#define LAN8830_EEE_100_TIMER2   0x03, 0x1A

Definition at line 166 of file lan8830_driver.h.

◆ LAN8830_EEE_100_TIMER3

#define LAN8830_EEE_100_TIMER3   0x03, 0x1B

Definition at line 167 of file lan8830_driver.h.

◆ LAN8830_EEE_ADV

#define LAN8830_EEE_ADV   0x07, 0x3C

Definition at line 168 of file lan8830_driver.h.

◆ LAN8830_EEE_CTRL_CAPABILITY

#define LAN8830_EEE_CTRL_CAPABILITY   0x03, 0x14

Definition at line 162 of file lan8830_driver.h.

◆ LAN8830_EEE_LINK_FAIL_TIMER

#define LAN8830_EEE_LINK_FAIL_TIMER   0x03, 0x0A

Definition at line 156 of file lan8830_driver.h.

◆ LAN8830_EEE_LP_ABILITY

#define LAN8830_EEE_LP_ABILITY   0x07, 0x3D

Definition at line 169 of file lan8830_driver.h.

◆ LAN8830_EEE_LP_ABILITY_OVERRIDE

#define LAN8830_EEE_LP_ABILITY_OVERRIDE   0x07, 0x3E

Definition at line 170 of file lan8830_driver.h.

◆ LAN8830_EEE_MSG_CODE

#define LAN8830_EEE_MSG_CODE   0x07, 0x3F

Definition at line 171 of file lan8830_driver.h.

◆ LAN8830_EEE_POST_UPDATE_TIMER

#define LAN8830_EEE_POST_UPDATE_TIMER   0x03, 0x0B

Definition at line 157 of file lan8830_driver.h.

◆ LAN8830_EEE_QUIET_TIMER

#define LAN8830_EEE_QUIET_TIMER   0x03, 0x08

Definition at line 154 of file lan8830_driver.h.

◆ LAN8830_EEE_UPDATE_TIMER

#define LAN8830_EEE_UPDATE_TIMER   0x03, 0x09

Definition at line 155 of file lan8830_driver.h.

◆ LAN8830_EEE_WAIT_WQ_TIMER

#define LAN8830_EEE_WAIT_WQ_TIMER   0x03, 0x0C

Definition at line 158 of file lan8830_driver.h.

◆ LAN8830_EEE_WAKE_ERROR_COUNTER

#define LAN8830_EEE_WAKE_ERROR_COUNTER   0x03, 0x16

Definition at line 163 of file lan8830_driver.h.

◆ LAN8830_EEE_WAKE_MZ_TIMER

#define LAN8830_EEE_WAKE_MZ_TIMER   0x03, 0x0F

Definition at line 161 of file lan8830_driver.h.

◆ LAN8830_EEE_WAKE_TIMER

#define LAN8830_EEE_WAKE_TIMER   0x03, 0x0D

Definition at line 159 of file lan8830_driver.h.

◆ LAN8830_EEE_WAKE_TX_TIMER

#define LAN8830_EEE_WAKE_TX_TIMER   0x03, 0x0E

Definition at line 160 of file lan8830_driver.h.

◆ LAN8830_EMITX_COEFF

#define LAN8830_EMITX_COEFF   0x1C, 0x26

Definition at line 177 of file lan8830_driver.h.

◆ LAN8830_EMITX_CTRL

#define LAN8830_EMITX_CTRL   0x1C, 0x25

Definition at line 176 of file lan8830_driver.h.

◆ LAN8830_EXT_LOOPBACK

#define LAN8830_EXT_LOOPBACK   0x1E

Definition at line 70 of file lan8830_driver.h.

◆ LAN8830_EXT_LOOPBACK_EXT_LPBK

#define LAN8830_EXT_LOOPBACK_EXT_LPBK   0x0008

Definition at line 446 of file lan8830_driver.h.

◆ LAN8830_GBCR

#define LAN8830_GBCR   0x09

Definition at line 54 of file lan8830_driver.h.

◆ LAN8830_GBCR_1000BT_FD

#define LAN8830_GBCR_1000BT_FD   0x0200

Definition at line 278 of file lan8830_driver.h.

◆ LAN8830_GBCR_1000BT_HD

#define LAN8830_GBCR_1000BT_HD   0x0100

Definition at line 279 of file lan8830_driver.h.

◆ LAN8830_GBCR_MS_MAN_CONF_EN

#define LAN8830_GBCR_MS_MAN_CONF_EN   0x1000

Definition at line 275 of file lan8830_driver.h.

◆ LAN8830_GBCR_MS_MAN_CONF_VAL

#define LAN8830_GBCR_MS_MAN_CONF_VAL   0x0800

Definition at line 276 of file lan8830_driver.h.

◆ LAN8830_GBCR_PORT_TYPE

#define LAN8830_GBCR_PORT_TYPE   0x0400

Definition at line 277 of file lan8830_driver.h.

◆ LAN8830_GBCR_TEST_MODE

#define LAN8830_GBCR_TEST_MODE   0xE000

Definition at line 274 of file lan8830_driver.h.

◆ LAN8830_GBESR

#define LAN8830_GBESR   0x0F

Definition at line 58 of file lan8830_driver.h.

◆ LAN8830_GBESR_1000BT_FD

#define LAN8830_GBESR_1000BT_FD   0x2000

Definition at line 301 of file lan8830_driver.h.

◆ LAN8830_GBESR_1000BT_HD

#define LAN8830_GBESR_1000BT_HD   0x1000

Definition at line 302 of file lan8830_driver.h.

◆ LAN8830_GBESR_1000BX_FD

#define LAN8830_GBESR_1000BX_FD   0x8000

Definition at line 299 of file lan8830_driver.h.

◆ LAN8830_GBESR_1000BX_HD

#define LAN8830_GBESR_1000BX_HD   0x4000

Definition at line 300 of file lan8830_driver.h.

◆ LAN8830_GBSR

#define LAN8830_GBSR   0x0A

Definition at line 55 of file lan8830_driver.h.

◆ LAN8830_GBSR_IDLE_ERR_COUNT

#define LAN8830_GBSR_IDLE_ERR_COUNT   0x00FF

Definition at line 288 of file lan8830_driver.h.

◆ LAN8830_GBSR_LOCAL_RECEIVER_STATUS

#define LAN8830_GBSR_LOCAL_RECEIVER_STATUS   0x2000

Definition at line 284 of file lan8830_driver.h.

◆ LAN8830_GBSR_LP_1000BT_FD

#define LAN8830_GBSR_LP_1000BT_FD   0x0800

Definition at line 286 of file lan8830_driver.h.

◆ LAN8830_GBSR_LP_1000BT_HD

#define LAN8830_GBSR_LP_1000BT_HD   0x0400

Definition at line 287 of file lan8830_driver.h.

◆ LAN8830_GBSR_MS_CONF_FAULT

#define LAN8830_GBSR_MS_CONF_FAULT   0x8000

Definition at line 282 of file lan8830_driver.h.

◆ LAN8830_GBSR_MS_CONF_RES

#define LAN8830_GBSR_MS_CONF_RES   0x4000

Definition at line 283 of file lan8830_driver.h.

◆ LAN8830_GBSR_REMOTE_RECEIVER_STATUS

#define LAN8830_GBSR_REMOTE_RECEIVER_STATUS   0x1000

Definition at line 285 of file lan8830_driver.h.

◆ LAN8830_GPIO_BUF

#define LAN8830_GPIO_BUF   0x02, 0x82

Definition at line 145 of file lan8830_driver.h.

◆ LAN8830_GPIO_DATA

#define LAN8830_GPIO_DATA   0x02, 0x85

Definition at line 148 of file lan8830_driver.h.

◆ LAN8830_GPIO_DATA_SEL1

#define LAN8830_GPIO_DATA_SEL1   0x02, 0x83

Definition at line 146 of file lan8830_driver.h.

◆ LAN8830_GPIO_DATA_SEL2

#define LAN8830_GPIO_DATA_SEL2   0x02, 0x84

Definition at line 147 of file lan8830_driver.h.

◆ LAN8830_GPIO_DIR

#define LAN8830_GPIO_DIR   0x02, 0x81

Definition at line 144 of file lan8830_driver.h.

◆ LAN8830_GPIO_EN

#define LAN8830_GPIO_EN   0x02, 0x80

Definition at line 143 of file lan8830_driver.h.

◆ LAN8830_GPIO_INT_EN

#define LAN8830_GPIO_INT_EN   0x02, 0x87

Definition at line 150 of file lan8830_driver.h.

◆ LAN8830_GPIO_INT_POL

#define LAN8830_GPIO_INT_POL   0x02, 0x88

Definition at line 151 of file lan8830_driver.h.

◆ LAN8830_GPIO_INT_STS

#define LAN8830_GPIO_INT_STS   0x02, 0x86

Definition at line 149 of file lan8830_driver.h.

◆ LAN8830_ISR

#define LAN8830_ISR   0x1B

Definition at line 67 of file lan8830_driver.h.

◆ LAN8830_ISR_ADC_FIFO_ERROR

#define LAN8830_ISR_ADC_FIFO_ERROR   0x0002

Definition at line 432 of file lan8830_driver.h.

◆ LAN8830_ISR_ENERGY_DETECT

#define LAN8830_ISR_ENERGY_DETECT   0x0400

Definition at line 424 of file lan8830_driver.h.

◆ LAN8830_ISR_ENERGY_NOT_DETECT

#define LAN8830_ISR_ENERGY_NOT_DETECT   0x0800

Definition at line 423 of file lan8830_driver.h.

◆ LAN8830_ISR_GPIO

#define LAN8830_ISR_GPIO   0x0100

Definition at line 425 of file lan8830_driver.h.

◆ LAN8830_ISR_JABBER

#define LAN8830_ISR_JABBER   0x0080

Definition at line 426 of file lan8830_driver.h.

◆ LAN8830_ISR_LINK_DOWN

#define LAN8830_ISR_LINK_DOWN   0x0004

Definition at line 431 of file lan8830_driver.h.

◆ LAN8830_ISR_LINK_UP

#define LAN8830_ISR_LINK_UP   0x0001

Definition at line 433 of file lan8830_driver.h.

◆ LAN8830_ISR_LP_ACK

#define LAN8830_ISR_LP_ACK   0x0008

Definition at line 430 of file lan8830_driver.h.

◆ LAN8830_ISR_PAGE_RECEIVED

#define LAN8830_ISR_PAGE_RECEIVED   0x0020

Definition at line 428 of file lan8830_driver.h.

◆ LAN8830_ISR_PAR_DETECT_FAULT

#define LAN8830_ISR_PAR_DETECT_FAULT   0x0010

Definition at line 429 of file lan8830_driver.h.

◆ LAN8830_ISR_RECEIVE_ERROR

#define LAN8830_ISR_RECEIVE_ERROR   0x0040

Definition at line 427 of file lan8830_driver.h.

◆ LAN8830_LDO_CTRL

#define LAN8830_LDO_CTRL   0x1C, 0x0E

Definition at line 174 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR

#define LAN8830_LED_BEHAVIOR   0x17

Definition at line 64 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_ACT_OUT_SEL

#define LAN8830_LED_BEHAVIOR_LED_ACT_OUT_SEL   0x4000

Definition at line 386 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_BLINK_RATE

#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE   0x0C00

Definition at line 388 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_10HZ

#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_10HZ   0x0800

Definition at line 391 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_20HZ

#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_20HZ   0x0C00

Definition at line 392 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ

#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ   0x0000

Definition at line 389 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_5HZ

#define LAN8830_LED_BEHAVIOR_LED_BLINK_RATE_5HZ   0x0400

Definition at line 390 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS

#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS   0x000F

Definition at line 398 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1

#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1   0x0001

Definition at line 402 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2

#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2   0x0002

Definition at line 401 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED3

#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED3   0x0004

Definition at line 400 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED4

#define LAN8830_LED_BEHAVIOR_LED_COMBINATION_DIS_LED4   0x0008

Definition at line 399 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN

#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN   0x01E0

Definition at line 393 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1

#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1   0x0020

Definition at line 397 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2

#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2   0x0040

Definition at line 396 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED3

#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED3   0x0080

Definition at line 395 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED4

#define LAN8830_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED4   0x0100

Definition at line 394 of file lan8830_driver.h.

◆ LAN8830_LED_BEHAVIOR_LED_PULSING_EN

#define LAN8830_LED_BEHAVIOR_LED_PULSING_EN   0x1000

Definition at line 387 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL

#define LAN8830_LED_MODE_SEL   0x16

Definition at line 63 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG

#define LAN8830_LED_MODE_SEL_LED1_CONFIG   0x000F

Definition at line 370 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_ACT   0x000A

Definition at line 380 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_AN_FAULT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_AN_FAULT   0x000C

Definition at line 381 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_COL

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_COL   0x0009

Definition at line 379 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_DUPLEX_COL

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_DUPLEX_COL   0x0008

Definition at line 378 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_1000_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_1000_ACT   0x0001

Definition at line 372 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_100_1000_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_100_1000_ACT   0x0004

Definition at line 375 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_100_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_100_ACT   0x0002

Definition at line 373 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_1000_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_1000_ACT   0x0005

Definition at line 376 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_100_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_100_ACT   0x0006

Definition at line 377 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_10_ACT   0x0003

Definition at line 374 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_ACT

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_LINK_ACT   0x0000

Definition at line 371 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_OFF

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_OFF   0x000E

Definition at line 382 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED1_CONFIG_ON

#define LAN8830_LED_MODE_SEL_LED1_CONFIG_ON   0x000F

Definition at line 383 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG

#define LAN8830_LED_MODE_SEL_LED2_CONFIG   0x00F0

Definition at line 356 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_ACT   0x00A0

Definition at line 366 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_AN_FAULT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_AN_FAULT   0x00C0

Definition at line 367 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_COL

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_COL   0x0090

Definition at line 365 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_DUPLEX_COL

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_DUPLEX_COL   0x0080

Definition at line 364 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_1000_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_1000_ACT   0x0010

Definition at line 358 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_100_1000_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_100_1000_ACT   0x0040

Definition at line 361 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_100_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_100_ACT   0x0020

Definition at line 359 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_1000_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_1000_ACT   0x0050

Definition at line 362 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_100_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_100_ACT   0x0060

Definition at line 363 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_10_ACT   0x0030

Definition at line 360 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_ACT

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_LINK_ACT   0x0000

Definition at line 357 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_OFF

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_OFF   0x00E0

Definition at line 368 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED2_CONFIG_ON

#define LAN8830_LED_MODE_SEL_LED2_CONFIG_ON   0x00F0

Definition at line 369 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG

#define LAN8830_LED_MODE_SEL_LED3_CONFIG   0x0F00

Definition at line 342 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_ACT   0x0A00

Definition at line 352 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_AN_FAULT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_AN_FAULT   0x0C00

Definition at line 353 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_COL

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_COL   0x0900

Definition at line 351 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_DUPLEX_COL

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_DUPLEX_COL   0x0800

Definition at line 350 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_1000_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_1000_ACT   0x0100

Definition at line 344 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_100_1000_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_100_1000_ACT   0x0400

Definition at line 347 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_100_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_100_ACT   0x0200

Definition at line 345 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_1000_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_1000_ACT   0x0500

Definition at line 348 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_100_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_100_ACT   0x0600

Definition at line 349 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_10_ACT   0x0300

Definition at line 346 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_ACT

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_LINK_ACT   0x0000

Definition at line 343 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_OFF

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_OFF   0x0E00

Definition at line 354 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED3_CONFIG_ON

#define LAN8830_LED_MODE_SEL_LED3_CONFIG_ON   0x0F00

Definition at line 355 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG

#define LAN8830_LED_MODE_SEL_LED4_CONFIG   0xF000

Definition at line 328 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_ACT   0xA000

Definition at line 338 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_AN_FAULT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_AN_FAULT   0xC000

Definition at line 339 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_COL

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_COL   0x9000

Definition at line 337 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_DUPLEX_COL

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_DUPLEX_COL   0x8000

Definition at line 336 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_1000_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_1000_ACT   0x1000

Definition at line 330 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_100_1000_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_100_1000_ACT   0x4000

Definition at line 333 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_100_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_100_ACT   0x2000

Definition at line 331 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_1000_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_1000_ACT   0x5000

Definition at line 334 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_100_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_100_ACT   0x6000

Definition at line 335 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_10_ACT   0x3000

Definition at line 332 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_ACT

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_LINK_ACT   0x0000

Definition at line 329 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_OFF

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_OFF   0xE000

Definition at line 340 of file lan8830_driver.h.

◆ LAN8830_LED_MODE_SEL_LED4_CONFIG_ON

#define LAN8830_LED_MODE_SEL_LED4_CONFIG_ON   0xF000

Definition at line 341 of file lan8830_driver.h.

◆ LAN8830_LEGACY_LED_MODE

#define LAN8830_LEGACY_LED_MODE   0x1A

Definition at line 66 of file lan8830_driver.h.

◆ LAN8830_LEGACY_LED_MODE_KSZ9031_LED_MODE

#define LAN8830_LEGACY_LED_MODE_KSZ9031_LED_MODE   0x4000

Definition at line 420 of file lan8830_driver.h.

◆ LAN8830_LINKMD

#define LAN8830_LINKMD   0x12

Definition at line 60 of file lan8830_driver.h.

◆ LAN8830_LINKMD_FAULT_DATA

#define LAN8830_LINKMD_FAULT_DATA   0x00FF

Definition at line 321 of file lan8830_driver.h.

◆ LAN8830_LINKMD_PAIR

#define LAN8830_LINKMD_PAIR   0x3000

Definition at line 310 of file lan8830_driver.h.

◆ LAN8830_LINKMD_PAIR_A

#define LAN8830_LINKMD_PAIR_A   0x0000

Definition at line 311 of file lan8830_driver.h.

◆ LAN8830_LINKMD_PAIR_B

#define LAN8830_LINKMD_PAIR_B   0x1000

Definition at line 312 of file lan8830_driver.h.

◆ LAN8830_LINKMD_PAIR_C

#define LAN8830_LINKMD_PAIR_C   0x2000

Definition at line 313 of file lan8830_driver.h.

◆ LAN8830_LINKMD_PAIR_D

#define LAN8830_LINKMD_PAIR_D   0x3000

Definition at line 314 of file lan8830_driver.h.

◆ LAN8830_LINKMD_SEL

#define LAN8830_LINKMD_SEL   0x0C00

Definition at line 315 of file lan8830_driver.h.

◆ LAN8830_LINKMD_STATUS

#define LAN8830_LINKMD_STATUS   0x0300

Definition at line 316 of file lan8830_driver.h.

◆ LAN8830_LINKMD_STATUS_NORMAL

#define LAN8830_LINKMD_STATUS_NORMAL   0x0000

Definition at line 317 of file lan8830_driver.h.

◆ LAN8830_LINKMD_STATUS_OPEN

#define LAN8830_LINKMD_STATUS_OPEN   0x0100

Definition at line 318 of file lan8830_driver.h.

◆ LAN8830_LINKMD_STATUS_SHORT

#define LAN8830_LINKMD_STATUS_SHORT   0x0200

Definition at line 319 of file lan8830_driver.h.

◆ LAN8830_LINKMD_STATUS_TEST_FAILED

#define LAN8830_LINKMD_STATUS_TEST_FAILED   0x0300

Definition at line 320 of file lan8830_driver.h.

◆ LAN8830_LINKMD_TEST_EN

#define LAN8830_LINKMD_TEST_EN   0x8000

Definition at line 308 of file lan8830_driver.h.

◆ LAN8830_LINKMD_TX_DIS

#define LAN8830_LINKMD_TX_DIS   0x4000

Definition at line 309 of file lan8830_driver.h.

◆ LAN8830_MEAN_SLICER_ERROR

#define LAN8830_MEAN_SLICER_ERROR   0x01, 0xE1

Definition at line 74 of file lan8830_driver.h.

◆ LAN8830_MMDAADR

#define LAN8830_MMDAADR   0x0E

Definition at line 57 of file lan8830_driver.h.

◆ LAN8830_MMDACR

#define LAN8830_MMDACR   0x0D

Definition at line 56 of file lan8830_driver.h.

◆ LAN8830_MMDACR_DEVAD

#define LAN8830_MMDACR_DEVAD   0x001F

Definition at line 296 of file lan8830_driver.h.

◆ LAN8830_MMDACR_FUNC

#define LAN8830_MMDACR_FUNC   0xC000

Definition at line 291 of file lan8830_driver.h.

◆ LAN8830_MMDACR_FUNC_ADDR

#define LAN8830_MMDACR_FUNC_ADDR   0x0000

Definition at line 292 of file lan8830_driver.h.

◆ LAN8830_MMDACR_FUNC_DATA_NO_POST_INC

#define LAN8830_MMDACR_FUNC_DATA_NO_POST_INC   0x4000

Definition at line 293 of file lan8830_driver.h.

◆ LAN8830_MMDACR_FUNC_DATA_POST_INC_RW

#define LAN8830_MMDACR_FUNC_DATA_POST_INC_RW   0x8000

Definition at line 294 of file lan8830_driver.h.

◆ LAN8830_MMDACR_FUNC_DATA_POST_INC_W

#define LAN8830_MMDACR_FUNC_DATA_POST_INC_W   0xC000

Definition at line 295 of file lan8830_driver.h.

◆ LAN8830_OP_MODE_STRAP

#define LAN8830_OP_MODE_STRAP   0x02, 0x03

Definition at line 85 of file lan8830_driver.h.

◆ LAN8830_OP_MODE_STRAP_OVERRIDE

#define LAN8830_OP_MODE_STRAP_OVERRIDE   0x02, 0x02

Definition at line 84 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL

#define LAN8830_OUT_CTRL   0x19

Definition at line 65 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_INT_BUFFER_TYPE

#define LAN8830_OUT_CTRL_INT_BUFFER_TYPE   0x4000

Definition at line 406 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_BUFFER_TYPE

#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE   0x3F00

Definition at line 407 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED1

#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED1   0x0100

Definition at line 411 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED2

#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED2   0x0200

Definition at line 410 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED3

#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED3   0x0400

Definition at line 409 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED4

#define LAN8830_OUT_CTRL_LED_BUFFER_TYPE_LED4   0x0800

Definition at line 408 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_POLARITY

#define LAN8830_OUT_CTRL_LED_POLARITY   0x003F

Definition at line 413 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_POLARITY_LED1

#define LAN8830_OUT_CTRL_LED_POLARITY_LED1   0x0001

Definition at line 417 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_POLARITY_LED2

#define LAN8830_OUT_CTRL_LED_POLARITY_LED2   0x0002

Definition at line 416 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_POLARITY_LED3

#define LAN8830_OUT_CTRL_LED_POLARITY_LED3   0x0004

Definition at line 415 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_LED_POLARITY_LED4

#define LAN8830_OUT_CTRL_LED_POLARITY_LED4   0x0008

Definition at line 414 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_MDIO_BUFFER_TYPE

#define LAN8830_OUT_CTRL_MDIO_BUFFER_TYPE   0x8000

Definition at line 405 of file lan8830_driver.h.

◆ LAN8830_OUT_CTRL_PME_POLARITY

#define LAN8830_OUT_CTRL_PME_POLARITY   0x0080

Definition at line 412 of file lan8830_driver.h.

◆ LAN8830_PCS_CTRL1

#define LAN8830_PCS_CTRL1   0x03, 0x00

Definition at line 152 of file lan8830_driver.h.

◆ LAN8830_PCS_STAT1

#define LAN8830_PCS_STAT1   0x03, 0x01

Definition at line 153 of file lan8830_driver.h.

◆ LAN8830_PHY_ADDR

#define LAN8830_PHY_ADDR   3

Definition at line 39 of file lan8830_driver.h.

◆ LAN8830_PHYCON

#define LAN8830_PHYCON   0x1F

Definition at line 71 of file lan8830_driver.h.

◆ LAN8830_PHYCON_1000BT_MS_STATUS

#define LAN8830_PHYCON_1000BT_MS_STATUS   0x0004

Definition at line 456 of file lan8830_driver.h.

◆ LAN8830_PHYCON_DUPLEX_STATUS

#define LAN8830_PHYCON_DUPLEX_STATUS   0x0008

Definition at line 455 of file lan8830_driver.h.

◆ LAN8830_PHYCON_INT_POL_INVERT

#define LAN8830_PHYCON_INT_POL_INVERT   0x4000

Definition at line 449 of file lan8830_driver.h.

◆ LAN8830_PHYCON_JABBER_EN

#define LAN8830_PHYCON_JABBER_EN   0x0200

Definition at line 450 of file lan8830_driver.h.

◆ LAN8830_PHYCON_LINK_STATUS_CHECK_FAIL

#define LAN8830_PHYCON_LINK_STATUS_CHECK_FAIL   0x0001

Definition at line 458 of file lan8830_driver.h.

◆ LAN8830_PHYCON_SOFT_RESET

#define LAN8830_PHYCON_SOFT_RESET   0x0002

Definition at line 457 of file lan8830_driver.h.

◆ LAN8830_PHYCON_SPEED_1000BT

#define LAN8830_PHYCON_SPEED_1000BT   0x0040

Definition at line 452 of file lan8830_driver.h.

◆ LAN8830_PHYCON_SPEED_100BTX

#define LAN8830_PHYCON_SPEED_100BTX   0x0020

Definition at line 453 of file lan8830_driver.h.

◆ LAN8830_PHYCON_SPEED_10BT

#define LAN8830_PHYCON_SPEED_10BT   0x0010

Definition at line 454 of file lan8830_driver.h.

◆ LAN8830_PHYCON_SQE_TEST_EN

#define LAN8830_PHYCON_SQE_TEST_EN   0x0100

Definition at line 451 of file lan8830_driver.h.

◆ LAN8830_PHYID1

#define LAN8830_PHYID1   0x02

Definition at line 47 of file lan8830_driver.h.

◆ LAN8830_PHYID1_PHY_ID_MSB

#define LAN8830_PHYID1_PHY_ID_MSB   0xFFFF

Definition at line 210 of file lan8830_driver.h.

◆ LAN8830_PHYID1_PHY_ID_MSB_DEFAULT

#define LAN8830_PHYID1_PHY_ID_MSB_DEFAULT   0x0022

Definition at line 211 of file lan8830_driver.h.

◆ LAN8830_PHYID2

#define LAN8830_PHYID2   0x03

Definition at line 48 of file lan8830_driver.h.

◆ LAN8830_PHYID2_MODEL_NUM

#define LAN8830_PHYID2_MODEL_NUM   0x03F0

Definition at line 216 of file lan8830_driver.h.

◆ LAN8830_PHYID2_MODEL_NUM_DEFAULT

#define LAN8830_PHYID2_MODEL_NUM_DEFAULT   0x0250

Definition at line 217 of file lan8830_driver.h.

◆ LAN8830_PHYID2_PHY_ID_LSB

#define LAN8830_PHYID2_PHY_ID_LSB   0xFC00

Definition at line 214 of file lan8830_driver.h.

◆ LAN8830_PHYID2_PHY_ID_LSB_DEFAULT

#define LAN8830_PHYID2_PHY_ID_LSB_DEFAULT   0x1400

Definition at line 215 of file lan8830_driver.h.

◆ LAN8830_PHYID2_REVISION_NUM

#define LAN8830_PHYID2_REVISION_NUM   0x000F

Definition at line 218 of file lan8830_driver.h.

◆ LAN8830_RGMII_RX_DATA_PAD_SKEW

#define LAN8830_RGMII_RX_DATA_PAD_SKEW   0x02, 0x05

Definition at line 87 of file lan8830_driver.h.

◆ LAN8830_RGMII_TX_DATA_PAD_SKEW

#define LAN8830_RGMII_TX_DATA_PAD_SKEW   0x02, 0x06

Definition at line 88 of file lan8830_driver.h.

◆ LAN8830_RLB

#define LAN8830_RLB   0x11

Definition at line 59 of file lan8830_driver.h.

◆ LAN8830_RLB_REMOTE_LOOPBACK

#define LAN8830_RLB_REMOTE_LOOPBACK   0x0100

Definition at line 305 of file lan8830_driver.h.

◆ LAN8830_RX_DLL_CTRL

#define LAN8830_RX_DLL_CTRL   0x02, 0x4C

Definition at line 140 of file lan8830_driver.h.

◆ LAN8830_RX_DLL_CTRL_BYPASS_RXDLL

#define LAN8830_RX_DLL_CTRL_BYPASS_RXDLL   0x4000

Definition at line 462 of file lan8830_driver.h.

◆ LAN8830_RX_DLL_CTRL_RXDLL_TAP_ADJ

#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_ADJ   0x007F

Definition at line 465 of file lan8830_driver.h.

◆ LAN8830_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT

#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT   0x001B

Definition at line 466 of file lan8830_driver.h.

◆ LAN8830_RX_DLL_CTRL_RXDLL_TAP_SEL

#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_SEL   0x3F80

Definition at line 463 of file lan8830_driver.h.

◆ LAN8830_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT

#define LAN8830_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT   0x0D80

Definition at line 464 of file lan8830_driver.h.

◆ LAN8830_RX_DLL_CTRL_RXDLL_TUNE_DIS

#define LAN8830_RX_DLL_CTRL_RXDLL_TUNE_DIS   0x8000

Definition at line 461 of file lan8830_driver.h.

◆ LAN8830_RXERCTR

#define LAN8830_RXERCTR   0x15

Definition at line 62 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_CORRECT_COUNT_HI

#define LAN8830_SELF_TEST_CORRECT_COUNT_HI   0x02, 0x3D

Definition at line 137 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_CORRECT_COUNT_LO

#define LAN8830_SELF_TEST_CORRECT_COUNT_LO   0x02, 0x3C

Definition at line 136 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_EN

#define LAN8830_SELF_TEST_EN   0x02, 0x0E

Definition at line 95 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_ERROR_COUNT_HI

#define LAN8830_SELF_TEST_ERROR_COUNT_HI   0x02, 0x3F

Definition at line 139 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_ERROR_COUNT_LO

#define LAN8830_SELF_TEST_ERROR_COUNT_LO   0x02, 0x3E

Definition at line 138 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_FRAME_COUNT_EN

#define LAN8830_SELF_TEST_FRAME_COUNT_EN   0x02, 0x0C

Definition at line 93 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_PGEN_EN

#define LAN8830_SELF_TEST_PGEN_EN   0x02, 0x0D

Definition at line 94 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_PKT_COUNT_HI

#define LAN8830_SELF_TEST_PKT_COUNT_HI   0x02, 0x0A

Definition at line 91 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_PKT_COUNT_LO

#define LAN8830_SELF_TEST_PKT_COUNT_LO   0x02, 0x09

Definition at line 90 of file lan8830_driver.h.

◆ LAN8830_SELF_TEST_STAT

#define LAN8830_SELF_TEST_STAT   0x02, 0x0B

Definition at line 92 of file lan8830_driver.h.

◆ LAN8830_SPDC

#define LAN8830_SPDC   0x1D

Definition at line 69 of file lan8830_driver.h.

◆ LAN8830_SPDC_CLK_GATE_OVERRIDE

#define LAN8830_SPDC_CLK_GATE_OVERRIDE   0x0800

Definition at line 440 of file lan8830_driver.h.

◆ LAN8830_SPDC_IO_DC_TEST_EN

#define LAN8830_SPDC_IO_DC_TEST_EN   0x0080

Definition at line 442 of file lan8830_driver.h.

◆ LAN8830_SPDC_PLL_DIS

#define LAN8830_SPDC_PLL_DIS   0x0400

Definition at line 441 of file lan8830_driver.h.

◆ LAN8830_SPDC_VOH

#define LAN8830_SPDC_VOH   0x0040

Definition at line 443 of file lan8830_driver.h.

◆ LAN8830_STRAP_STAT

#define LAN8830_STRAP_STAT   0x02, 0x01

Definition at line 83 of file lan8830_driver.h.

◆ LAN8830_TX_DLL_CTRL

#define LAN8830_TX_DLL_CTRL   0x02, 0x4D

Definition at line 141 of file lan8830_driver.h.

◆ LAN8830_TX_DLL_CTRL_BYPASS_TXDLL

#define LAN8830_TX_DLL_CTRL_BYPASS_TXDLL   0x4000

Definition at line 470 of file lan8830_driver.h.

◆ LAN8830_TX_DLL_CTRL_TXDLL_TAP_ADJ

#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_ADJ   0x007F

Definition at line 473 of file lan8830_driver.h.

◆ LAN8830_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT

#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT   0x001B

Definition at line 474 of file lan8830_driver.h.

◆ LAN8830_TX_DLL_CTRL_TXDLL_TAP_SEL

#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_SEL   0x3F80

Definition at line 471 of file lan8830_driver.h.

◆ LAN8830_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT

#define LAN8830_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT   0x0D80

Definition at line 472 of file lan8830_driver.h.

◆ LAN8830_TX_DLL_CTRL_TXDLL_TUNE_DIS

#define LAN8830_TX_DLL_CTRL_TXDLL_TUNE_DIS   0x8000

Definition at line 469 of file lan8830_driver.h.

◆ LAN8830_WOL_CTRL

#define LAN8830_WOL_CTRL   0x02, 0x10

Definition at line 96 of file lan8830_driver.h.

◆ LAN8830_WOL_CTRL_STAT

#define LAN8830_WOL_CTRL_STAT   0x02, 0x2C

Definition at line 124 of file lan8830_driver.h.

◆ LAN8830_WOL_CUSTOM_PKT_RECEIVE_STAT

#define LAN8830_WOL_CUSTOM_PKT_RECEIVE_STAT   0x02, 0x2D

Definition at line 125 of file lan8830_driver.h.

◆ LAN8830_WOL_DATA_MODULE_STAT

#define LAN8830_WOL_DATA_MODULE_STAT   0x02, 0x2F

Definition at line 127 of file lan8830_driver.h.

◆ LAN8830_WOL_MAC_HI

#define LAN8830_WOL_MAC_HI   0x02, 0x13

Definition at line 99 of file lan8830_driver.h.

◆ LAN8830_WOL_MAC_LO

#define LAN8830_WOL_MAC_LO   0x02, 0x11

Definition at line 97 of file lan8830_driver.h.

◆ LAN8830_WOL_MAC_MI

#define LAN8830_WOL_MAC_MI   0x02, 0x12

Definition at line 98 of file lan8830_driver.h.

◆ LAN8830_WOL_MAGIC_PKT_RECEIVE_STAT

#define LAN8830_WOL_MAGIC_PKT_RECEIVE_STAT   0x02, 0x2E

Definition at line 126 of file lan8830_driver.h.

◆ LAN8830_XTAL_CTRL

#define LAN8830_XTAL_CTRL   0x1C, 0x01

Definition at line 172 of file lan8830_driver.h.

Function Documentation

◆ lan8830DisableIrq()

void lan8830DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 183 of file lan8830_driver.c.

◆ lan8830DumpPhyReg()

void lan8830DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 326 of file lan8830_driver.c.

◆ lan8830EnableIrq()

void lan8830EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 168 of file lan8830_driver.c.

◆ lan8830EventHandler()

void lan8830EventHandler ( NetInterface interface)

LAN8830 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 198 of file lan8830_driver.c.

◆ lan8830Init()

error_t lan8830Init ( NetInterface interface)

LAN8830 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 60 of file lan8830_driver.c.

◆ lan8830InitHook()

void lan8830InitHook ( NetInterface interface)

LAN8830 custom configuration.

Parameters
[in]interfaceUnderlying network interface

Definition at line 113 of file lan8830_driver.c.

◆ lan8830ReadMmdReg()

uint16_t lan8830ReadMmdReg ( NetInterface interface,
uint8_t  devAddr,
uint16_t  regAddr 
)

Read MMD register.

Parameters
[in]interfaceUnderlying network interface
[in]devAddrDevice address
[in]regAddrRegister address
Returns
MMD register value

Definition at line 378 of file lan8830_driver.c.

◆ lan8830ReadPhyReg()

uint16_t lan8830ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

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

Definition at line 300 of file lan8830_driver.c.

◆ lan8830Tick()

void lan8830Tick ( NetInterface interface)

LAN8830 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 130 of file lan8830_driver.c.

◆ lan8830WriteMmdReg()

void lan8830WriteMmdReg ( NetInterface interface,
uint8_t  devAddr,
uint16_t  regAddr,
uint16_t  data 
)

Write MMD register.

Parameters
[in]interfaceUnderlying network interface
[in]devAddrDevice address
[in]regAddrRegister address
[in]dataMMD register value

Definition at line 351 of file lan8830_driver.c.

◆ lan8830WritePhyReg()

void lan8830WritePhyReg ( 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 276 of file lan8830_driver.c.

Variable Documentation

◆ lan8830PhyDriver

const PhyDriver lan8830PhyDriver
extern

LAN8830 Ethernet PHY driver.

Definition at line 44 of file lan8830_driver.c.