lan8841_driver.h File Reference

LAN8841 Gigabit Ethernet PHY driver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define LAN8841_PHY_ADDR   3
 
#define LAN8841_BMCR   0x00
 
#define LAN8841_BMSR   0x01
 
#define LAN8841_PHYID1   0x02
 
#define LAN8841_PHYID2   0x03
 
#define LAN8841_ANAR   0x04
 
#define LAN8841_ANLPAR   0x05
 
#define LAN8841_ANER   0x06
 
#define LAN8841_ANNPTR   0x07
 
#define LAN8841_ANNPRR   0x08
 
#define LAN8841_GBCR   0x09
 
#define LAN8841_GBSR   0x0A
 
#define LAN8841_MMDACR   0x0D
 
#define LAN8841_MMDAADR   0x0E
 
#define LAN8841_GBESR   0x0F
 
#define LAN8841_RLB   0x11
 
#define LAN8841_LINKMD   0x12
 
#define LAN8841_DPMAPCSS   0x13
 
#define LAN8841_RXERCTR   0x15
 
#define LAN8841_LED_MODE_SEL   0x16
 
#define LAN8841_LED_BEHAVIOR   0x17
 
#define LAN8841_OUT_CTRL   0x19
 
#define LAN8841_LEGACY_LED_MODE   0x1A
 
#define LAN8841_ISR   0x1B
 
#define LAN8841_AUTOMDI   0x1C
 
#define LAN8841_SPDC   0x1D
 
#define LAN8841_EXT_LOOPBACK   0x1E
 
#define LAN8841_PHYCON   0x1F
 
#define LAN8841_MEAN_SLICER_ERROR   0x01, 0x00E1
 
#define LAN8841_DCQ_MEAN_SQUARE_ERROR   0x01, 0x00E2
 
#define LAN8841_DCQ_MEAN_SQUARE_ERROR_WORST_CASE   0x01, 0x00E3
 
#define LAN8841_DCQ_SQI   0x01, 0x00E4
 
#define LAN8841_DCQ_PEAK_MSE   0x01, 0x00E5
 
#define LAN8841_DCQ_CTRL   0x01, 0x00E6
 
#define LAN8841_DCQ_CONFIG   0x01, 0x00E7
 
#define LAN8841_DCQ_SQI_TABLE   0x01, 0x00E8
 
#define LAN8841_COMMON_CTRL   0x02, 0x0000
 
#define LAN8841_STRAP_STAT   0x02, 0x0001
 
#define LAN8841_OP_MODE_STRAP_OVERRIDE   0x02, 0x0002
 
#define LAN8841_OP_MODE_STRAP   0x02, 0x0003
 
#define LAN8841_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW   0x02, 0x0004
 
#define LAN8841_RGMII_RX_DATA_PAD_SKEW   0x02, 0x0005
 
#define LAN8841_RGMII_TX_DATA_PAD_SKEW   0x02, 0x0006
 
#define LAN8841_CLK_PAD_SKEW   0x02, 0x0008
 
#define LAN8841_SELF_TEST_PKT_COUNT_LO   0x02, 0x0009
 
#define LAN8841_SELF_TEST_PKT_COUNT_HI   0x02, 0x000A
 
#define LAN8841_SELF_TEST_STAT   0x02, 0x000B
 
#define LAN8841_SELF_TEST_FRAME_COUNT_EN   0x02, 0x000C
 
#define LAN8841_SELF_TEST_PGEN_EN   0x02, 0x000D
 
#define LAN8841_SELF_TEST_EN   0x02, 0x000E
 
#define LAN8841_WOL_CTRL   0x02, 0x0010
 
#define LAN8841_WOL_MAC_LO   0x02, 0x0011
 
#define LAN8841_WOL_MAC_MI   0x02, 0x0012
 
#define LAN8841_WOL_MAC_HI   0x02, 0x0013
 
#define LAN8841_CUSTOM_PKT0_CRC_LO   0x02, 0x0014
 
#define LAN8841_CUSTOM_PKT0_CRC_HI   0x02, 0x0015
 
#define LAN8841_CUSTOM_PKT1_CRC_LO   0x02, 0x0016
 
#define LAN8841_CUSTOM_PKT1_CRC_HI   0x02, 0x0017
 
#define LAN8841_CUSTOM_PKT2_CRC_LO   0x02, 0x0018
 
#define LAN8841_CUSTOM_PKT2_CRC_HI   0x02, 0x0019
 
#define LAN8841_CUSTOM_PKT3_CRC_LO   0x02, 0x001A
 
#define LAN8841_CUSTOM_PKT3_CRC_HI   0x02, 0x001B
 
#define LAN8841_CUSTOM_PKT0_MASK_LL   0x02, 0x001C
 
#define LAN8841_CUSTOM_PKT0_MASK_LH   0x02, 0x001D
 
#define LAN8841_CUSTOM_PKT0_MASK_HL   0x02, 0x001E
 
#define LAN8841_CUSTOM_PKT0_MASK_HH   0x02, 0x001F
 
#define LAN8841_CUSTOM_PKT1_MASK_LL   0x02, 0x0020
 
#define LAN8841_CUSTOM_PKT1_MASK_LH   0x02, 0x0021
 
#define LAN8841_CUSTOM_PKT1_MASK_HL   0x02, 0x0022
 
#define LAN8841_CUSTOM_PKT1_MASK_HH   0x02, 0x0023
 
#define LAN8841_CUSTOM_PKT2_MASK_LL   0x02, 0x0024
 
#define LAN8841_CUSTOM_PKT2_MASK_LH   0x02, 0x0025
 
#define LAN8841_CUSTOM_PKT2_MASK_HL   0x02, 0x0026
 
#define LAN8841_CUSTOM_PKT2_MASK_HH   0x02, 0x0027
 
#define LAN8841_CUSTOM_PKT3_MASK_LL   0x02, 0x0028
 
#define LAN8841_CUSTOM_PKT3_MASK_LH   0x02, 0x0029
 
#define LAN8841_CUSTOM_PKT3_MASK_HL   0x02, 0x002A
 
#define LAN8841_CUSTOM_PKT3_MASK_HH   0x02, 0x002B
 
#define LAN8841_WOL_CTRL_STAT   0x02, 0x002C
 
#define LAN8841_WOL_CUSTOM_PKT_RECEIVE_STAT   0x02, 0x002D
 
#define LAN8841_WOL_MAGIC_PKT_RECEIVE_STAT   0x02, 0x002E
 
#define LAN8841_WOL_DATA_MODULE_STAT   0x02, 0x002F
 
#define LAN8841_CUSTOM_PKT0_RCVD_CRC_L   0x02, 0x0030
 
#define LAN8841_CUSTOM_PKT0_RCVD_CRC_H   0x02, 0x0031
 
#define LAN8841_CUSTOM_PKT1_RCVD_CRC_L   0x02, 0x0032
 
#define LAN8841_CUSTOM_PKT1_RCVD_CRC_H   0x02, 0x0033
 
#define LAN8841_CUSTOM_PKT2_RCVD_CRC_L   0x02, 0x0034
 
#define LAN8841_CUSTOM_PKT2_RCVD_CRC_H   0x02, 0x0035
 
#define LAN8841_CUSTOM_PKT3_RCVD_CRC_L   0x02, 0x0036
 
#define LAN8841_CUSTOM_PKT3_RCVD_CRC_H   0x02, 0x0037
 
#define LAN8841_SELF_TEST_CORRECT_COUNT_LO   0x02, 0x003C
 
#define LAN8841_SELF_TEST_CORRECT_COUNT_HI   0x02, 0x003D
 
#define LAN8841_SELF_TEST_ERROR_COUNT_LO   0x02, 0x003E
 
#define LAN8841_SELF_TEST_ERROR_COUNT_HI   0x02, 0x003F
 
#define LAN8841_RX_DLL_CTRL   0x02, 0x004C
 
#define LAN8841_TX_DLL_CTRL   0x02, 0x004D
 
#define LAN8841_DRIVING_STRENGTH   0x02, 0x006F
 
#define LAN8841_GPIO_EN   0x02, 0x0080
 
#define LAN8841_GPIO_DIR   0x02, 0x0081
 
#define LAN8841_GPIO_BUF   0x02, 0x0082
 
#define LAN8841_GPIO_DATA_SEL1   0x02, 0x0083
 
#define LAN8841_GPIO_DATA_SEL2   0x02, 0x0084
 
#define LAN8841_GPIO_DATA   0x02, 0x0085
 
#define LAN8841_GPIO_INT_STS   0x02, 0x0086
 
#define LAN8841_GPIO_INT_EN   0x02, 0x0087
 
#define LAN8841_GPIO_INT_POL   0x02, 0x0088
 
#define LAN8841_PTP_CMD_CTL   0x02, 0x0100
 
#define LAN8841_PTP_GENERAL_CONFIG   0x02, 0x0101
 
#define LAN8841_PTP_REF_CLK_CFG   0x02, 0x0102
 
#define LAN8841_PTP_INT_STS   0x02, 0x0103
 
#define LAN8841_PTP_INT_EN   0x02, 0x0104
 
#define LAN8841_PTP_MOD_ERR   0x02, 0x0105
 
#define LAN8841_PTP_LTC_SET_SEC_HI   0x02, 0x0106
 
#define LAN8841_PTP_LTC_SET_SEC_MID   0x02, 0x0107
 
#define LAN8841_PTP_LTC_SET_SEC_LO   0x02, 0x0108
 
#define LAN8841_PTP_LTC_SET_NS_HI   0x02, 0x0109
 
#define LAN8841_PTP_LTC_SET_NS_LO   0x02, 0x010A
 
#define LAN8841_PTP_LTC_SET_SUBNS_HI   0x02, 0x010B
 
#define LAN8841_PTP_LTC_SET_SUBNS_LO   0x02, 0x010C
 
#define LAN8841_PTP_LTC_RATE_ADJ_HI   0x02, 0x010D
 
#define LAN8841_PTP_LTC_RATE_ADJ_LO   0x02, 0x010E
 
#define LAN8841_PTP_LTC_TEMP_RATE_ADJ_HI   0x02, 0x010F
 
#define LAN8841_PTP_LTC_TEMP_RATE_ADJ_LO   0x02, 0x0110
 
#define LAN8841_PTP_LTC_TEMP_RATE_DURATION_HI   0x02, 0x0111
 
#define LAN8841_PTP_LTC_TEMP_RATE_DURATION_LO   0x02, 0x0112
 
#define LAN8841_PTP_LTC_STEP_ADJ_HI   0x02, 0x0113
 
#define LAN8841_PTP_LTC_STEP_ADJ_LO   0x02, 0x0114
 
#define LAN8841_PTP_LTC_EXT_ADJ_CFG   0x02, 0x0115
 
#define LAN8841_PTP_LTC_TARGET_SEC_HI_A   0x02, 0x0116
 
#define LAN8841_PTP_LTC_TARGET_SEC_LO_A   0x02, 0x0117
 
#define LAN8841_PTP_LTC_TARGET_NS_HI_A   0x02, 0x0118
 
#define LAN8841_PTP_LTC_TARGET_NS_LO_A   0x02, 0x0119
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_HI_A   0x02, 0x011A
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_LO_A   0x02, 0x011B
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_HI_A   0x02, 0x011C
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_LO_A   0x02, 0x011D
 
#define LAN8841_PTP_LTC_TARGET_ACT_NS_HI_A   0x02, 0x011E
 
#define LAN8841_PTP_LTC_TARGET_ACT_NS_LO_A   0x02, 0x011F
 
#define LAN8841_PTP_LTC_TARGET_SEC_HI_B   0x02, 0x0120
 
#define LAN8841_PTP_LTC_TARGET_SEC_LO_B   0x02, 0x0121
 
#define LAN8841_PTP_LTC_TARGET_NS_HI_B   0x02, 0x0122
 
#define LAN8841_PTP_LTC_TARGET_NS_LO_B   0x02, 0x0123
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_HI_B   0x02, 0x0124
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_LO_B   0x02, 0x0125
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_HI_B   0x02, 0x0126
 
#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_LO_B   0x02, 0x0127
 
#define LAN8841_PTP_LTC_TARGET_ACT_NS_HI_B   0x02, 0x0128
 
#define LAN8841_PTP_LTC_TARGET_ACT_NS_LO_B   0x02, 0x0129
 
#define LAN8841_PTP_RX_USER_MAC_HI   0x02, 0x012A
 
#define LAN8841_PTP_RX_USER_MAC_MID   0x02, 0x012B
 
#define LAN8841_PTP_RX_USER_MAC_LO   0x02, 0x012C
 
#define LAN8841_PTP_RX_USER_IP_ADDR0   0x02, 0x012D
 
#define LAN8841_PTP_RX_USER_IP_ADDR1   0x02, 0x012E
 
#define LAN8841_PTP_RX_USER_IP_ADDR2   0x02, 0x012F
 
#define LAN8841_PTP_RX_USER_IP_ADDR3   0x02, 0x0130
 
#define LAN8841_PTP_RX_USER_IP_ADDR4   0x02, 0x0131
 
#define LAN8841_PTP_RX_USER_IP_ADDR5   0x02, 0x0132
 
#define LAN8841_PTP_RX_USER_IP_ADDR6   0x02, 0x0133
 
#define LAN8841_PTP_RX_USER_IP_ADDR7   0x02, 0x0134
 
#define LAN8841_PTP_RX_USER_IP_MASK0   0x02, 0x0135
 
#define LAN8841_PTP_RX_USER_IP_MASK1   0x02, 0x0136
 
#define LAN8841_PTP_RX_USER_IP_MASK2   0x02, 0x0137
 
#define LAN8841_PTP_RX_USER_IP_MASK3   0x02, 0x0138
 
#define LAN8841_PTP_RX_USER_IP_MASK4   0x02, 0x0139
 
#define LAN8841_PTP_RX_USER_IP_MASK5   0x02, 0x013A
 
#define LAN8841_PTP_RX_USER_IP_MASK6   0x02, 0x013B
 
#define LAN8841_PTP_RX_USER_IP_MASK7   0x02, 0x013C
 
#define LAN8841_VLAN_TYPE_ID   0x02, 0x013D
 
#define LAN8841_VLAN1_TYPE_ID   0x02, 0x013E
 
#define LAN8841_VLAN1_ID_MASK   0x02, 0x013F
 
#define LAN8841_VLAN1_VID_RANGE_UP   0x02, 0x0140
 
#define LAN8841_VLAN1_VID_RANGE_LO   0x02, 0x0141
 
#define LAN8841_VLAN2_TYPE_ID   0x02, 0x0142
 
#define LAN8841_VLAN2_ID_MASK   0x02, 0x0143
 
#define LAN8841_VLAN2_VID_RANGE_UP   0x02, 0x0144
 
#define LAN8841_VLAN2_VID_RANGE_LO   0x02, 0x0145
 
#define LAN8841_LLC_TYPE_ID   0x02, 0x0146
 
#define LAN8841_PTP_GPIO_SEL   0x02, 0x0147
 
#define LAN8841_PTP_RX_LATENCY_10   0x02, 0x0148
 
#define LAN8841_PTP_TX_LATENCY_10   0x02, 0x0149
 
#define LAN8841_PTP_RX_LATENCY_100   0x02, 0x014A
 
#define LAN8841_PTP_TX_LATENCY_100   0x02, 0x014B
 
#define LAN8841_PTP_RX_LATENCY_1000   0x02, 0x014C
 
#define LAN8841_PTP_TX_LATENCY_1000   0x02, 0x014D
 
#define LAN8841_PTP_ASYM_DLY_HI   0x02, 0x014E
 
#define LAN8841_PTP_ASYM_DLY_LO   0x02, 0x014F
 
#define LAN8841_PTP_PEERDLY_HI   0x02, 0x0150
 
#define LAN8841_PTP_PEERDLY_LO   0x02, 0x0151
 
#define LAN8841_PTP_CAP_INFO   0x02, 0x0152
 
#define LAN8841_PTP_TX_USER_MAC_HI   0x02, 0x0153
 
#define LAN8841_PTP_TX_USER_MAC_MID   0x02, 0x0154
 
#define LAN8841_PTP_TX_USER_MAC_LO   0x02, 0x0155
 
#define LAN8841_PTP_TX_USER_IP_ADDR0   0x02, 0x0156
 
#define LAN8841_PTP_TX_USER_IP_ADDR1   0x02, 0x0157
 
#define LAN8841_PTP_TX_USER_IP_ADDR2   0x02, 0x0158
 
#define LAN8841_PTP_TX_USER_IP_ADDR3   0x02, 0x0159
 
#define LAN8841_PTP_TX_USER_IP_ADDR4   0x02, 0x015A
 
#define LAN8841_PTP_TX_USER_IP_ADDR5   0x02, 0x015B
 
#define LAN8841_PTP_TX_USER_IP_ADDR6   0x02, 0x015C
 
#define LAN8841_PTP_TX_USER_IP_ADDR7   0x02, 0x015D
 
#define LAN8841_PTP_TX_USER_IP_MASK0   0x02, 0x015E
 
#define LAN8841_PTP_TX_USER_IP_MASK1   0x02, 0x015F
 
#define LAN8841_PTP_TX_USER_IP_MASK2   0x02, 0x0160
 
#define LAN8841_PTP_TX_USER_IP_MASK3   0x02, 0x0161
 
#define LAN8841_PTP_TX_USER_IP_MASK4   0x02, 0x0162
 
#define LAN8841_PTP_TX_USER_IP_MASK5   0x02, 0x0163
 
#define LAN8841_PTP_TX_USER_IP_MASK6   0x02, 0x0164
 
#define LAN8841_PTP_TX_USER_IP_MASK7   0x02, 0x0165
 
#define LAN8841_PTP_LTC_RD_SEC_HI   0x02, 0x0166
 
#define LAN8841_PTP_LTC_RD_SEC_MID   0x02, 0x0167
 
#define LAN8841_PTP_LTC_RD_SEC_LO   0x02, 0x0168
 
#define LAN8841_PTP_LTC_RD_NS_HI   0x02, 0x0169
 
#define LAN8841_PTP_LTC_RD_NS_LO   0x02, 0x016A
 
#define LAN8841_PTP_LTC_RD_SUBNS_HI   0x02, 0x016B
 
#define LAN8841_PTP_LTC_RD_SUBNS_LO   0x02, 0x016C
 
#define LAN8841_PTP_REV   0x02, 0x016D
 
#define LAN8841_PTP_SPARE   0x02, 0x016E
 
#define LAN8841_PTP_RX_PARSE_CONFIG   0x02, 0x0170
 
#define LAN8841_PTP_RX_PARSE_VLAN_CONFIG   0x02, 0x0171
 
#define LAN8841_PTP_RX_PARSE_L2_ADDR_EN   0x02, 0x0172
 
#define LAN8841_PTP_RX_PARSE_IP_ADDR_EN   0x02, 0x0173
 
#define LAN8841_PTP_RX_PARSE_UDP_SRC_PORT   0x02, 0x0174
 
#define LAN8841_PTP_RX_PARSE_UDP_DEST_PORT   0x02, 0x0175
 
#define LAN8841_PTP_RX_VERSION   0x02, 0x0176
 
#define LAN8841_PTP_RX_DOMAIN_DOMAIN_LO   0x02, 0x0177
 
#define LAN8841_PTP_RX_DOMAIN_MASK_DOMAIN_UP   0x02, 0x0178
 
#define LAN8841_PTP_RX_SDOID_SDOID_LO   0x02, 0x0179
 
#define LAN8841_PTP_RX_SDOID_MASK_SDOID_UP   0x02, 0x017A
 
#define LAN8841_PTP_RX_TIMESTAMP_EN   0x02, 0x017B
 
#define LAN8841_PTP_RX_TIMESTAMP_CONFIG   0x02, 0x017C
 
#define LAN8841_PTP_RX_MOD   0x02, 0x017D
 
#define LAN8841_PTP_RX_RSVD_BYTE_CFG   0x02, 0x017E
 
#define LAN8841_PTP_RX_TAIL_TAG   0x02, 0x017F
 
#define LAN8841_PTP_RX_CF_MOD_EN   0x02, 0x0180
 
#define LAN8841_PTP_RX_CF_CFG   0x02, 0x0181
 
#define LAN8841_PTP_RX_INGRESS_NS_HI   0x02, 0x0182
 
#define LAN8841_PTP_RX_INGRESS_NS_LO   0x02, 0x0183
 
#define LAN8841_PTP_RX_INGRESS_SEC_HI   0x02, 0x0184
 
#define LAN8841_PTP_RX_INGRESS_SEC_LO   0x02, 0x0185
 
#define LAN8841_PTP_RX_MSG_HEADER1   0x02, 0x0186
 
#define LAN8841_PTP_RX_MSG_HEADER2   0x02, 0x0187
 
#define LAN8841_PTP_RX_PDREQ_SEC_HI   0x02, 0x0188
 
#define LAN8841_PTP_RX_PDREQ_SEC_MID   0x02, 0x0189
 
#define LAN8841_PTP_RX_PDREQ_SEC_LOW   0x02, 0x018A
 
#define LAN8841_PTP_RX_PDREQ_NS_HI   0x02, 0x018B
 
#define LAN8841_PTP_RX_PDREQ_NS_LO   0x02, 0x018C
 
#define LAN8841_PTP_RX_RAW_TS_SEC   0x02, 0x018D
 
#define LAN8841_PTP_RX_RAW_TS_NS_HI   0x02, 0x018E
 
#define LAN8841_PTP_RX_RAW_TS_NS_LO   0x02, 0x018F
 
#define LAN8841_PTP_RX_CHKSUM_DROPPED_CNT_HI   0x02, 0x0190
 
#define LAN8841_PTP_RX_CHKSUM_DROPPED_CNT_LO   0x02, 0x0191
 
#define LAN8841_PTP_RX_FRMS_MOD_CNT_HI   0x02, 0x0192
 
#define LAN8841_PTP_RX_FRMS_MOD_CNT_LO   0x02, 0x0193
 
#define LAN8841_PTP_TX_PARSE_CONFIG   0x02, 0x01B0
 
#define LAN8841_PTP_TX_PARSE_VLAN_CONFIG   0x02, 0x01B1
 
#define LAN8841_PTP_TX_PARSE_L2_ADDR_EN   0x02, 0x01B2
 
#define LAN8841_PTP_TX_PARSE_IP_ADDR_EN   0x02, 0x01B3
 
#define LAN8841_PTP_TX_PARSE_UDP_SRC_PORT   0x02, 0x01B4
 
#define LAN8841_PTP_TX_PARSE_UDP_DEST_PORT   0x02, 0x01B5
 
#define LAN8841_PTP_TX_VERSION   0x02, 0x01B6
 
#define LAN8841_PTP_TX_DOMAIN_DOMAIN_LO   0x02, 0x01B7
 
#define LAN8841_PTP_TX_DOMAIN_MASK_DOMAIN_UP   0x02, 0x01B8
 
#define LAN8841_PTP_TX_SDOID_SDOID_LO   0x02, 0x01B9
 
#define LAN8841_PTP_TX_SDOID_MASK_SDOID_UP   0x02, 0x01BA
 
#define LAN8841_PTP_TX_TIMESTAMP_EN   0x02, 0x01BB
 
#define LAN8841_PTP_TX_TIMESTAMP_CONFIG   0x02, 0x01BC
 
#define LAN8841_PTP_TX_MOD   0x02, 0x01BD
 
#define LAN8841_PTP_TX_RSVD_BYTE_CFG   0x02, 0x01BE
 
#define LAN8841_PTP_TX_TAIL_TAG   0x02, 0x01BF
 
#define LAN8841_PTP_TX_CF_MOD_EN   0x02, 0x01C0
 
#define LAN8841_PTP_TX_CF_CFG   0x02, 0x01C1
 
#define LAN8841_PTP_TX_EGRESS_NS_HI   0x02, 0x01C2
 
#define LAN8841_PTP_TX_EGRESS_NS_LO   0x02, 0x01C3
 
#define LAN8841_PTP_TX_EGRESS_SEC_HI   0x02, 0x01C4
 
#define LAN8841_PTP_TX_EGRESS_SEC_LO   0x02, 0x01C5
 
#define LAN8841_PTP_TX_MSG_HEADER1   0x02, 0x01C6
 
#define LAN8841_PTP_TX_MSG_HEADER2   0x02, 0x01C7
 
#define LAN8841_PTP_TX_SYNC_SEC_HI   0x02, 0x01C8
 
#define LAN8841_PTP_TX_SYNC_SEC_MID   0x02, 0x01C9
 
#define LAN8841_PTP_TX_SYNC_SEC_LOW   0x02, 0x01CA
 
#define LAN8841_PTP_TX_SYNC_NS_HI   0x02, 0x01CB
 
#define LAN8841_PTP_TX_SYNC_NS_LO   0x02, 0x01CC
 
#define LAN8841_PTP_TX_PDRESP_SEC_HI   0x02, 0x01CD
 
#define LAN8841_PTP_TX_PDRESP_SEC_MID   0x02, 0x01CE
 
#define LAN8841_PTP_TX_PDRESP_SEC_LOW   0x02, 0x01CF
 
#define LAN8841_PTP_TX_PDRESP_NS_HI   0x02, 0x01D0
 
#define LAN8841_PTP_TX_PDRESP_NS_LO   0x02, 0x01D1
 
#define LAN8841_PTP_TX_RAW_TS_SEC   0x02, 0x01D2
 
#define LAN8841_PTP_TX_RAW_TS_NS_HI   0x02, 0x01D3
 
#define LAN8841_PTP_TX_RAW_TS_NS_LO   0x02, 0x01D4
 
#define LAN8841_PTP_TX_CHKSUM_DROPPED_CNT_HI   0x02, 0x01D5
 
#define LAN8841_PTP_TX_CHKSUM_DROPPED_CNT_LO   0x02, 0x01D6
 
#define LAN8841_PTP_TX_FRMS_MOD_CNT_HI   0x02, 0x01D7
 
#define LAN8841_PTP_TX_FRMS_MOD_CNT_LO   0x02, 0x01D8
 
#define LAN8841_PTP_GPIO_CAP_EN   0x02, 0x01F0
 
#define LAN8841_PTP_GPIO_CAP_LOCK   0x02, 0x01F1
 
#define LAN8841_PTP_GPIO_RE_LTC_SEC_HI_CAP_X   0x02, 0x01F2
 
#define LAN8841_PTP_GPIO_RE_LTC_SEC_LO_CAP_X   0x02, 0x01F3
 
#define LAN8841_PTP_GPIO_RE_LTC_NS_HI_CAP_X   0x02, 0x01F4
 
#define LAN8841_PTP_GPIO_RE_LTC_NS_LO_CAP_X   0x02, 0x01F5
 
#define LAN8841_PTP_GPIO_FE_LTC_SEC_HI_CAP_X   0x02, 0x01F6
 
#define LAN8841_PTP_GPIO_FE_LTC_SEC_LO_CAP_X   0x02, 0x01F7
 
#define LAN8841_PTP_GPIO_FE_LTC_NS_HI_CAP_X   0x02, 0x01F8
 
#define LAN8841_PTP_GPIO_FE_LTC_NS_LO_CAP_X   0x02, 0x01F9
 
#define LAN8841_PTP_GPIO_CAP_STS   0x02, 0x01FA
 
#define LAN8841_PTP_GPIO_INT_CLR_CFG   0x02, 0x01FB
 
#define LAN8841_PTP_DEBUG_SEL   0x02, 0x01FE
 
#define LAN8841_PCS_CTRL1   0x03, 0x0000
 
#define LAN8841_PCS_STAT1   0x03, 0x0001
 
#define LAN8841_EEE_QUIET_TIMER   0x03, 0x0008
 
#define LAN8841_EEE_UPDATE_TIMER   0x03, 0x0009
 
#define LAN8841_EEE_LINK_FAIL_TIMER   0x03, 0x000A
 
#define LAN8841_EEE_POST_UPDATE_TIMER   0x03, 0x000B
 
#define LAN8841_EEE_WAIT_WQ_TIMER   0x03, 0x000C
 
#define LAN8841_EEE_WAKE_TIMER   0x03, 0x000D
 
#define LAN8841_EEE_WAKE_TX_TIMER   0x03, 0x000E
 
#define LAN8841_EEE_WAKE_MZ_TIMER   0x03, 0x000F
 
#define LAN8841_EEE_CTRL_CAPABILITY   0x03, 0x0014
 
#define LAN8841_EEE_WAKE_ERROR_COUNTER   0x03, 0x0016
 
#define LAN8841_EEE_100_TIMER0   0x03, 0x0018
 
#define LAN8841_EEE_100_TIMER1   0x03, 0x0019
 
#define LAN8841_EEE_100_TIMER2   0x03, 0x001A
 
#define LAN8841_EEE_100_TIMER3   0x03, 0x001B
 
#define LAN8841_EEE_ADV   0x07, 0x003C
 
#define LAN8841_EEE_LP_ABILITY   0x07, 0x003D
 
#define LAN8841_EEE_LP_ABILITY_OVERRIDE   0x07, 0x003E
 
#define LAN8841_EEE_MSG_CODE   0x07, 0x003F
 
#define LAN8841_XTAL_CTRL   0x1C, 0x0001
 
#define LAN8841_AFED_CTRL   0x1C, 0x0009
 
#define LAN8841_LDO_CTRL   0x1C, 0x000E
 
#define LAN8841_EDPD_CTRL   0x1C, 0x0024
 
#define LAN8841_EMITX_CTRL   0x1C, 0x0025
 
#define LAN8841_EMITX_COEFF   0x1C, 0x0026
 
#define LAN8841_BMCR_RESET   0x8000
 
#define LAN8841_BMCR_LOOPBACK   0x4000
 
#define LAN8841_BMCR_SPEED_SEL_LSB   0x2000
 
#define LAN8841_BMCR_AN_EN   0x1000
 
#define LAN8841_BMCR_POWER_DOWN   0x0800
 
#define LAN8841_BMCR_ISOLATE   0x0400
 
#define LAN8841_BMCR_RESTART_AN   0x0200
 
#define LAN8841_BMCR_DUPLEX_MODE   0x0100
 
#define LAN8841_BMCR_COL_TEST   0x0080
 
#define LAN8841_BMCR_SPEED_SEL_MSB   0x0040
 
#define LAN8841_BMSR_100BT4   0x8000
 
#define LAN8841_BMSR_100BTX_FD   0x4000
 
#define LAN8841_BMSR_100BTX_HD   0x2000
 
#define LAN8841_BMSR_10BT_FD   0x1000
 
#define LAN8841_BMSR_10BT_HD   0x0800
 
#define LAN8841_BMSR_100BT2_FD   0x0400
 
#define LAN8841_BMSR_100BT2_HD   0x0200
 
#define LAN8841_BMSR_EXTENDED_STATUS   0x0100
 
#define LAN8841_BMSR_UNIDIRECTIONAL_ABLE   0x0080
 
#define LAN8841_BMSR_MF_PREAMBLE_SUPPR   0x0040
 
#define LAN8841_BMSR_AN_COMPLETE   0x0020
 
#define LAN8841_BMSR_REMOTE_FAULT   0x0010
 
#define LAN8841_BMSR_AN_CAPABLE   0x0008
 
#define LAN8841_BMSR_LINK_STATUS   0x0004
 
#define LAN8841_BMSR_JABBER_DETECT   0x0002
 
#define LAN8841_BMSR_EXTENDED_CAPABLE   0x0001
 
#define LAN8841_PHYID1_PHY_ID_MSB   0xFFFF
 
#define LAN8841_PHYID1_PHY_ID_MSB_DEFAULT   0x0022
 
#define LAN8841_PHYID2_PHY_ID_LSB   0xFC00
 
#define LAN8841_PHYID2_PHY_ID_LSB_DEFAULT   0x1400
 
#define LAN8841_PHYID2_MODEL_NUM   0x03F0
 
#define LAN8841_PHYID2_MODEL_NUM_DEFAULT   0x0250
 
#define LAN8841_PHYID2_REVISION_NUM   0x000F
 
#define LAN8841_ANAR_NEXT_PAGE   0x8000
 
#define LAN8841_ANAR_REMOTE_FAULT   0x2000
 
#define LAN8841_ANAR_EXTENDED_NEXT_PAGE   0x1000
 
#define LAN8841_ANAR_ASYM_PAUSE   0x0800
 
#define LAN8841_ANAR_SYM_PAUSE   0x0400
 
#define LAN8841_ANAR_100BT4   0x0200
 
#define LAN8841_ANAR_100BTX_FD   0x0100
 
#define LAN8841_ANAR_100BTX_HD   0x0080
 
#define LAN8841_ANAR_10BT_FD   0x0040
 
#define LAN8841_ANAR_10BT_HD   0x0020
 
#define LAN8841_ANAR_SELECTOR   0x001F
 
#define LAN8841_ANAR_SELECTOR_DEFAULT   0x0001
 
#define LAN8841_ANLPAR_NEXT_PAGE   0x8000
 
#define LAN8841_ANLPAR_ACK   0x4000
 
#define LAN8841_ANLPAR_REMOTE_FAULT   0x2000
 
#define LAN8841_ANLPAR_EXTENDED_NEXT_PAGE   0x1000
 
#define LAN8841_ANLPAR_ASYM_PAUSE   0x0800
 
#define LAN8841_ANLPAR_PAUSE   0x0400
 
#define LAN8841_ANLPAR_100BT4   0x0200
 
#define LAN8841_ANLPAR_100BTX_FD   0x0100
 
#define LAN8841_ANLPAR_100BTX_HD   0x0080
 
#define LAN8841_ANLPAR_10BT_FD   0x0040
 
#define LAN8841_ANLPAR_10BT_HD   0x0020
 
#define LAN8841_ANLPAR_SELECTOR   0x001F
 
#define LAN8841_ANLPAR_SELECTOR_DEFAULT   0x0001
 
#define LAN8841_ANER_RECEIVE_NP_LOC_ABLE   0x0040
 
#define LAN8841_ANER_RECEIVE_NP_STOR_LOC   0x0020
 
#define LAN8841_ANER_PAR_DETECT_FAULT   0x0010
 
#define LAN8841_ANER_LP_NEXT_PAGE_ABLE   0x0008
 
#define LAN8841_ANER_NEXT_PAGE_ABLE   0x0004
 
#define LAN8841_ANER_PAGE_RECEIVED   0x0002
 
#define LAN8841_ANER_LP_AN_ABLE   0x0001
 
#define LAN8841_ANNPTR_NEXT_PAGE   0x8000
 
#define LAN8841_ANNPTR_MSG_PAGE   0x2000
 
#define LAN8841_ANNPTR_ACK2   0x1000
 
#define LAN8841_ANNPTR_TOGGLE   0x0800
 
#define LAN8841_ANNPTR_MESSAGE   0x07FF
 
#define LAN8841_ANNPRR_NEXT_PAGE   0x8000
 
#define LAN8841_ANNPRR_ACK   0x4000
 
#define LAN8841_ANNPRR_MSG_PAGE   0x2000
 
#define LAN8841_ANNPRR_ACK2   0x1000
 
#define LAN8841_ANNPRR_TOGGLE   0x0800
 
#define LAN8841_ANNPRR_MESSAGE   0x07FF
 
#define LAN8841_GBCR_TEST_MODE   0xE000
 
#define LAN8841_GBCR_MS_MAN_CONF_EN   0x1000
 
#define LAN8841_GBCR_MS_MAN_CONF_VAL   0x0800
 
#define LAN8841_GBCR_PORT_TYPE   0x0400
 
#define LAN8841_GBCR_1000BT_FD   0x0200
 
#define LAN8841_GBCR_1000BT_HD   0x0100
 
#define LAN8841_GBSR_MS_CONF_FAULT   0x8000
 
#define LAN8841_GBSR_MS_CONF_RES   0x4000
 
#define LAN8841_GBSR_LOCAL_RECEIVER_STATUS   0x2000
 
#define LAN8841_GBSR_REMOTE_RECEIVER_STATUS   0x1000
 
#define LAN8841_GBSR_LP_1000BT_FD   0x0800
 
#define LAN8841_GBSR_LP_1000BT_HD   0x0400
 
#define LAN8841_GBSR_IDLE_ERR_COUNT   0x00FF
 
#define LAN8841_MMDACR_FUNC   0xC000
 
#define LAN8841_MMDACR_FUNC_ADDR   0x0000
 
#define LAN8841_MMDACR_FUNC_DATA_NO_POST_INC   0x4000
 
#define LAN8841_MMDACR_FUNC_DATA_POST_INC_RW   0x8000
 
#define LAN8841_MMDACR_FUNC_DATA_POST_INC_W   0xC000
 
#define LAN8841_MMDACR_DEVAD   0x001F
 
#define LAN8841_GBESR_1000BX_FD   0x8000
 
#define LAN8841_GBESR_1000BX_HD   0x4000
 
#define LAN8841_GBESR_1000BT_FD   0x2000
 
#define LAN8841_GBESR_1000BT_HD   0x1000
 
#define LAN8841_RLB_REMOTE_LOOPBACK   0x0100
 
#define LAN8841_LINKMD_TEST_EN   0x8000
 
#define LAN8841_LINKMD_TX_DIS   0x4000
 
#define LAN8841_LINKMD_PAIR   0x3000
 
#define LAN8841_LINKMD_PAIR_A   0x0000
 
#define LAN8841_LINKMD_PAIR_B   0x1000
 
#define LAN8841_LINKMD_PAIR_C   0x2000
 
#define LAN8841_LINKMD_PAIR_D   0x3000
 
#define LAN8841_LINKMD_SEL   0x0C00
 
#define LAN8841_LINKMD_STATUS   0x0300
 
#define LAN8841_LINKMD_STATUS_NORMAL   0x0000
 
#define LAN8841_LINKMD_STATUS_OPEN   0x0100
 
#define LAN8841_LINKMD_STATUS_SHORT   0x0200
 
#define LAN8841_LINKMD_STATUS_TEST_FAILED   0x0300
 
#define LAN8841_LINKMD_FAULT_DATA   0x00FF
 
#define LAN8841_DPMAPCSS_1000BT_LINK_STATUS   0x0002
 
#define LAN8841_DPMAPCSS_100BTX_LINK_STATUS   0x0001
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG   0xF000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_ACT   0x0000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_1000_ACT   0x1000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_100_ACT   0x2000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_ACT   0x3000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_100_1000_ACT   0x4000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_1000_ACT   0x5000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_100_ACT   0x6000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_DUPLEX_COL   0x8000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_COL   0x9000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_ACT   0xA000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_AN_FAULT   0xC000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_OFF   0xE000
 
#define LAN8841_LED_MODE_SEL_LED4_CONFIG_ON   0xF000
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG   0x0F00
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_ACT   0x0000
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_1000_ACT   0x0100
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_100_ACT   0x0200
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_ACT   0x0300
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_100_1000_ACT   0x0400
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_1000_ACT   0x0500
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_100_ACT   0x0600
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_DUPLEX_COL   0x0800
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_COL   0x0900
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_ACT   0x0A00
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_AN_FAULT   0x0C00
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_OFF   0x0E00
 
#define LAN8841_LED_MODE_SEL_LED3_CONFIG_ON   0x0F00
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG   0x00F0
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_ACT   0x0000
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_1000_ACT   0x0010
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_100_ACT   0x0020
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_ACT   0x0030
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_100_1000_ACT   0x0040
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_1000_ACT   0x0050
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_100_ACT   0x0060
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_DUPLEX_COL   0x0080
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_COL   0x0090
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_ACT   0x00A0
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_AN_FAULT   0x00C0
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_OFF   0x00E0
 
#define LAN8841_LED_MODE_SEL_LED2_CONFIG_ON   0x00F0
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG   0x000F
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_ACT   0x0000
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_1000_ACT   0x0001
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_100_ACT   0x0002
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_ACT   0x0003
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_100_1000_ACT   0x0004
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_1000_ACT   0x0005
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_100_ACT   0x0006
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_DUPLEX_COL   0x0008
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_COL   0x0009
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_ACT   0x000A
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_AN_FAULT   0x000C
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_OFF   0x000E
 
#define LAN8841_LED_MODE_SEL_LED1_CONFIG_ON   0x000F
 
#define LAN8841_LED_BEHAVIOR_LED_ACT_OUT_SEL   0x4000
 
#define LAN8841_LED_BEHAVIOR_LED_PULSING_EN   0x1000
 
#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE   0x0C00
 
#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ   0x0000
 
#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_5HZ   0x0400
 
#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_10HZ   0x0800
 
#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_20HZ   0x0C00
 
#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN   0x01E0
 
#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED4   0x0100
 
#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED3   0x0080
 
#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2   0x0040
 
#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1   0x0020
 
#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS   0x000F
 
#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED4   0x0008
 
#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED3   0x0004
 
#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2   0x0002
 
#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1   0x0001
 
#define LAN8841_OUT_CTRL_MDIO_BUFFER_TYPE   0x8000
 
#define LAN8841_OUT_CTRL_INT_BUFFER_TYPE   0x4000
 
#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE   0x3F00
 
#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED4   0x0800
 
#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED3   0x0400
 
#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED2   0x0200
 
#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED1   0x0100
 
#define LAN8841_OUT_CTRL_PME_POLARITY   0x0080
 
#define LAN8841_OUT_CTRL_LED_POLARITY   0x003F
 
#define LAN8841_OUT_CTRL_LED_POLARITY_LED4   0x0008
 
#define LAN8841_OUT_CTRL_LED_POLARITY_LED3   0x0004
 
#define LAN8841_OUT_CTRL_LED_POLARITY_LED2   0x0002
 
#define LAN8841_OUT_CTRL_LED_POLARITY_LED1   0x0001
 
#define LAN8841_LEGACY_LED_MODE_KSZ9031_LED_MODE   0x4000
 
#define LAN8841_ISR_ENERGY_NOT_DETECT   0x0800
 
#define LAN8841_ISR_ENERGY_DETECT   0x0400
 
#define LAN8841_ISR_1588   0x0200
 
#define LAN8841_ISR_GPIO   0x0100
 
#define LAN8841_ISR_JABBER   0x0080
 
#define LAN8841_ISR_RECEIVE_ERROR   0x0040
 
#define LAN8841_ISR_PAGE_RECEIVED   0x0020
 
#define LAN8841_ISR_PAR_DETECT_FAULT   0x0010
 
#define LAN8841_ISR_LP_ACK   0x0008
 
#define LAN8841_ISR_LINK_DOWN   0x0004
 
#define LAN8841_ISR_ADC_FIFO_ERROR   0x0002
 
#define LAN8841_ISR_LINK_UP   0x0001
 
#define LAN8841_AUTOMDI_MDI_SET   0x0080
 
#define LAN8841_AUTOMDI_SWAP_OFF   0x0040
 
#define LAN8841_SPDC_CLK_GATE_OVERRIDE   0x0800
 
#define LAN8841_SPDC_PLL_DIS   0x0400
 
#define LAN8841_SPDC_IO_DC_TEST_EN   0x0080
 
#define LAN8841_SPDC_VOH   0x0040
 
#define LAN8841_EXT_LOOPBACK_EXT_LPBK   0x0008
 
#define LAN8841_PHYCON_INT_POL_INVERT   0x4000
 
#define LAN8841_PHYCON_JABBER_EN   0x0200
 
#define LAN8841_PHYCON_SQE_TEST_EN   0x0100
 
#define LAN8841_PHYCON_SPEED_1000BT   0x0040
 
#define LAN8841_PHYCON_SPEED_100BTX   0x0020
 
#define LAN8841_PHYCON_SPEED_10BT   0x0010
 
#define LAN8841_PHYCON_DUPLEX_STATUS   0x0008
 
#define LAN8841_PHYCON_1000BT_MS_STATUS   0x0004
 
#define LAN8841_PHYCON_SOFT_RESET   0x0002
 
#define LAN8841_PHYCON_LINK_STATUS_CHECK_FAIL   0x0001
 
#define LAN8841_RX_DLL_CTRL_RXDLL_TUNE_DIS   0x8000
 
#define LAN8841_RX_DLL_CTRL_BYPASS_RXDLL   0x4000
 
#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_SEL   0x3F80
 
#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT   0x0D80
 
#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_ADJ   0x007F
 
#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT   0x001B
 
#define LAN8841_TX_DLL_CTRL_TXDLL_TUNE_DIS   0x8000
 
#define LAN8841_TX_DLL_CTRL_BYPASS_TXDLL   0x4000
 
#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_SEL   0x3F80
 
#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT   0x0D80
 
#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_ADJ   0x007F
 
#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT   0x001B
 

Functions

error_t lan8841Init (NetInterface *interface)
 LAN8841 PHY transceiver initialization. More...
 
void lan8841InitHook (NetInterface *interface)
 LAN8841 custom configuration. More...
 
void lan8841Tick (NetInterface *interface)
 LAN8841 timer handler. More...
 
void lan8841EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void lan8841DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void lan8841EventHandler (NetInterface *interface)
 LAN8841 event handler. More...
 
void lan8841WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t lan8841ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void lan8841DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 
void lan8841WriteMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data)
 Write MMD register. More...
 
uint16_t lan8841ReadMmdReg (NetInterface *interface, uint8_t devAddr, uint16_t regAddr)
 Read MMD register. More...
 

Variables

const PhyDriver lan8841PhyDriver
 LAN8841 Ethernet PHY driver. More...
 

Detailed Description

LAN8841 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.0

Definition in file lan8841_driver.h.

Macro Definition Documentation

◆ LAN8841_AFED_CTRL

#define LAN8841_AFED_CTRL   0x1C, 0x0009

Definition at line 374 of file lan8841_driver.h.

◆ LAN8841_ANAR

#define LAN8841_ANAR   0x04

Definition at line 49 of file lan8841_driver.h.

◆ LAN8841_ANAR_100BT4

#define LAN8841_ANAR_100BT4   0x0200

Definition at line 427 of file lan8841_driver.h.

◆ LAN8841_ANAR_100BTX_FD

#define LAN8841_ANAR_100BTX_FD   0x0100

Definition at line 428 of file lan8841_driver.h.

◆ LAN8841_ANAR_100BTX_HD

#define LAN8841_ANAR_100BTX_HD   0x0080

Definition at line 429 of file lan8841_driver.h.

◆ LAN8841_ANAR_10BT_FD

#define LAN8841_ANAR_10BT_FD   0x0040

Definition at line 430 of file lan8841_driver.h.

◆ LAN8841_ANAR_10BT_HD

#define LAN8841_ANAR_10BT_HD   0x0020

Definition at line 431 of file lan8841_driver.h.

◆ LAN8841_ANAR_ASYM_PAUSE

#define LAN8841_ANAR_ASYM_PAUSE   0x0800

Definition at line 425 of file lan8841_driver.h.

◆ LAN8841_ANAR_EXTENDED_NEXT_PAGE

#define LAN8841_ANAR_EXTENDED_NEXT_PAGE   0x1000

Definition at line 424 of file lan8841_driver.h.

◆ LAN8841_ANAR_NEXT_PAGE

#define LAN8841_ANAR_NEXT_PAGE   0x8000

Definition at line 422 of file lan8841_driver.h.

◆ LAN8841_ANAR_REMOTE_FAULT

#define LAN8841_ANAR_REMOTE_FAULT   0x2000

Definition at line 423 of file lan8841_driver.h.

◆ LAN8841_ANAR_SELECTOR

#define LAN8841_ANAR_SELECTOR   0x001F

Definition at line 432 of file lan8841_driver.h.

◆ LAN8841_ANAR_SELECTOR_DEFAULT

#define LAN8841_ANAR_SELECTOR_DEFAULT   0x0001

Definition at line 433 of file lan8841_driver.h.

◆ LAN8841_ANAR_SYM_PAUSE

#define LAN8841_ANAR_SYM_PAUSE   0x0400

Definition at line 426 of file lan8841_driver.h.

◆ LAN8841_ANER

#define LAN8841_ANER   0x06

Definition at line 51 of file lan8841_driver.h.

◆ LAN8841_ANER_LP_AN_ABLE

#define LAN8841_ANER_LP_AN_ABLE   0x0001

Definition at line 457 of file lan8841_driver.h.

◆ LAN8841_ANER_LP_NEXT_PAGE_ABLE

#define LAN8841_ANER_LP_NEXT_PAGE_ABLE   0x0008

Definition at line 454 of file lan8841_driver.h.

◆ LAN8841_ANER_NEXT_PAGE_ABLE

#define LAN8841_ANER_NEXT_PAGE_ABLE   0x0004

Definition at line 455 of file lan8841_driver.h.

◆ LAN8841_ANER_PAGE_RECEIVED

#define LAN8841_ANER_PAGE_RECEIVED   0x0002

Definition at line 456 of file lan8841_driver.h.

◆ LAN8841_ANER_PAR_DETECT_FAULT

#define LAN8841_ANER_PAR_DETECT_FAULT   0x0010

Definition at line 453 of file lan8841_driver.h.

◆ LAN8841_ANER_RECEIVE_NP_LOC_ABLE

#define LAN8841_ANER_RECEIVE_NP_LOC_ABLE   0x0040

Definition at line 451 of file lan8841_driver.h.

◆ LAN8841_ANER_RECEIVE_NP_STOR_LOC

#define LAN8841_ANER_RECEIVE_NP_STOR_LOC   0x0020

Definition at line 452 of file lan8841_driver.h.

◆ LAN8841_ANLPAR

#define LAN8841_ANLPAR   0x05

Definition at line 50 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_100BT4

#define LAN8841_ANLPAR_100BT4   0x0200

Definition at line 442 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_100BTX_FD

#define LAN8841_ANLPAR_100BTX_FD   0x0100

Definition at line 443 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_100BTX_HD

#define LAN8841_ANLPAR_100BTX_HD   0x0080

Definition at line 444 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_10BT_FD

#define LAN8841_ANLPAR_10BT_FD   0x0040

Definition at line 445 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_10BT_HD

#define LAN8841_ANLPAR_10BT_HD   0x0020

Definition at line 446 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_ACK

#define LAN8841_ANLPAR_ACK   0x4000

Definition at line 437 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_ASYM_PAUSE

#define LAN8841_ANLPAR_ASYM_PAUSE   0x0800

Definition at line 440 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_EXTENDED_NEXT_PAGE

#define LAN8841_ANLPAR_EXTENDED_NEXT_PAGE   0x1000

Definition at line 439 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_NEXT_PAGE

#define LAN8841_ANLPAR_NEXT_PAGE   0x8000

Definition at line 436 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_PAUSE

#define LAN8841_ANLPAR_PAUSE   0x0400

Definition at line 441 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_REMOTE_FAULT

#define LAN8841_ANLPAR_REMOTE_FAULT   0x2000

Definition at line 438 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_SELECTOR

#define LAN8841_ANLPAR_SELECTOR   0x001F

Definition at line 447 of file lan8841_driver.h.

◆ LAN8841_ANLPAR_SELECTOR_DEFAULT

#define LAN8841_ANLPAR_SELECTOR_DEFAULT   0x0001

Definition at line 448 of file lan8841_driver.h.

◆ LAN8841_ANNPRR

#define LAN8841_ANNPRR   0x08

Definition at line 53 of file lan8841_driver.h.

◆ LAN8841_ANNPRR_ACK

#define LAN8841_ANNPRR_ACK   0x4000

Definition at line 468 of file lan8841_driver.h.

◆ LAN8841_ANNPRR_ACK2

#define LAN8841_ANNPRR_ACK2   0x1000

Definition at line 470 of file lan8841_driver.h.

◆ LAN8841_ANNPRR_MESSAGE

#define LAN8841_ANNPRR_MESSAGE   0x07FF

Definition at line 472 of file lan8841_driver.h.

◆ LAN8841_ANNPRR_MSG_PAGE

#define LAN8841_ANNPRR_MSG_PAGE   0x2000

Definition at line 469 of file lan8841_driver.h.

◆ LAN8841_ANNPRR_NEXT_PAGE

#define LAN8841_ANNPRR_NEXT_PAGE   0x8000

Definition at line 467 of file lan8841_driver.h.

◆ LAN8841_ANNPRR_TOGGLE

#define LAN8841_ANNPRR_TOGGLE   0x0800

Definition at line 471 of file lan8841_driver.h.

◆ LAN8841_ANNPTR

#define LAN8841_ANNPTR   0x07

Definition at line 52 of file lan8841_driver.h.

◆ LAN8841_ANNPTR_ACK2

#define LAN8841_ANNPTR_ACK2   0x1000

Definition at line 462 of file lan8841_driver.h.

◆ LAN8841_ANNPTR_MESSAGE

#define LAN8841_ANNPTR_MESSAGE   0x07FF

Definition at line 464 of file lan8841_driver.h.

◆ LAN8841_ANNPTR_MSG_PAGE

#define LAN8841_ANNPTR_MSG_PAGE   0x2000

Definition at line 461 of file lan8841_driver.h.

◆ LAN8841_ANNPTR_NEXT_PAGE

#define LAN8841_ANNPTR_NEXT_PAGE   0x8000

Definition at line 460 of file lan8841_driver.h.

◆ LAN8841_ANNPTR_TOGGLE

#define LAN8841_ANNPTR_TOGGLE   0x0800

Definition at line 463 of file lan8841_driver.h.

◆ LAN8841_AUTOMDI

#define LAN8841_AUTOMDI   0x1C

Definition at line 68 of file lan8841_driver.h.

◆ LAN8841_AUTOMDI_MDI_SET

#define LAN8841_AUTOMDI_MDI_SET   0x0080

Definition at line 638 of file lan8841_driver.h.

◆ LAN8841_AUTOMDI_SWAP_OFF

#define LAN8841_AUTOMDI_SWAP_OFF   0x0040

Definition at line 639 of file lan8841_driver.h.

◆ LAN8841_BMCR

#define LAN8841_BMCR   0x00

Definition at line 45 of file lan8841_driver.h.

◆ LAN8841_BMCR_AN_EN

#define LAN8841_BMCR_AN_EN   0x1000

Definition at line 384 of file lan8841_driver.h.

◆ LAN8841_BMCR_COL_TEST

#define LAN8841_BMCR_COL_TEST   0x0080

Definition at line 389 of file lan8841_driver.h.

◆ LAN8841_BMCR_DUPLEX_MODE

#define LAN8841_BMCR_DUPLEX_MODE   0x0100

Definition at line 388 of file lan8841_driver.h.

◆ LAN8841_BMCR_ISOLATE

#define LAN8841_BMCR_ISOLATE   0x0400

Definition at line 386 of file lan8841_driver.h.

◆ LAN8841_BMCR_LOOPBACK

#define LAN8841_BMCR_LOOPBACK   0x4000

Definition at line 382 of file lan8841_driver.h.

◆ LAN8841_BMCR_POWER_DOWN

#define LAN8841_BMCR_POWER_DOWN   0x0800

Definition at line 385 of file lan8841_driver.h.

◆ LAN8841_BMCR_RESET

#define LAN8841_BMCR_RESET   0x8000

Definition at line 381 of file lan8841_driver.h.

◆ LAN8841_BMCR_RESTART_AN

#define LAN8841_BMCR_RESTART_AN   0x0200

Definition at line 387 of file lan8841_driver.h.

◆ LAN8841_BMCR_SPEED_SEL_LSB

#define LAN8841_BMCR_SPEED_SEL_LSB   0x2000

Definition at line 383 of file lan8841_driver.h.

◆ LAN8841_BMCR_SPEED_SEL_MSB

#define LAN8841_BMCR_SPEED_SEL_MSB   0x0040

Definition at line 390 of file lan8841_driver.h.

◆ LAN8841_BMSR

#define LAN8841_BMSR   0x01

Definition at line 46 of file lan8841_driver.h.

◆ LAN8841_BMSR_100BT2_FD

#define LAN8841_BMSR_100BT2_FD   0x0400

Definition at line 398 of file lan8841_driver.h.

◆ LAN8841_BMSR_100BT2_HD

#define LAN8841_BMSR_100BT2_HD   0x0200

Definition at line 399 of file lan8841_driver.h.

◆ LAN8841_BMSR_100BT4

#define LAN8841_BMSR_100BT4   0x8000

Definition at line 393 of file lan8841_driver.h.

◆ LAN8841_BMSR_100BTX_FD

#define LAN8841_BMSR_100BTX_FD   0x4000

Definition at line 394 of file lan8841_driver.h.

◆ LAN8841_BMSR_100BTX_HD

#define LAN8841_BMSR_100BTX_HD   0x2000

Definition at line 395 of file lan8841_driver.h.

◆ LAN8841_BMSR_10BT_FD

#define LAN8841_BMSR_10BT_FD   0x1000

Definition at line 396 of file lan8841_driver.h.

◆ LAN8841_BMSR_10BT_HD

#define LAN8841_BMSR_10BT_HD   0x0800

Definition at line 397 of file lan8841_driver.h.

◆ LAN8841_BMSR_AN_CAPABLE

#define LAN8841_BMSR_AN_CAPABLE   0x0008

Definition at line 405 of file lan8841_driver.h.

◆ LAN8841_BMSR_AN_COMPLETE

#define LAN8841_BMSR_AN_COMPLETE   0x0020

Definition at line 403 of file lan8841_driver.h.

◆ LAN8841_BMSR_EXTENDED_CAPABLE

#define LAN8841_BMSR_EXTENDED_CAPABLE   0x0001

Definition at line 408 of file lan8841_driver.h.

◆ LAN8841_BMSR_EXTENDED_STATUS

#define LAN8841_BMSR_EXTENDED_STATUS   0x0100

Definition at line 400 of file lan8841_driver.h.

◆ LAN8841_BMSR_JABBER_DETECT

#define LAN8841_BMSR_JABBER_DETECT   0x0002

Definition at line 407 of file lan8841_driver.h.

◆ LAN8841_BMSR_LINK_STATUS

#define LAN8841_BMSR_LINK_STATUS   0x0004

Definition at line 406 of file lan8841_driver.h.

◆ LAN8841_BMSR_MF_PREAMBLE_SUPPR

#define LAN8841_BMSR_MF_PREAMBLE_SUPPR   0x0040

Definition at line 402 of file lan8841_driver.h.

◆ LAN8841_BMSR_REMOTE_FAULT

#define LAN8841_BMSR_REMOTE_FAULT   0x0010

Definition at line 404 of file lan8841_driver.h.

◆ LAN8841_BMSR_UNIDIRECTIONAL_ABLE

#define LAN8841_BMSR_UNIDIRECTIONAL_ABLE   0x0080

Definition at line 401 of file lan8841_driver.h.

◆ LAN8841_CLK_PAD_SKEW

#define LAN8841_CLK_PAD_SKEW   0x02, 0x0008

Definition at line 89 of file lan8841_driver.h.

◆ LAN8841_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW

#define LAN8841_CLOCK_INV_CTRL_SIGNAL_PAD_SKEW   0x02, 0x0004

Definition at line 86 of file lan8841_driver.h.

◆ LAN8841_COMMON_CTRL

#define LAN8841_COMMON_CTRL   0x02, 0x0000

Definition at line 82 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_CRC_HI

#define LAN8841_CUSTOM_PKT0_CRC_HI   0x02, 0x0015

Definition at line 101 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_CRC_LO

#define LAN8841_CUSTOM_PKT0_CRC_LO   0x02, 0x0014

Definition at line 100 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_MASK_HH

#define LAN8841_CUSTOM_PKT0_MASK_HH   0x02, 0x001F

Definition at line 111 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_MASK_HL

#define LAN8841_CUSTOM_PKT0_MASK_HL   0x02, 0x001E

Definition at line 110 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_MASK_LH

#define LAN8841_CUSTOM_PKT0_MASK_LH   0x02, 0x001D

Definition at line 109 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_MASK_LL

#define LAN8841_CUSTOM_PKT0_MASK_LL   0x02, 0x001C

Definition at line 108 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_RCVD_CRC_H

#define LAN8841_CUSTOM_PKT0_RCVD_CRC_H   0x02, 0x0031

Definition at line 129 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT0_RCVD_CRC_L

#define LAN8841_CUSTOM_PKT0_RCVD_CRC_L   0x02, 0x0030

Definition at line 128 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_CRC_HI

#define LAN8841_CUSTOM_PKT1_CRC_HI   0x02, 0x0017

Definition at line 103 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_CRC_LO

#define LAN8841_CUSTOM_PKT1_CRC_LO   0x02, 0x0016

Definition at line 102 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_MASK_HH

#define LAN8841_CUSTOM_PKT1_MASK_HH   0x02, 0x0023

Definition at line 115 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_MASK_HL

#define LAN8841_CUSTOM_PKT1_MASK_HL   0x02, 0x0022

Definition at line 114 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_MASK_LH

#define LAN8841_CUSTOM_PKT1_MASK_LH   0x02, 0x0021

Definition at line 113 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_MASK_LL

#define LAN8841_CUSTOM_PKT1_MASK_LL   0x02, 0x0020

Definition at line 112 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_RCVD_CRC_H

#define LAN8841_CUSTOM_PKT1_RCVD_CRC_H   0x02, 0x0033

Definition at line 131 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT1_RCVD_CRC_L

#define LAN8841_CUSTOM_PKT1_RCVD_CRC_L   0x02, 0x0032

Definition at line 130 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_CRC_HI

#define LAN8841_CUSTOM_PKT2_CRC_HI   0x02, 0x0019

Definition at line 105 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_CRC_LO

#define LAN8841_CUSTOM_PKT2_CRC_LO   0x02, 0x0018

Definition at line 104 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_MASK_HH

#define LAN8841_CUSTOM_PKT2_MASK_HH   0x02, 0x0027

Definition at line 119 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_MASK_HL

#define LAN8841_CUSTOM_PKT2_MASK_HL   0x02, 0x0026

Definition at line 118 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_MASK_LH

#define LAN8841_CUSTOM_PKT2_MASK_LH   0x02, 0x0025

Definition at line 117 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_MASK_LL

#define LAN8841_CUSTOM_PKT2_MASK_LL   0x02, 0x0024

Definition at line 116 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_RCVD_CRC_H

#define LAN8841_CUSTOM_PKT2_RCVD_CRC_H   0x02, 0x0035

Definition at line 133 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT2_RCVD_CRC_L

#define LAN8841_CUSTOM_PKT2_RCVD_CRC_L   0x02, 0x0034

Definition at line 132 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_CRC_HI

#define LAN8841_CUSTOM_PKT3_CRC_HI   0x02, 0x001B

Definition at line 107 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_CRC_LO

#define LAN8841_CUSTOM_PKT3_CRC_LO   0x02, 0x001A

Definition at line 106 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_MASK_HH

#define LAN8841_CUSTOM_PKT3_MASK_HH   0x02, 0x002B

Definition at line 123 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_MASK_HL

#define LAN8841_CUSTOM_PKT3_MASK_HL   0x02, 0x002A

Definition at line 122 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_MASK_LH

#define LAN8841_CUSTOM_PKT3_MASK_LH   0x02, 0x0029

Definition at line 121 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_MASK_LL

#define LAN8841_CUSTOM_PKT3_MASK_LL   0x02, 0x0028

Definition at line 120 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_RCVD_CRC_H

#define LAN8841_CUSTOM_PKT3_RCVD_CRC_H   0x02, 0x0037

Definition at line 135 of file lan8841_driver.h.

◆ LAN8841_CUSTOM_PKT3_RCVD_CRC_L

#define LAN8841_CUSTOM_PKT3_RCVD_CRC_L   0x02, 0x0036

Definition at line 134 of file lan8841_driver.h.

◆ LAN8841_DCQ_CONFIG

#define LAN8841_DCQ_CONFIG   0x01, 0x00E7

Definition at line 80 of file lan8841_driver.h.

◆ LAN8841_DCQ_CTRL

#define LAN8841_DCQ_CTRL   0x01, 0x00E6

Definition at line 79 of file lan8841_driver.h.

◆ LAN8841_DCQ_MEAN_SQUARE_ERROR

#define LAN8841_DCQ_MEAN_SQUARE_ERROR   0x01, 0x00E2

Definition at line 75 of file lan8841_driver.h.

◆ LAN8841_DCQ_MEAN_SQUARE_ERROR_WORST_CASE

#define LAN8841_DCQ_MEAN_SQUARE_ERROR_WORST_CASE   0x01, 0x00E3

Definition at line 76 of file lan8841_driver.h.

◆ LAN8841_DCQ_PEAK_MSE

#define LAN8841_DCQ_PEAK_MSE   0x01, 0x00E5

Definition at line 78 of file lan8841_driver.h.

◆ LAN8841_DCQ_SQI

#define LAN8841_DCQ_SQI   0x01, 0x00E4

Definition at line 77 of file lan8841_driver.h.

◆ LAN8841_DCQ_SQI_TABLE

#define LAN8841_DCQ_SQI_TABLE   0x01, 0x00E8

Definition at line 81 of file lan8841_driver.h.

◆ LAN8841_DPMAPCSS

#define LAN8841_DPMAPCSS   0x13

Definition at line 61 of file lan8841_driver.h.

◆ LAN8841_DPMAPCSS_1000BT_LINK_STATUS

#define LAN8841_DPMAPCSS_1000BT_LINK_STATUS   0x0002

Definition at line 525 of file lan8841_driver.h.

◆ LAN8841_DPMAPCSS_100BTX_LINK_STATUS

#define LAN8841_DPMAPCSS_100BTX_LINK_STATUS   0x0001

Definition at line 526 of file lan8841_driver.h.

◆ LAN8841_DRIVING_STRENGTH

#define LAN8841_DRIVING_STRENGTH   0x02, 0x006F

Definition at line 142 of file lan8841_driver.h.

◆ LAN8841_EDPD_CTRL

#define LAN8841_EDPD_CTRL   0x1C, 0x0024

Definition at line 376 of file lan8841_driver.h.

◆ LAN8841_EEE_100_TIMER0

#define LAN8841_EEE_100_TIMER0   0x03, 0x0018

Definition at line 365 of file lan8841_driver.h.

◆ LAN8841_EEE_100_TIMER1

#define LAN8841_EEE_100_TIMER1   0x03, 0x0019

Definition at line 366 of file lan8841_driver.h.

◆ LAN8841_EEE_100_TIMER2

#define LAN8841_EEE_100_TIMER2   0x03, 0x001A

Definition at line 367 of file lan8841_driver.h.

◆ LAN8841_EEE_100_TIMER3

#define LAN8841_EEE_100_TIMER3   0x03, 0x001B

Definition at line 368 of file lan8841_driver.h.

◆ LAN8841_EEE_ADV

#define LAN8841_EEE_ADV   0x07, 0x003C

Definition at line 369 of file lan8841_driver.h.

◆ LAN8841_EEE_CTRL_CAPABILITY

#define LAN8841_EEE_CTRL_CAPABILITY   0x03, 0x0014

Definition at line 363 of file lan8841_driver.h.

◆ LAN8841_EEE_LINK_FAIL_TIMER

#define LAN8841_EEE_LINK_FAIL_TIMER   0x03, 0x000A

Definition at line 357 of file lan8841_driver.h.

◆ LAN8841_EEE_LP_ABILITY

#define LAN8841_EEE_LP_ABILITY   0x07, 0x003D

Definition at line 370 of file lan8841_driver.h.

◆ LAN8841_EEE_LP_ABILITY_OVERRIDE

#define LAN8841_EEE_LP_ABILITY_OVERRIDE   0x07, 0x003E

Definition at line 371 of file lan8841_driver.h.

◆ LAN8841_EEE_MSG_CODE

#define LAN8841_EEE_MSG_CODE   0x07, 0x003F

Definition at line 372 of file lan8841_driver.h.

◆ LAN8841_EEE_POST_UPDATE_TIMER

#define LAN8841_EEE_POST_UPDATE_TIMER   0x03, 0x000B

Definition at line 358 of file lan8841_driver.h.

◆ LAN8841_EEE_QUIET_TIMER

#define LAN8841_EEE_QUIET_TIMER   0x03, 0x0008

Definition at line 355 of file lan8841_driver.h.

◆ LAN8841_EEE_UPDATE_TIMER

#define LAN8841_EEE_UPDATE_TIMER   0x03, 0x0009

Definition at line 356 of file lan8841_driver.h.

◆ LAN8841_EEE_WAIT_WQ_TIMER

#define LAN8841_EEE_WAIT_WQ_TIMER   0x03, 0x000C

Definition at line 359 of file lan8841_driver.h.

◆ LAN8841_EEE_WAKE_ERROR_COUNTER

#define LAN8841_EEE_WAKE_ERROR_COUNTER   0x03, 0x0016

Definition at line 364 of file lan8841_driver.h.

◆ LAN8841_EEE_WAKE_MZ_TIMER

#define LAN8841_EEE_WAKE_MZ_TIMER   0x03, 0x000F

Definition at line 362 of file lan8841_driver.h.

◆ LAN8841_EEE_WAKE_TIMER

#define LAN8841_EEE_WAKE_TIMER   0x03, 0x000D

Definition at line 360 of file lan8841_driver.h.

◆ LAN8841_EEE_WAKE_TX_TIMER

#define LAN8841_EEE_WAKE_TX_TIMER   0x03, 0x000E

Definition at line 361 of file lan8841_driver.h.

◆ LAN8841_EMITX_COEFF

#define LAN8841_EMITX_COEFF   0x1C, 0x0026

Definition at line 378 of file lan8841_driver.h.

◆ LAN8841_EMITX_CTRL

#define LAN8841_EMITX_CTRL   0x1C, 0x0025

Definition at line 377 of file lan8841_driver.h.

◆ LAN8841_EXT_LOOPBACK

#define LAN8841_EXT_LOOPBACK   0x1E

Definition at line 70 of file lan8841_driver.h.

◆ LAN8841_EXT_LOOPBACK_EXT_LPBK

#define LAN8841_EXT_LOOPBACK_EXT_LPBK   0x0008

Definition at line 648 of file lan8841_driver.h.

◆ LAN8841_GBCR

#define LAN8841_GBCR   0x09

Definition at line 54 of file lan8841_driver.h.

◆ LAN8841_GBCR_1000BT_FD

#define LAN8841_GBCR_1000BT_FD   0x0200

Definition at line 479 of file lan8841_driver.h.

◆ LAN8841_GBCR_1000BT_HD

#define LAN8841_GBCR_1000BT_HD   0x0100

Definition at line 480 of file lan8841_driver.h.

◆ LAN8841_GBCR_MS_MAN_CONF_EN

#define LAN8841_GBCR_MS_MAN_CONF_EN   0x1000

Definition at line 476 of file lan8841_driver.h.

◆ LAN8841_GBCR_MS_MAN_CONF_VAL

#define LAN8841_GBCR_MS_MAN_CONF_VAL   0x0800

Definition at line 477 of file lan8841_driver.h.

◆ LAN8841_GBCR_PORT_TYPE

#define LAN8841_GBCR_PORT_TYPE   0x0400

Definition at line 478 of file lan8841_driver.h.

◆ LAN8841_GBCR_TEST_MODE

#define LAN8841_GBCR_TEST_MODE   0xE000

Definition at line 475 of file lan8841_driver.h.

◆ LAN8841_GBESR

#define LAN8841_GBESR   0x0F

Definition at line 58 of file lan8841_driver.h.

◆ LAN8841_GBESR_1000BT_FD

#define LAN8841_GBESR_1000BT_FD   0x2000

Definition at line 502 of file lan8841_driver.h.

◆ LAN8841_GBESR_1000BT_HD

#define LAN8841_GBESR_1000BT_HD   0x1000

Definition at line 503 of file lan8841_driver.h.

◆ LAN8841_GBESR_1000BX_FD

#define LAN8841_GBESR_1000BX_FD   0x8000

Definition at line 500 of file lan8841_driver.h.

◆ LAN8841_GBESR_1000BX_HD

#define LAN8841_GBESR_1000BX_HD   0x4000

Definition at line 501 of file lan8841_driver.h.

◆ LAN8841_GBSR

#define LAN8841_GBSR   0x0A

Definition at line 55 of file lan8841_driver.h.

◆ LAN8841_GBSR_IDLE_ERR_COUNT

#define LAN8841_GBSR_IDLE_ERR_COUNT   0x00FF

Definition at line 489 of file lan8841_driver.h.

◆ LAN8841_GBSR_LOCAL_RECEIVER_STATUS

#define LAN8841_GBSR_LOCAL_RECEIVER_STATUS   0x2000

Definition at line 485 of file lan8841_driver.h.

◆ LAN8841_GBSR_LP_1000BT_FD

#define LAN8841_GBSR_LP_1000BT_FD   0x0800

Definition at line 487 of file lan8841_driver.h.

◆ LAN8841_GBSR_LP_1000BT_HD

#define LAN8841_GBSR_LP_1000BT_HD   0x0400

Definition at line 488 of file lan8841_driver.h.

◆ LAN8841_GBSR_MS_CONF_FAULT

#define LAN8841_GBSR_MS_CONF_FAULT   0x8000

Definition at line 483 of file lan8841_driver.h.

◆ LAN8841_GBSR_MS_CONF_RES

#define LAN8841_GBSR_MS_CONF_RES   0x4000

Definition at line 484 of file lan8841_driver.h.

◆ LAN8841_GBSR_REMOTE_RECEIVER_STATUS

#define LAN8841_GBSR_REMOTE_RECEIVER_STATUS   0x1000

Definition at line 486 of file lan8841_driver.h.

◆ LAN8841_GPIO_BUF

#define LAN8841_GPIO_BUF   0x02, 0x0082

Definition at line 145 of file lan8841_driver.h.

◆ LAN8841_GPIO_DATA

#define LAN8841_GPIO_DATA   0x02, 0x0085

Definition at line 148 of file lan8841_driver.h.

◆ LAN8841_GPIO_DATA_SEL1

#define LAN8841_GPIO_DATA_SEL1   0x02, 0x0083

Definition at line 146 of file lan8841_driver.h.

◆ LAN8841_GPIO_DATA_SEL2

#define LAN8841_GPIO_DATA_SEL2   0x02, 0x0084

Definition at line 147 of file lan8841_driver.h.

◆ LAN8841_GPIO_DIR

#define LAN8841_GPIO_DIR   0x02, 0x0081

Definition at line 144 of file lan8841_driver.h.

◆ LAN8841_GPIO_EN

#define LAN8841_GPIO_EN   0x02, 0x0080

Definition at line 143 of file lan8841_driver.h.

◆ LAN8841_GPIO_INT_EN

#define LAN8841_GPIO_INT_EN   0x02, 0x0087

Definition at line 150 of file lan8841_driver.h.

◆ LAN8841_GPIO_INT_POL

#define LAN8841_GPIO_INT_POL   0x02, 0x0088

Definition at line 151 of file lan8841_driver.h.

◆ LAN8841_GPIO_INT_STS

#define LAN8841_GPIO_INT_STS   0x02, 0x0086

Definition at line 149 of file lan8841_driver.h.

◆ LAN8841_ISR

#define LAN8841_ISR   0x1B

Definition at line 67 of file lan8841_driver.h.

◆ LAN8841_ISR_1588

#define LAN8841_ISR_1588   0x0200

Definition at line 626 of file lan8841_driver.h.

◆ LAN8841_ISR_ADC_FIFO_ERROR

#define LAN8841_ISR_ADC_FIFO_ERROR   0x0002

Definition at line 634 of file lan8841_driver.h.

◆ LAN8841_ISR_ENERGY_DETECT

#define LAN8841_ISR_ENERGY_DETECT   0x0400

Definition at line 625 of file lan8841_driver.h.

◆ LAN8841_ISR_ENERGY_NOT_DETECT

#define LAN8841_ISR_ENERGY_NOT_DETECT   0x0800

Definition at line 624 of file lan8841_driver.h.

◆ LAN8841_ISR_GPIO

#define LAN8841_ISR_GPIO   0x0100

Definition at line 627 of file lan8841_driver.h.

◆ LAN8841_ISR_JABBER

#define LAN8841_ISR_JABBER   0x0080

Definition at line 628 of file lan8841_driver.h.

◆ LAN8841_ISR_LINK_DOWN

#define LAN8841_ISR_LINK_DOWN   0x0004

Definition at line 633 of file lan8841_driver.h.

◆ LAN8841_ISR_LINK_UP

#define LAN8841_ISR_LINK_UP   0x0001

Definition at line 635 of file lan8841_driver.h.

◆ LAN8841_ISR_LP_ACK

#define LAN8841_ISR_LP_ACK   0x0008

Definition at line 632 of file lan8841_driver.h.

◆ LAN8841_ISR_PAGE_RECEIVED

#define LAN8841_ISR_PAGE_RECEIVED   0x0020

Definition at line 630 of file lan8841_driver.h.

◆ LAN8841_ISR_PAR_DETECT_FAULT

#define LAN8841_ISR_PAR_DETECT_FAULT   0x0010

Definition at line 631 of file lan8841_driver.h.

◆ LAN8841_ISR_RECEIVE_ERROR

#define LAN8841_ISR_RECEIVE_ERROR   0x0040

Definition at line 629 of file lan8841_driver.h.

◆ LAN8841_LDO_CTRL

#define LAN8841_LDO_CTRL   0x1C, 0x000E

Definition at line 375 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR

#define LAN8841_LED_BEHAVIOR   0x17

Definition at line 64 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_ACT_OUT_SEL

#define LAN8841_LED_BEHAVIOR_LED_ACT_OUT_SEL   0x4000

Definition at line 587 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_BLINK_RATE

#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE   0x0C00

Definition at line 589 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_10HZ

#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_10HZ   0x0800

Definition at line 592 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_20HZ

#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_20HZ   0x0C00

Definition at line 593 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ

#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_2_5HZ   0x0000

Definition at line 590 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_5HZ

#define LAN8841_LED_BEHAVIOR_LED_BLINK_RATE_5HZ   0x0400

Definition at line 591 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS

#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS   0x000F

Definition at line 599 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1

#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED1   0x0001

Definition at line 603 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2

#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED2   0x0002

Definition at line 602 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED3

#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED3   0x0004

Definition at line 601 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED4

#define LAN8841_LED_BEHAVIOR_LED_COMBINATION_DIS_LED4   0x0008

Definition at line 600 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN

#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN   0x01E0

Definition at line 594 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1

#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED1   0x0020

Definition at line 598 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2

#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED2   0x0040

Definition at line 597 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED3

#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED3   0x0080

Definition at line 596 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED4

#define LAN8841_LED_BEHAVIOR_LED_PULSE_STRECH_EN_LED4   0x0100

Definition at line 595 of file lan8841_driver.h.

◆ LAN8841_LED_BEHAVIOR_LED_PULSING_EN

#define LAN8841_LED_BEHAVIOR_LED_PULSING_EN   0x1000

Definition at line 588 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL

#define LAN8841_LED_MODE_SEL   0x16

Definition at line 63 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG

#define LAN8841_LED_MODE_SEL_LED1_CONFIG   0x000F

Definition at line 571 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_ACT   0x000A

Definition at line 581 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_AN_FAULT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_AN_FAULT   0x000C

Definition at line 582 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_COL

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_COL   0x0009

Definition at line 580 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_DUPLEX_COL

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_DUPLEX_COL   0x0008

Definition at line 579 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_1000_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_1000_ACT   0x0001

Definition at line 573 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_100_1000_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_100_1000_ACT   0x0004

Definition at line 576 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_100_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_100_ACT   0x0002

Definition at line 574 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_1000_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_1000_ACT   0x0005

Definition at line 577 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_100_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_100_ACT   0x0006

Definition at line 578 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_10_ACT   0x0003

Definition at line 575 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_ACT

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_LINK_ACT   0x0000

Definition at line 572 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_OFF

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_OFF   0x000E

Definition at line 583 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED1_CONFIG_ON

#define LAN8841_LED_MODE_SEL_LED1_CONFIG_ON   0x000F

Definition at line 584 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG

#define LAN8841_LED_MODE_SEL_LED2_CONFIG   0x00F0

Definition at line 557 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_ACT   0x00A0

Definition at line 567 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_AN_FAULT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_AN_FAULT   0x00C0

Definition at line 568 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_COL

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_COL   0x0090

Definition at line 566 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_DUPLEX_COL

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_DUPLEX_COL   0x0080

Definition at line 565 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_1000_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_1000_ACT   0x0010

Definition at line 559 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_100_1000_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_100_1000_ACT   0x0040

Definition at line 562 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_100_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_100_ACT   0x0020

Definition at line 560 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_1000_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_1000_ACT   0x0050

Definition at line 563 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_100_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_100_ACT   0x0060

Definition at line 564 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_10_ACT   0x0030

Definition at line 561 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_ACT

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_LINK_ACT   0x0000

Definition at line 558 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_OFF

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_OFF   0x00E0

Definition at line 569 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED2_CONFIG_ON

#define LAN8841_LED_MODE_SEL_LED2_CONFIG_ON   0x00F0

Definition at line 570 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG

#define LAN8841_LED_MODE_SEL_LED3_CONFIG   0x0F00

Definition at line 543 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_ACT   0x0A00

Definition at line 553 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_AN_FAULT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_AN_FAULT   0x0C00

Definition at line 554 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_COL

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_COL   0x0900

Definition at line 552 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_DUPLEX_COL

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_DUPLEX_COL   0x0800

Definition at line 551 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_1000_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_1000_ACT   0x0100

Definition at line 545 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_100_1000_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_100_1000_ACT   0x0400

Definition at line 548 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_100_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_100_ACT   0x0200

Definition at line 546 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_1000_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_1000_ACT   0x0500

Definition at line 549 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_100_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_100_ACT   0x0600

Definition at line 550 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_10_ACT   0x0300

Definition at line 547 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_ACT

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_LINK_ACT   0x0000

Definition at line 544 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_OFF

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_OFF   0x0E00

Definition at line 555 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED3_CONFIG_ON

#define LAN8841_LED_MODE_SEL_LED3_CONFIG_ON   0x0F00

Definition at line 556 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG

#define LAN8841_LED_MODE_SEL_LED4_CONFIG   0xF000

Definition at line 529 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_ACT   0xA000

Definition at line 539 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_AN_FAULT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_AN_FAULT   0xC000

Definition at line 540 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_COL

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_COL   0x9000

Definition at line 538 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_DUPLEX_COL

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_DUPLEX_COL   0x8000

Definition at line 537 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_1000_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_1000_ACT   0x1000

Definition at line 531 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_100_1000_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_100_1000_ACT   0x4000

Definition at line 534 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_100_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_100_ACT   0x2000

Definition at line 532 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_1000_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_1000_ACT   0x5000

Definition at line 535 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_100_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_100_ACT   0x6000

Definition at line 536 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_10_ACT   0x3000

Definition at line 533 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_ACT

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_LINK_ACT   0x0000

Definition at line 530 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_OFF

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_OFF   0xE000

Definition at line 541 of file lan8841_driver.h.

◆ LAN8841_LED_MODE_SEL_LED4_CONFIG_ON

#define LAN8841_LED_MODE_SEL_LED4_CONFIG_ON   0xF000

Definition at line 542 of file lan8841_driver.h.

◆ LAN8841_LEGACY_LED_MODE

#define LAN8841_LEGACY_LED_MODE   0x1A

Definition at line 66 of file lan8841_driver.h.

◆ LAN8841_LEGACY_LED_MODE_KSZ9031_LED_MODE

#define LAN8841_LEGACY_LED_MODE_KSZ9031_LED_MODE   0x4000

Definition at line 621 of file lan8841_driver.h.

◆ LAN8841_LINKMD

#define LAN8841_LINKMD   0x12

Definition at line 60 of file lan8841_driver.h.

◆ LAN8841_LINKMD_FAULT_DATA

#define LAN8841_LINKMD_FAULT_DATA   0x00FF

Definition at line 522 of file lan8841_driver.h.

◆ LAN8841_LINKMD_PAIR

#define LAN8841_LINKMD_PAIR   0x3000

Definition at line 511 of file lan8841_driver.h.

◆ LAN8841_LINKMD_PAIR_A

#define LAN8841_LINKMD_PAIR_A   0x0000

Definition at line 512 of file lan8841_driver.h.

◆ LAN8841_LINKMD_PAIR_B

#define LAN8841_LINKMD_PAIR_B   0x1000

Definition at line 513 of file lan8841_driver.h.

◆ LAN8841_LINKMD_PAIR_C

#define LAN8841_LINKMD_PAIR_C   0x2000

Definition at line 514 of file lan8841_driver.h.

◆ LAN8841_LINKMD_PAIR_D

#define LAN8841_LINKMD_PAIR_D   0x3000

Definition at line 515 of file lan8841_driver.h.

◆ LAN8841_LINKMD_SEL

#define LAN8841_LINKMD_SEL   0x0C00

Definition at line 516 of file lan8841_driver.h.

◆ LAN8841_LINKMD_STATUS

#define LAN8841_LINKMD_STATUS   0x0300

Definition at line 517 of file lan8841_driver.h.

◆ LAN8841_LINKMD_STATUS_NORMAL

#define LAN8841_LINKMD_STATUS_NORMAL   0x0000

Definition at line 518 of file lan8841_driver.h.

◆ LAN8841_LINKMD_STATUS_OPEN

#define LAN8841_LINKMD_STATUS_OPEN   0x0100

Definition at line 519 of file lan8841_driver.h.

◆ LAN8841_LINKMD_STATUS_SHORT

#define LAN8841_LINKMD_STATUS_SHORT   0x0200

Definition at line 520 of file lan8841_driver.h.

◆ LAN8841_LINKMD_STATUS_TEST_FAILED

#define LAN8841_LINKMD_STATUS_TEST_FAILED   0x0300

Definition at line 521 of file lan8841_driver.h.

◆ LAN8841_LINKMD_TEST_EN

#define LAN8841_LINKMD_TEST_EN   0x8000

Definition at line 509 of file lan8841_driver.h.

◆ LAN8841_LINKMD_TX_DIS

#define LAN8841_LINKMD_TX_DIS   0x4000

Definition at line 510 of file lan8841_driver.h.

◆ LAN8841_LLC_TYPE_ID

#define LAN8841_LLC_TYPE_ID   0x02, 0x0146

Definition at line 222 of file lan8841_driver.h.

◆ LAN8841_MEAN_SLICER_ERROR

#define LAN8841_MEAN_SLICER_ERROR   0x01, 0x00E1

Definition at line 74 of file lan8841_driver.h.

◆ LAN8841_MMDAADR

#define LAN8841_MMDAADR   0x0E

Definition at line 57 of file lan8841_driver.h.

◆ LAN8841_MMDACR

#define LAN8841_MMDACR   0x0D

Definition at line 56 of file lan8841_driver.h.

◆ LAN8841_MMDACR_DEVAD

#define LAN8841_MMDACR_DEVAD   0x001F

Definition at line 497 of file lan8841_driver.h.

◆ LAN8841_MMDACR_FUNC

#define LAN8841_MMDACR_FUNC   0xC000

Definition at line 492 of file lan8841_driver.h.

◆ LAN8841_MMDACR_FUNC_ADDR

#define LAN8841_MMDACR_FUNC_ADDR   0x0000

Definition at line 493 of file lan8841_driver.h.

◆ LAN8841_MMDACR_FUNC_DATA_NO_POST_INC

#define LAN8841_MMDACR_FUNC_DATA_NO_POST_INC   0x4000

Definition at line 494 of file lan8841_driver.h.

◆ LAN8841_MMDACR_FUNC_DATA_POST_INC_RW

#define LAN8841_MMDACR_FUNC_DATA_POST_INC_RW   0x8000

Definition at line 495 of file lan8841_driver.h.

◆ LAN8841_MMDACR_FUNC_DATA_POST_INC_W

#define LAN8841_MMDACR_FUNC_DATA_POST_INC_W   0xC000

Definition at line 496 of file lan8841_driver.h.

◆ LAN8841_OP_MODE_STRAP

#define LAN8841_OP_MODE_STRAP   0x02, 0x0003

Definition at line 85 of file lan8841_driver.h.

◆ LAN8841_OP_MODE_STRAP_OVERRIDE

#define LAN8841_OP_MODE_STRAP_OVERRIDE   0x02, 0x0002

Definition at line 84 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL

#define LAN8841_OUT_CTRL   0x19

Definition at line 65 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_INT_BUFFER_TYPE

#define LAN8841_OUT_CTRL_INT_BUFFER_TYPE   0x4000

Definition at line 607 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_BUFFER_TYPE

#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE   0x3F00

Definition at line 608 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED1

#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED1   0x0100

Definition at line 612 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED2

#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED2   0x0200

Definition at line 611 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED3

#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED3   0x0400

Definition at line 610 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED4

#define LAN8841_OUT_CTRL_LED_BUFFER_TYPE_LED4   0x0800

Definition at line 609 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_POLARITY

#define LAN8841_OUT_CTRL_LED_POLARITY   0x003F

Definition at line 614 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_POLARITY_LED1

#define LAN8841_OUT_CTRL_LED_POLARITY_LED1   0x0001

Definition at line 618 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_POLARITY_LED2

#define LAN8841_OUT_CTRL_LED_POLARITY_LED2   0x0002

Definition at line 617 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_POLARITY_LED3

#define LAN8841_OUT_CTRL_LED_POLARITY_LED3   0x0004

Definition at line 616 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_LED_POLARITY_LED4

#define LAN8841_OUT_CTRL_LED_POLARITY_LED4   0x0008

Definition at line 615 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_MDIO_BUFFER_TYPE

#define LAN8841_OUT_CTRL_MDIO_BUFFER_TYPE   0x8000

Definition at line 606 of file lan8841_driver.h.

◆ LAN8841_OUT_CTRL_PME_POLARITY

#define LAN8841_OUT_CTRL_PME_POLARITY   0x0080

Definition at line 613 of file lan8841_driver.h.

◆ LAN8841_PCS_CTRL1

#define LAN8841_PCS_CTRL1   0x03, 0x0000

Definition at line 353 of file lan8841_driver.h.

◆ LAN8841_PCS_STAT1

#define LAN8841_PCS_STAT1   0x03, 0x0001

Definition at line 354 of file lan8841_driver.h.

◆ LAN8841_PHY_ADDR

#define LAN8841_PHY_ADDR   3

Definition at line 39 of file lan8841_driver.h.

◆ LAN8841_PHYCON

#define LAN8841_PHYCON   0x1F

Definition at line 71 of file lan8841_driver.h.

◆ LAN8841_PHYCON_1000BT_MS_STATUS

#define LAN8841_PHYCON_1000BT_MS_STATUS   0x0004

Definition at line 658 of file lan8841_driver.h.

◆ LAN8841_PHYCON_DUPLEX_STATUS

#define LAN8841_PHYCON_DUPLEX_STATUS   0x0008

Definition at line 657 of file lan8841_driver.h.

◆ LAN8841_PHYCON_INT_POL_INVERT

#define LAN8841_PHYCON_INT_POL_INVERT   0x4000

Definition at line 651 of file lan8841_driver.h.

◆ LAN8841_PHYCON_JABBER_EN

#define LAN8841_PHYCON_JABBER_EN   0x0200

Definition at line 652 of file lan8841_driver.h.

◆ LAN8841_PHYCON_LINK_STATUS_CHECK_FAIL

#define LAN8841_PHYCON_LINK_STATUS_CHECK_FAIL   0x0001

Definition at line 660 of file lan8841_driver.h.

◆ LAN8841_PHYCON_SOFT_RESET

#define LAN8841_PHYCON_SOFT_RESET   0x0002

Definition at line 659 of file lan8841_driver.h.

◆ LAN8841_PHYCON_SPEED_1000BT

#define LAN8841_PHYCON_SPEED_1000BT   0x0040

Definition at line 654 of file lan8841_driver.h.

◆ LAN8841_PHYCON_SPEED_100BTX

#define LAN8841_PHYCON_SPEED_100BTX   0x0020

Definition at line 655 of file lan8841_driver.h.

◆ LAN8841_PHYCON_SPEED_10BT

#define LAN8841_PHYCON_SPEED_10BT   0x0010

Definition at line 656 of file lan8841_driver.h.

◆ LAN8841_PHYCON_SQE_TEST_EN

#define LAN8841_PHYCON_SQE_TEST_EN   0x0100

Definition at line 653 of file lan8841_driver.h.

◆ LAN8841_PHYID1

#define LAN8841_PHYID1   0x02

Definition at line 47 of file lan8841_driver.h.

◆ LAN8841_PHYID1_PHY_ID_MSB

#define LAN8841_PHYID1_PHY_ID_MSB   0xFFFF

Definition at line 411 of file lan8841_driver.h.

◆ LAN8841_PHYID1_PHY_ID_MSB_DEFAULT

#define LAN8841_PHYID1_PHY_ID_MSB_DEFAULT   0x0022

Definition at line 412 of file lan8841_driver.h.

◆ LAN8841_PHYID2

#define LAN8841_PHYID2   0x03

Definition at line 48 of file lan8841_driver.h.

◆ LAN8841_PHYID2_MODEL_NUM

#define LAN8841_PHYID2_MODEL_NUM   0x03F0

Definition at line 417 of file lan8841_driver.h.

◆ LAN8841_PHYID2_MODEL_NUM_DEFAULT

#define LAN8841_PHYID2_MODEL_NUM_DEFAULT   0x0250

Definition at line 418 of file lan8841_driver.h.

◆ LAN8841_PHYID2_PHY_ID_LSB

#define LAN8841_PHYID2_PHY_ID_LSB   0xFC00

Definition at line 415 of file lan8841_driver.h.

◆ LAN8841_PHYID2_PHY_ID_LSB_DEFAULT

#define LAN8841_PHYID2_PHY_ID_LSB_DEFAULT   0x1400

Definition at line 416 of file lan8841_driver.h.

◆ LAN8841_PHYID2_REVISION_NUM

#define LAN8841_PHYID2_REVISION_NUM   0x000F

Definition at line 419 of file lan8841_driver.h.

◆ LAN8841_PTP_ASYM_DLY_HI

#define LAN8841_PTP_ASYM_DLY_HI   0x02, 0x014E

Definition at line 230 of file lan8841_driver.h.

◆ LAN8841_PTP_ASYM_DLY_LO

#define LAN8841_PTP_ASYM_DLY_LO   0x02, 0x014F

Definition at line 231 of file lan8841_driver.h.

◆ LAN8841_PTP_CAP_INFO

#define LAN8841_PTP_CAP_INFO   0x02, 0x0152

Definition at line 234 of file lan8841_driver.h.

◆ LAN8841_PTP_CMD_CTL

#define LAN8841_PTP_CMD_CTL   0x02, 0x0100

Definition at line 152 of file lan8841_driver.h.

◆ LAN8841_PTP_DEBUG_SEL

#define LAN8841_PTP_DEBUG_SEL   0x02, 0x01FE

Definition at line 352 of file lan8841_driver.h.

◆ LAN8841_PTP_GENERAL_CONFIG

#define LAN8841_PTP_GENERAL_CONFIG   0x02, 0x0101

Definition at line 153 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_CAP_EN

#define LAN8841_PTP_GPIO_CAP_EN   0x02, 0x01F0

Definition at line 340 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_CAP_LOCK

#define LAN8841_PTP_GPIO_CAP_LOCK   0x02, 0x01F1

Definition at line 341 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_CAP_STS

#define LAN8841_PTP_GPIO_CAP_STS   0x02, 0x01FA

Definition at line 350 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_FE_LTC_NS_HI_CAP_X

#define LAN8841_PTP_GPIO_FE_LTC_NS_HI_CAP_X   0x02, 0x01F8

Definition at line 348 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_FE_LTC_NS_LO_CAP_X

#define LAN8841_PTP_GPIO_FE_LTC_NS_LO_CAP_X   0x02, 0x01F9

Definition at line 349 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_FE_LTC_SEC_HI_CAP_X

#define LAN8841_PTP_GPIO_FE_LTC_SEC_HI_CAP_X   0x02, 0x01F6

Definition at line 346 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_FE_LTC_SEC_LO_CAP_X

#define LAN8841_PTP_GPIO_FE_LTC_SEC_LO_CAP_X   0x02, 0x01F7

Definition at line 347 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_INT_CLR_CFG

#define LAN8841_PTP_GPIO_INT_CLR_CFG   0x02, 0x01FB

Definition at line 351 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_RE_LTC_NS_HI_CAP_X

#define LAN8841_PTP_GPIO_RE_LTC_NS_HI_CAP_X   0x02, 0x01F4

Definition at line 344 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_RE_LTC_NS_LO_CAP_X

#define LAN8841_PTP_GPIO_RE_LTC_NS_LO_CAP_X   0x02, 0x01F5

Definition at line 345 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_RE_LTC_SEC_HI_CAP_X

#define LAN8841_PTP_GPIO_RE_LTC_SEC_HI_CAP_X   0x02, 0x01F2

Definition at line 342 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_RE_LTC_SEC_LO_CAP_X

#define LAN8841_PTP_GPIO_RE_LTC_SEC_LO_CAP_X   0x02, 0x01F3

Definition at line 343 of file lan8841_driver.h.

◆ LAN8841_PTP_GPIO_SEL

#define LAN8841_PTP_GPIO_SEL   0x02, 0x0147

Definition at line 223 of file lan8841_driver.h.

◆ LAN8841_PTP_INT_EN

#define LAN8841_PTP_INT_EN   0x02, 0x0104

Definition at line 156 of file lan8841_driver.h.

◆ LAN8841_PTP_INT_STS

#define LAN8841_PTP_INT_STS   0x02, 0x0103

Definition at line 155 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_EXT_ADJ_CFG

#define LAN8841_PTP_LTC_EXT_ADJ_CFG   0x02, 0x0115

Definition at line 173 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RATE_ADJ_HI

#define LAN8841_PTP_LTC_RATE_ADJ_HI   0x02, 0x010D

Definition at line 165 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RATE_ADJ_LO

#define LAN8841_PTP_LTC_RATE_ADJ_LO   0x02, 0x010E

Definition at line 166 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RD_NS_HI

#define LAN8841_PTP_LTC_RD_NS_HI   0x02, 0x0169

Definition at line 257 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RD_NS_LO

#define LAN8841_PTP_LTC_RD_NS_LO   0x02, 0x016A

Definition at line 258 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RD_SEC_HI

#define LAN8841_PTP_LTC_RD_SEC_HI   0x02, 0x0166

Definition at line 254 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RD_SEC_LO

#define LAN8841_PTP_LTC_RD_SEC_LO   0x02, 0x0168

Definition at line 256 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RD_SEC_MID

#define LAN8841_PTP_LTC_RD_SEC_MID   0x02, 0x0167

Definition at line 255 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RD_SUBNS_HI

#define LAN8841_PTP_LTC_RD_SUBNS_HI   0x02, 0x016B

Definition at line 259 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_RD_SUBNS_LO

#define LAN8841_PTP_LTC_RD_SUBNS_LO   0x02, 0x016C

Definition at line 260 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_SET_NS_HI

#define LAN8841_PTP_LTC_SET_NS_HI   0x02, 0x0109

Definition at line 161 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_SET_NS_LO

#define LAN8841_PTP_LTC_SET_NS_LO   0x02, 0x010A

Definition at line 162 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_SET_SEC_HI

#define LAN8841_PTP_LTC_SET_SEC_HI   0x02, 0x0106

Definition at line 158 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_SET_SEC_LO

#define LAN8841_PTP_LTC_SET_SEC_LO   0x02, 0x0108

Definition at line 160 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_SET_SEC_MID

#define LAN8841_PTP_LTC_SET_SEC_MID   0x02, 0x0107

Definition at line 159 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_SET_SUBNS_HI

#define LAN8841_PTP_LTC_SET_SUBNS_HI   0x02, 0x010B

Definition at line 163 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_SET_SUBNS_LO

#define LAN8841_PTP_LTC_SET_SUBNS_LO   0x02, 0x010C

Definition at line 164 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_STEP_ADJ_HI

#define LAN8841_PTP_LTC_STEP_ADJ_HI   0x02, 0x0113

Definition at line 171 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_STEP_ADJ_LO

#define LAN8841_PTP_LTC_STEP_ADJ_LO   0x02, 0x0114

Definition at line 172 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_ACT_NS_HI_A

#define LAN8841_PTP_LTC_TARGET_ACT_NS_HI_A   0x02, 0x011E

Definition at line 182 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_ACT_NS_HI_B

#define LAN8841_PTP_LTC_TARGET_ACT_NS_HI_B   0x02, 0x0128

Definition at line 192 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_ACT_NS_LO_A

#define LAN8841_PTP_LTC_TARGET_ACT_NS_LO_A   0x02, 0x011F

Definition at line 183 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_ACT_NS_LO_B

#define LAN8841_PTP_LTC_TARGET_ACT_NS_LO_B   0x02, 0x0129

Definition at line 193 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_NS_HI_A

#define LAN8841_PTP_LTC_TARGET_NS_HI_A   0x02, 0x0118

Definition at line 176 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_NS_HI_B

#define LAN8841_PTP_LTC_TARGET_NS_HI_B   0x02, 0x0122

Definition at line 186 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_NS_LO_A

#define LAN8841_PTP_LTC_TARGET_NS_LO_A   0x02, 0x0119

Definition at line 177 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_NS_LO_B

#define LAN8841_PTP_LTC_TARGET_NS_LO_B   0x02, 0x0123

Definition at line 187 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_NS_HI_A

#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_HI_A   0x02, 0x011C

Definition at line 180 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_NS_HI_B

#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_HI_B   0x02, 0x0126

Definition at line 190 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_NS_LO_A

#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_LO_A   0x02, 0x011D

Definition at line 181 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_NS_LO_B

#define LAN8841_PTP_LTC_TARGET_RELOAD_NS_LO_B   0x02, 0x0127

Definition at line 191 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_SEC_HI_A

#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_HI_A   0x02, 0x011A

Definition at line 178 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_SEC_HI_B

#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_HI_B   0x02, 0x0124

Definition at line 188 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_SEC_LO_A

#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_LO_A   0x02, 0x011B

Definition at line 179 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_RELOAD_SEC_LO_B

#define LAN8841_PTP_LTC_TARGET_RELOAD_SEC_LO_B   0x02, 0x0125

Definition at line 189 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_SEC_HI_A

#define LAN8841_PTP_LTC_TARGET_SEC_HI_A   0x02, 0x0116

Definition at line 174 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_SEC_HI_B

#define LAN8841_PTP_LTC_TARGET_SEC_HI_B   0x02, 0x0120

Definition at line 184 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_SEC_LO_A

#define LAN8841_PTP_LTC_TARGET_SEC_LO_A   0x02, 0x0117

Definition at line 175 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TARGET_SEC_LO_B

#define LAN8841_PTP_LTC_TARGET_SEC_LO_B   0x02, 0x0121

Definition at line 185 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TEMP_RATE_ADJ_HI

#define LAN8841_PTP_LTC_TEMP_RATE_ADJ_HI   0x02, 0x010F

Definition at line 167 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TEMP_RATE_ADJ_LO

#define LAN8841_PTP_LTC_TEMP_RATE_ADJ_LO   0x02, 0x0110

Definition at line 168 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TEMP_RATE_DURATION_HI

#define LAN8841_PTP_LTC_TEMP_RATE_DURATION_HI   0x02, 0x0111

Definition at line 169 of file lan8841_driver.h.

◆ LAN8841_PTP_LTC_TEMP_RATE_DURATION_LO

#define LAN8841_PTP_LTC_TEMP_RATE_DURATION_LO   0x02, 0x0112

Definition at line 170 of file lan8841_driver.h.

◆ LAN8841_PTP_MOD_ERR

#define LAN8841_PTP_MOD_ERR   0x02, 0x0105

Definition at line 157 of file lan8841_driver.h.

◆ LAN8841_PTP_PEERDLY_HI

#define LAN8841_PTP_PEERDLY_HI   0x02, 0x0150

Definition at line 232 of file lan8841_driver.h.

◆ LAN8841_PTP_PEERDLY_LO

#define LAN8841_PTP_PEERDLY_LO   0x02, 0x0151

Definition at line 233 of file lan8841_driver.h.

◆ LAN8841_PTP_REF_CLK_CFG

#define LAN8841_PTP_REF_CLK_CFG   0x02, 0x0102

Definition at line 154 of file lan8841_driver.h.

◆ LAN8841_PTP_REV

#define LAN8841_PTP_REV   0x02, 0x016D

Definition at line 261 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_CF_CFG

#define LAN8841_PTP_RX_CF_CFG   0x02, 0x0181

Definition at line 280 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_CF_MOD_EN

#define LAN8841_PTP_RX_CF_MOD_EN   0x02, 0x0180

Definition at line 279 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_CHKSUM_DROPPED_CNT_HI

#define LAN8841_PTP_RX_CHKSUM_DROPPED_CNT_HI   0x02, 0x0190

Definition at line 295 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_CHKSUM_DROPPED_CNT_LO

#define LAN8841_PTP_RX_CHKSUM_DROPPED_CNT_LO   0x02, 0x0191

Definition at line 296 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_DOMAIN_DOMAIN_LO

#define LAN8841_PTP_RX_DOMAIN_DOMAIN_LO   0x02, 0x0177

Definition at line 270 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_DOMAIN_MASK_DOMAIN_UP

#define LAN8841_PTP_RX_DOMAIN_MASK_DOMAIN_UP   0x02, 0x0178

Definition at line 271 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_FRMS_MOD_CNT_HI

#define LAN8841_PTP_RX_FRMS_MOD_CNT_HI   0x02, 0x0192

Definition at line 297 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_FRMS_MOD_CNT_LO

#define LAN8841_PTP_RX_FRMS_MOD_CNT_LO   0x02, 0x0193

Definition at line 298 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_INGRESS_NS_HI

#define LAN8841_PTP_RX_INGRESS_NS_HI   0x02, 0x0182

Definition at line 281 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_INGRESS_NS_LO

#define LAN8841_PTP_RX_INGRESS_NS_LO   0x02, 0x0183

Definition at line 282 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_INGRESS_SEC_HI

#define LAN8841_PTP_RX_INGRESS_SEC_HI   0x02, 0x0184

Definition at line 283 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_INGRESS_SEC_LO

#define LAN8841_PTP_RX_INGRESS_SEC_LO   0x02, 0x0185

Definition at line 284 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_LATENCY_10

#define LAN8841_PTP_RX_LATENCY_10   0x02, 0x0148

Definition at line 224 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_LATENCY_100

#define LAN8841_PTP_RX_LATENCY_100   0x02, 0x014A

Definition at line 226 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_LATENCY_1000

#define LAN8841_PTP_RX_LATENCY_1000   0x02, 0x014C

Definition at line 228 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_MOD

#define LAN8841_PTP_RX_MOD   0x02, 0x017D

Definition at line 276 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_MSG_HEADER1

#define LAN8841_PTP_RX_MSG_HEADER1   0x02, 0x0186

Definition at line 285 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_MSG_HEADER2

#define LAN8841_PTP_RX_MSG_HEADER2   0x02, 0x0187

Definition at line 286 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PARSE_CONFIG

#define LAN8841_PTP_RX_PARSE_CONFIG   0x02, 0x0170

Definition at line 263 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PARSE_IP_ADDR_EN

#define LAN8841_PTP_RX_PARSE_IP_ADDR_EN   0x02, 0x0173

Definition at line 266 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PARSE_L2_ADDR_EN

#define LAN8841_PTP_RX_PARSE_L2_ADDR_EN   0x02, 0x0172

Definition at line 265 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PARSE_UDP_DEST_PORT

#define LAN8841_PTP_RX_PARSE_UDP_DEST_PORT   0x02, 0x0175

Definition at line 268 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PARSE_UDP_SRC_PORT

#define LAN8841_PTP_RX_PARSE_UDP_SRC_PORT   0x02, 0x0174

Definition at line 267 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PARSE_VLAN_CONFIG

#define LAN8841_PTP_RX_PARSE_VLAN_CONFIG   0x02, 0x0171

Definition at line 264 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PDREQ_NS_HI

#define LAN8841_PTP_RX_PDREQ_NS_HI   0x02, 0x018B

Definition at line 290 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PDREQ_NS_LO

#define LAN8841_PTP_RX_PDREQ_NS_LO   0x02, 0x018C

Definition at line 291 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PDREQ_SEC_HI

#define LAN8841_PTP_RX_PDREQ_SEC_HI   0x02, 0x0188

Definition at line 287 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PDREQ_SEC_LOW

#define LAN8841_PTP_RX_PDREQ_SEC_LOW   0x02, 0x018A

Definition at line 289 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_PDREQ_SEC_MID

#define LAN8841_PTP_RX_PDREQ_SEC_MID   0x02, 0x0189

Definition at line 288 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_RAW_TS_NS_HI

#define LAN8841_PTP_RX_RAW_TS_NS_HI   0x02, 0x018E

Definition at line 293 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_RAW_TS_NS_LO

#define LAN8841_PTP_RX_RAW_TS_NS_LO   0x02, 0x018F

Definition at line 294 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_RAW_TS_SEC

#define LAN8841_PTP_RX_RAW_TS_SEC   0x02, 0x018D

Definition at line 292 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_RSVD_BYTE_CFG

#define LAN8841_PTP_RX_RSVD_BYTE_CFG   0x02, 0x017E

Definition at line 277 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_SDOID_MASK_SDOID_UP

#define LAN8841_PTP_RX_SDOID_MASK_SDOID_UP   0x02, 0x017A

Definition at line 273 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_SDOID_SDOID_LO

#define LAN8841_PTP_RX_SDOID_SDOID_LO   0x02, 0x0179

Definition at line 272 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_TAIL_TAG

#define LAN8841_PTP_RX_TAIL_TAG   0x02, 0x017F

Definition at line 278 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_TIMESTAMP_CONFIG

#define LAN8841_PTP_RX_TIMESTAMP_CONFIG   0x02, 0x017C

Definition at line 275 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_TIMESTAMP_EN

#define LAN8841_PTP_RX_TIMESTAMP_EN   0x02, 0x017B

Definition at line 274 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR0

#define LAN8841_PTP_RX_USER_IP_ADDR0   0x02, 0x012D

Definition at line 197 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR1

#define LAN8841_PTP_RX_USER_IP_ADDR1   0x02, 0x012E

Definition at line 198 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR2

#define LAN8841_PTP_RX_USER_IP_ADDR2   0x02, 0x012F

Definition at line 199 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR3

#define LAN8841_PTP_RX_USER_IP_ADDR3   0x02, 0x0130

Definition at line 200 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR4

#define LAN8841_PTP_RX_USER_IP_ADDR4   0x02, 0x0131

Definition at line 201 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR5

#define LAN8841_PTP_RX_USER_IP_ADDR5   0x02, 0x0132

Definition at line 202 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR6

#define LAN8841_PTP_RX_USER_IP_ADDR6   0x02, 0x0133

Definition at line 203 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_ADDR7

#define LAN8841_PTP_RX_USER_IP_ADDR7   0x02, 0x0134

Definition at line 204 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK0

#define LAN8841_PTP_RX_USER_IP_MASK0   0x02, 0x0135

Definition at line 205 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK1

#define LAN8841_PTP_RX_USER_IP_MASK1   0x02, 0x0136

Definition at line 206 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK2

#define LAN8841_PTP_RX_USER_IP_MASK2   0x02, 0x0137

Definition at line 207 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK3

#define LAN8841_PTP_RX_USER_IP_MASK3   0x02, 0x0138

Definition at line 208 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK4

#define LAN8841_PTP_RX_USER_IP_MASK4   0x02, 0x0139

Definition at line 209 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK5

#define LAN8841_PTP_RX_USER_IP_MASK5   0x02, 0x013A

Definition at line 210 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK6

#define LAN8841_PTP_RX_USER_IP_MASK6   0x02, 0x013B

Definition at line 211 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_IP_MASK7

#define LAN8841_PTP_RX_USER_IP_MASK7   0x02, 0x013C

Definition at line 212 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_MAC_HI

#define LAN8841_PTP_RX_USER_MAC_HI   0x02, 0x012A

Definition at line 194 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_MAC_LO

#define LAN8841_PTP_RX_USER_MAC_LO   0x02, 0x012C

Definition at line 196 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_USER_MAC_MID

#define LAN8841_PTP_RX_USER_MAC_MID   0x02, 0x012B

Definition at line 195 of file lan8841_driver.h.

◆ LAN8841_PTP_RX_VERSION

#define LAN8841_PTP_RX_VERSION   0x02, 0x0176

Definition at line 269 of file lan8841_driver.h.

◆ LAN8841_PTP_SPARE

#define LAN8841_PTP_SPARE   0x02, 0x016E

Definition at line 262 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_CF_CFG

#define LAN8841_PTP_TX_CF_CFG   0x02, 0x01C1

Definition at line 316 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_CF_MOD_EN

#define LAN8841_PTP_TX_CF_MOD_EN   0x02, 0x01C0

Definition at line 315 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_CHKSUM_DROPPED_CNT_HI

#define LAN8841_PTP_TX_CHKSUM_DROPPED_CNT_HI   0x02, 0x01D5

Definition at line 336 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_CHKSUM_DROPPED_CNT_LO

#define LAN8841_PTP_TX_CHKSUM_DROPPED_CNT_LO   0x02, 0x01D6

Definition at line 337 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_DOMAIN_DOMAIN_LO

#define LAN8841_PTP_TX_DOMAIN_DOMAIN_LO   0x02, 0x01B7

Definition at line 306 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_DOMAIN_MASK_DOMAIN_UP

#define LAN8841_PTP_TX_DOMAIN_MASK_DOMAIN_UP   0x02, 0x01B8

Definition at line 307 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_EGRESS_NS_HI

#define LAN8841_PTP_TX_EGRESS_NS_HI   0x02, 0x01C2

Definition at line 317 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_EGRESS_NS_LO

#define LAN8841_PTP_TX_EGRESS_NS_LO   0x02, 0x01C3

Definition at line 318 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_EGRESS_SEC_HI

#define LAN8841_PTP_TX_EGRESS_SEC_HI   0x02, 0x01C4

Definition at line 319 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_EGRESS_SEC_LO

#define LAN8841_PTP_TX_EGRESS_SEC_LO   0x02, 0x01C5

Definition at line 320 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_FRMS_MOD_CNT_HI

#define LAN8841_PTP_TX_FRMS_MOD_CNT_HI   0x02, 0x01D7

Definition at line 338 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_FRMS_MOD_CNT_LO

#define LAN8841_PTP_TX_FRMS_MOD_CNT_LO   0x02, 0x01D8

Definition at line 339 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_LATENCY_10

#define LAN8841_PTP_TX_LATENCY_10   0x02, 0x0149

Definition at line 225 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_LATENCY_100

#define LAN8841_PTP_TX_LATENCY_100   0x02, 0x014B

Definition at line 227 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_LATENCY_1000

#define LAN8841_PTP_TX_LATENCY_1000   0x02, 0x014D

Definition at line 229 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_MOD

#define LAN8841_PTP_TX_MOD   0x02, 0x01BD

Definition at line 312 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_MSG_HEADER1

#define LAN8841_PTP_TX_MSG_HEADER1   0x02, 0x01C6

Definition at line 321 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_MSG_HEADER2

#define LAN8841_PTP_TX_MSG_HEADER2   0x02, 0x01C7

Definition at line 322 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PARSE_CONFIG

#define LAN8841_PTP_TX_PARSE_CONFIG   0x02, 0x01B0

Definition at line 299 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PARSE_IP_ADDR_EN

#define LAN8841_PTP_TX_PARSE_IP_ADDR_EN   0x02, 0x01B3

Definition at line 302 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PARSE_L2_ADDR_EN

#define LAN8841_PTP_TX_PARSE_L2_ADDR_EN   0x02, 0x01B2

Definition at line 301 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PARSE_UDP_DEST_PORT

#define LAN8841_PTP_TX_PARSE_UDP_DEST_PORT   0x02, 0x01B5

Definition at line 304 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PARSE_UDP_SRC_PORT

#define LAN8841_PTP_TX_PARSE_UDP_SRC_PORT   0x02, 0x01B4

Definition at line 303 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PARSE_VLAN_CONFIG

#define LAN8841_PTP_TX_PARSE_VLAN_CONFIG   0x02, 0x01B1

Definition at line 300 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PDRESP_NS_HI

#define LAN8841_PTP_TX_PDRESP_NS_HI   0x02, 0x01D0

Definition at line 331 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PDRESP_NS_LO

#define LAN8841_PTP_TX_PDRESP_NS_LO   0x02, 0x01D1

Definition at line 332 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PDRESP_SEC_HI

#define LAN8841_PTP_TX_PDRESP_SEC_HI   0x02, 0x01CD

Definition at line 328 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PDRESP_SEC_LOW

#define LAN8841_PTP_TX_PDRESP_SEC_LOW   0x02, 0x01CF

Definition at line 330 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_PDRESP_SEC_MID

#define LAN8841_PTP_TX_PDRESP_SEC_MID   0x02, 0x01CE

Definition at line 329 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_RAW_TS_NS_HI

#define LAN8841_PTP_TX_RAW_TS_NS_HI   0x02, 0x01D3

Definition at line 334 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_RAW_TS_NS_LO

#define LAN8841_PTP_TX_RAW_TS_NS_LO   0x02, 0x01D4

Definition at line 335 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_RAW_TS_SEC

#define LAN8841_PTP_TX_RAW_TS_SEC   0x02, 0x01D2

Definition at line 333 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_RSVD_BYTE_CFG

#define LAN8841_PTP_TX_RSVD_BYTE_CFG   0x02, 0x01BE

Definition at line 313 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_SDOID_MASK_SDOID_UP

#define LAN8841_PTP_TX_SDOID_MASK_SDOID_UP   0x02, 0x01BA

Definition at line 309 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_SDOID_SDOID_LO

#define LAN8841_PTP_TX_SDOID_SDOID_LO   0x02, 0x01B9

Definition at line 308 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_SYNC_NS_HI

#define LAN8841_PTP_TX_SYNC_NS_HI   0x02, 0x01CB

Definition at line 326 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_SYNC_NS_LO

#define LAN8841_PTP_TX_SYNC_NS_LO   0x02, 0x01CC

Definition at line 327 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_SYNC_SEC_HI

#define LAN8841_PTP_TX_SYNC_SEC_HI   0x02, 0x01C8

Definition at line 323 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_SYNC_SEC_LOW

#define LAN8841_PTP_TX_SYNC_SEC_LOW   0x02, 0x01CA

Definition at line 325 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_SYNC_SEC_MID

#define LAN8841_PTP_TX_SYNC_SEC_MID   0x02, 0x01C9

Definition at line 324 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_TAIL_TAG

#define LAN8841_PTP_TX_TAIL_TAG   0x02, 0x01BF

Definition at line 314 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_TIMESTAMP_CONFIG

#define LAN8841_PTP_TX_TIMESTAMP_CONFIG   0x02, 0x01BC

Definition at line 311 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_TIMESTAMP_EN

#define LAN8841_PTP_TX_TIMESTAMP_EN   0x02, 0x01BB

Definition at line 310 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR0

#define LAN8841_PTP_TX_USER_IP_ADDR0   0x02, 0x0156

Definition at line 238 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR1

#define LAN8841_PTP_TX_USER_IP_ADDR1   0x02, 0x0157

Definition at line 239 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR2

#define LAN8841_PTP_TX_USER_IP_ADDR2   0x02, 0x0158

Definition at line 240 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR3

#define LAN8841_PTP_TX_USER_IP_ADDR3   0x02, 0x0159

Definition at line 241 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR4

#define LAN8841_PTP_TX_USER_IP_ADDR4   0x02, 0x015A

Definition at line 242 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR5

#define LAN8841_PTP_TX_USER_IP_ADDR5   0x02, 0x015B

Definition at line 243 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR6

#define LAN8841_PTP_TX_USER_IP_ADDR6   0x02, 0x015C

Definition at line 244 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_ADDR7

#define LAN8841_PTP_TX_USER_IP_ADDR7   0x02, 0x015D

Definition at line 245 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK0

#define LAN8841_PTP_TX_USER_IP_MASK0   0x02, 0x015E

Definition at line 246 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK1

#define LAN8841_PTP_TX_USER_IP_MASK1   0x02, 0x015F

Definition at line 247 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK2

#define LAN8841_PTP_TX_USER_IP_MASK2   0x02, 0x0160

Definition at line 248 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK3

#define LAN8841_PTP_TX_USER_IP_MASK3   0x02, 0x0161

Definition at line 249 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK4

#define LAN8841_PTP_TX_USER_IP_MASK4   0x02, 0x0162

Definition at line 250 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK5

#define LAN8841_PTP_TX_USER_IP_MASK5   0x02, 0x0163

Definition at line 251 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK6

#define LAN8841_PTP_TX_USER_IP_MASK6   0x02, 0x0164

Definition at line 252 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_IP_MASK7

#define LAN8841_PTP_TX_USER_IP_MASK7   0x02, 0x0165

Definition at line 253 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_MAC_HI

#define LAN8841_PTP_TX_USER_MAC_HI   0x02, 0x0153

Definition at line 235 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_MAC_LO

#define LAN8841_PTP_TX_USER_MAC_LO   0x02, 0x0155

Definition at line 237 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_USER_MAC_MID

#define LAN8841_PTP_TX_USER_MAC_MID   0x02, 0x0154

Definition at line 236 of file lan8841_driver.h.

◆ LAN8841_PTP_TX_VERSION

#define LAN8841_PTP_TX_VERSION   0x02, 0x01B6

Definition at line 305 of file lan8841_driver.h.

◆ LAN8841_RGMII_RX_DATA_PAD_SKEW

#define LAN8841_RGMII_RX_DATA_PAD_SKEW   0x02, 0x0005

Definition at line 87 of file lan8841_driver.h.

◆ LAN8841_RGMII_TX_DATA_PAD_SKEW

#define LAN8841_RGMII_TX_DATA_PAD_SKEW   0x02, 0x0006

Definition at line 88 of file lan8841_driver.h.

◆ LAN8841_RLB

#define LAN8841_RLB   0x11

Definition at line 59 of file lan8841_driver.h.

◆ LAN8841_RLB_REMOTE_LOOPBACK

#define LAN8841_RLB_REMOTE_LOOPBACK   0x0100

Definition at line 506 of file lan8841_driver.h.

◆ LAN8841_RX_DLL_CTRL

#define LAN8841_RX_DLL_CTRL   0x02, 0x004C

Definition at line 140 of file lan8841_driver.h.

◆ LAN8841_RX_DLL_CTRL_BYPASS_RXDLL

#define LAN8841_RX_DLL_CTRL_BYPASS_RXDLL   0x4000

Definition at line 664 of file lan8841_driver.h.

◆ LAN8841_RX_DLL_CTRL_RXDLL_TAP_ADJ

#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_ADJ   0x007F

Definition at line 667 of file lan8841_driver.h.

◆ LAN8841_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT

#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_ADJ_DEFAULT   0x001B

Definition at line 668 of file lan8841_driver.h.

◆ LAN8841_RX_DLL_CTRL_RXDLL_TAP_SEL

#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_SEL   0x3F80

Definition at line 665 of file lan8841_driver.h.

◆ LAN8841_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT

#define LAN8841_RX_DLL_CTRL_RXDLL_TAP_SEL_DEFAULT   0x0D80

Definition at line 666 of file lan8841_driver.h.

◆ LAN8841_RX_DLL_CTRL_RXDLL_TUNE_DIS

#define LAN8841_RX_DLL_CTRL_RXDLL_TUNE_DIS   0x8000

Definition at line 663 of file lan8841_driver.h.

◆ LAN8841_RXERCTR

#define LAN8841_RXERCTR   0x15

Definition at line 62 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_CORRECT_COUNT_HI

#define LAN8841_SELF_TEST_CORRECT_COUNT_HI   0x02, 0x003D

Definition at line 137 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_CORRECT_COUNT_LO

#define LAN8841_SELF_TEST_CORRECT_COUNT_LO   0x02, 0x003C

Definition at line 136 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_EN

#define LAN8841_SELF_TEST_EN   0x02, 0x000E

Definition at line 95 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_ERROR_COUNT_HI

#define LAN8841_SELF_TEST_ERROR_COUNT_HI   0x02, 0x003F

Definition at line 139 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_ERROR_COUNT_LO

#define LAN8841_SELF_TEST_ERROR_COUNT_LO   0x02, 0x003E

Definition at line 138 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_FRAME_COUNT_EN

#define LAN8841_SELF_TEST_FRAME_COUNT_EN   0x02, 0x000C

Definition at line 93 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_PGEN_EN

#define LAN8841_SELF_TEST_PGEN_EN   0x02, 0x000D

Definition at line 94 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_PKT_COUNT_HI

#define LAN8841_SELF_TEST_PKT_COUNT_HI   0x02, 0x000A

Definition at line 91 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_PKT_COUNT_LO

#define LAN8841_SELF_TEST_PKT_COUNT_LO   0x02, 0x0009

Definition at line 90 of file lan8841_driver.h.

◆ LAN8841_SELF_TEST_STAT

#define LAN8841_SELF_TEST_STAT   0x02, 0x000B

Definition at line 92 of file lan8841_driver.h.

◆ LAN8841_SPDC

#define LAN8841_SPDC   0x1D

Definition at line 69 of file lan8841_driver.h.

◆ LAN8841_SPDC_CLK_GATE_OVERRIDE

#define LAN8841_SPDC_CLK_GATE_OVERRIDE   0x0800

Definition at line 642 of file lan8841_driver.h.

◆ LAN8841_SPDC_IO_DC_TEST_EN

#define LAN8841_SPDC_IO_DC_TEST_EN   0x0080

Definition at line 644 of file lan8841_driver.h.

◆ LAN8841_SPDC_PLL_DIS

#define LAN8841_SPDC_PLL_DIS   0x0400

Definition at line 643 of file lan8841_driver.h.

◆ LAN8841_SPDC_VOH

#define LAN8841_SPDC_VOH   0x0040

Definition at line 645 of file lan8841_driver.h.

◆ LAN8841_STRAP_STAT

#define LAN8841_STRAP_STAT   0x02, 0x0001

Definition at line 83 of file lan8841_driver.h.

◆ LAN8841_TX_DLL_CTRL

#define LAN8841_TX_DLL_CTRL   0x02, 0x004D

Definition at line 141 of file lan8841_driver.h.

◆ LAN8841_TX_DLL_CTRL_BYPASS_TXDLL

#define LAN8841_TX_DLL_CTRL_BYPASS_TXDLL   0x4000

Definition at line 672 of file lan8841_driver.h.

◆ LAN8841_TX_DLL_CTRL_TXDLL_TAP_ADJ

#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_ADJ   0x007F

Definition at line 675 of file lan8841_driver.h.

◆ LAN8841_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT

#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_ADJ_DEFAULT   0x001B

Definition at line 676 of file lan8841_driver.h.

◆ LAN8841_TX_DLL_CTRL_TXDLL_TAP_SEL

#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_SEL   0x3F80

Definition at line 673 of file lan8841_driver.h.

◆ LAN8841_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT

#define LAN8841_TX_DLL_CTRL_TXDLL_TAP_SEL_DEFAULT   0x0D80

Definition at line 674 of file lan8841_driver.h.

◆ LAN8841_TX_DLL_CTRL_TXDLL_TUNE_DIS

#define LAN8841_TX_DLL_CTRL_TXDLL_TUNE_DIS   0x8000

Definition at line 671 of file lan8841_driver.h.

◆ LAN8841_VLAN1_ID_MASK

#define LAN8841_VLAN1_ID_MASK   0x02, 0x013F

Definition at line 215 of file lan8841_driver.h.

◆ LAN8841_VLAN1_TYPE_ID

#define LAN8841_VLAN1_TYPE_ID   0x02, 0x013E

Definition at line 214 of file lan8841_driver.h.

◆ LAN8841_VLAN1_VID_RANGE_LO

#define LAN8841_VLAN1_VID_RANGE_LO   0x02, 0x0141

Definition at line 217 of file lan8841_driver.h.

◆ LAN8841_VLAN1_VID_RANGE_UP

#define LAN8841_VLAN1_VID_RANGE_UP   0x02, 0x0140

Definition at line 216 of file lan8841_driver.h.

◆ LAN8841_VLAN2_ID_MASK

#define LAN8841_VLAN2_ID_MASK   0x02, 0x0143

Definition at line 219 of file lan8841_driver.h.

◆ LAN8841_VLAN2_TYPE_ID

#define LAN8841_VLAN2_TYPE_ID   0x02, 0x0142

Definition at line 218 of file lan8841_driver.h.

◆ LAN8841_VLAN2_VID_RANGE_LO

#define LAN8841_VLAN2_VID_RANGE_LO   0x02, 0x0145

Definition at line 221 of file lan8841_driver.h.

◆ LAN8841_VLAN2_VID_RANGE_UP

#define LAN8841_VLAN2_VID_RANGE_UP   0x02, 0x0144

Definition at line 220 of file lan8841_driver.h.

◆ LAN8841_VLAN_TYPE_ID

#define LAN8841_VLAN_TYPE_ID   0x02, 0x013D

Definition at line 213 of file lan8841_driver.h.

◆ LAN8841_WOL_CTRL

#define LAN8841_WOL_CTRL   0x02, 0x0010

Definition at line 96 of file lan8841_driver.h.

◆ LAN8841_WOL_CTRL_STAT

#define LAN8841_WOL_CTRL_STAT   0x02, 0x002C

Definition at line 124 of file lan8841_driver.h.

◆ LAN8841_WOL_CUSTOM_PKT_RECEIVE_STAT

#define LAN8841_WOL_CUSTOM_PKT_RECEIVE_STAT   0x02, 0x002D

Definition at line 125 of file lan8841_driver.h.

◆ LAN8841_WOL_DATA_MODULE_STAT

#define LAN8841_WOL_DATA_MODULE_STAT   0x02, 0x002F

Definition at line 127 of file lan8841_driver.h.

◆ LAN8841_WOL_MAC_HI

#define LAN8841_WOL_MAC_HI   0x02, 0x0013

Definition at line 99 of file lan8841_driver.h.

◆ LAN8841_WOL_MAC_LO

#define LAN8841_WOL_MAC_LO   0x02, 0x0011

Definition at line 97 of file lan8841_driver.h.

◆ LAN8841_WOL_MAC_MI

#define LAN8841_WOL_MAC_MI   0x02, 0x0012

Definition at line 98 of file lan8841_driver.h.

◆ LAN8841_WOL_MAGIC_PKT_RECEIVE_STAT

#define LAN8841_WOL_MAGIC_PKT_RECEIVE_STAT   0x02, 0x002E

Definition at line 126 of file lan8841_driver.h.

◆ LAN8841_XTAL_CTRL

#define LAN8841_XTAL_CTRL   0x1C, 0x0001

Definition at line 373 of file lan8841_driver.h.

Function Documentation

◆ lan8841DisableIrq()

void lan8841DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 183 of file lan8841_driver.c.

◆ lan8841DumpPhyReg()

void lan8841DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 326 of file lan8841_driver.c.

◆ lan8841EnableIrq()

void lan8841EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 168 of file lan8841_driver.c.

◆ lan8841EventHandler()

void lan8841EventHandler ( NetInterface interface)

LAN8841 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 198 of file lan8841_driver.c.

◆ lan8841Init()

error_t lan8841Init ( NetInterface interface)

LAN8841 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 60 of file lan8841_driver.c.

◆ lan8841InitHook()

void lan8841InitHook ( NetInterface interface)

LAN8841 custom configuration.

Parameters
[in]interfaceUnderlying network interface

Definition at line 113 of file lan8841_driver.c.

◆ lan8841ReadMmdReg()

uint16_t lan8841ReadMmdReg ( 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 lan8841_driver.c.

◆ lan8841ReadPhyReg()

uint16_t lan8841ReadPhyReg ( 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 lan8841_driver.c.

◆ lan8841Tick()

void lan8841Tick ( NetInterface interface)

LAN8841 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 130 of file lan8841_driver.c.

◆ lan8841WriteMmdReg()

void lan8841WriteMmdReg ( 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 lan8841_driver.c.

◆ lan8841WritePhyReg()

void lan8841WritePhyReg ( 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 lan8841_driver.c.

Variable Documentation

◆ lan8841PhyDriver

const PhyDriver lan8841PhyDriver
extern

LAN8841 Ethernet PHY driver.

Definition at line 44 of file lan8841_driver.c.