tja1101_driver.h File Reference

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

#include "core/nic.h"

Go to the source code of this file.

Macros

#define TJA1101_PHY_ADDR   0
 
#define TJA1101_BASIC_CTRL   0x00
 
#define TJA1101_BASIC_STAT   0x01
 
#define TJA1101_PHY_ID1   0x02
 
#define TJA1101_PHY_ID2   0x03
 
#define TJA1101_EXTENDED_STAT   0x0F
 
#define TJA1101_PHY_ID3   0x10
 
#define TJA1101_EXTENDED_CTRL   0x11
 
#define TJA1101_CONFIG1   0x12
 
#define TJA1101_CONFIG2   0x13
 
#define TJA1101_SYM_ERR_COUNTER   0x14
 
#define TJA1101_INT_SRC   0x15
 
#define TJA1101_INT_EN   0x16
 
#define TJA1101_COMM_STAT   0x17
 
#define TJA1101_GENERAL_STAT   0x18
 
#define TJA1101_EXTERNAL_STAT   0x19
 
#define TJA1101_LINK_FAIL_COUNTER   0x1A
 
#define TJA1101_COMM_CTRL   0x1B
 
#define TJA1101_CONFIG3   0x1C
 
#define TJA1101_BASIC_CTRL_RESET   0x8000
 
#define TJA1101_BASIC_CTRL_LOOPBACK   0x4000
 
#define TJA1101_BASIC_CTRL_SPEED_SEL_LSB   0x2000
 
#define TJA1101_BASIC_CTRL_AUTONEG_EN   0x1000
 
#define TJA1101_BASIC_CTRL_POWER_DOWN   0x0800
 
#define TJA1101_BASIC_CTRL_ISOLATE   0x0400
 
#define TJA1101_BASIC_CTRL_RE_AUTONEG   0x0200
 
#define TJA1101_BASIC_CTRL_DUPLEX_MODE   0x0100
 
#define TJA1101_BASIC_CTRL_COL_TEST   0x0080
 
#define TJA1101_BASIC_CTRL_SPEED_SEL_MSB   0x0040
 
#define TJA1101_BASIC_CTRL_UNIDIRECT_EN   0x0020
 
#define TJA1101_BASIC_STAT_100BT4   0x8000
 
#define TJA1101_BASIC_STAT_100BTX_FD   0x4000
 
#define TJA1101_BASIC_STAT_100BTX_HD   0x2000
 
#define TJA1101_BASIC_STAT_10BT_FD   0x1000
 
#define TJA1101_BASIC_STAT_10BT_HD   0x0800
 
#define TJA1101_BASIC_STAT_100BT2_FD   0x0400
 
#define TJA1101_BASIC_STAT_100BT2_HD   0x0200
 
#define TJA1101_BASIC_STAT_EXTENDED_STATUS   0x0100
 
#define TJA1101_BASIC_STAT_UNIDIRECT_ABILITY   0x0080
 
#define TJA1101_BASIC_STAT_MF_PREAMBLE_SUPPR   0x0040
 
#define TJA1101_BASIC_STAT_AUTONEG_COMPLETE   0x0020
 
#define TJA1101_BASIC_STAT_REMOTE_FAULT   0x0010
 
#define TJA1101_BASIC_STAT_AUTONEG_ABILITY   0x0008
 
#define TJA1101_BASIC_STAT_LINK_STATUS   0x0004
 
#define TJA1101_BASIC_STAT_JABBER_DETECT   0x0002
 
#define TJA1101_BASIC_STAT_EXTENDED_CAPABILITY   0x0001
 
#define TJA1101_PHY_ID1_OUI_MSB   0xFFFF
 
#define TJA1101_PHY_ID1_OUI_MSB_DEFAULT   0x0180
 
#define TJA1101_PHY_ID2_OUI_LSB   0xFC00
 
#define TJA1101_PHY_ID2_OUI_LSB_DEFAULT   0xDC00
 
#define TJA1101_PHY_ID2_TYPE_NO   0x03F0
 
#define TJA1101_PHY_ID2_TYPE_NO_DEFAULT   0x0100
 
#define TJA1101_PHY_ID2_REVISION_NO   0x000F
 
#define TJA1101_PHY_ID2_REVISION_NO_DEFAULT   0x0002
 
#define TJA1101_EXTENDED_STAT_1000BX_FD   0x8000
 
#define TJA1101_EXTENDED_STAT_1000BX_HD   0x4000
 
#define TJA1101_EXTENDED_STAT_1000BT_FD   0x2000
 
#define TJA1101_EXTENDED_STAT_1000BT_HD   0x1000
 
#define TJA1101_EXTENDED_STAT_100BT1   0x0080
 
#define TJA1101_EXTENDED_STAT_RTPGE   0x0040
 
#define TJA1101_PHY_ID3_VERSION_NO   0x00FF
 
#define TJA1101_EXTENDED_CTRL_LINK_CONTROL   0x8000
 
#define TJA1101_EXTENDED_CTRL_POWER_MODE   0x7800
 
#define TJA1101_EXTENDED_CTRL_POWER_MODE_NO_CHANGE   0x0000
 
#define TJA1101_EXTENDED_CTRL_POWER_MODE_NORMAL   0x1800
 
#define TJA1101_EXTENDED_CTRL_POWER_MODE_SILENT   0x4800
 
#define TJA1101_EXTENDED_CTRL_POWER_MODE_SLEEP   0x5000
 
#define TJA1101_EXTENDED_CTRL_POWER_MODE_SLEEP_REQ   0x5800
 
#define TJA1101_EXTENDED_CTRL_POWER_MODE_STANDBY   0x6000
 
#define TJA1101_EXTENDED_CTRL_SLAVE_JITTER_TEST   0x0400
 
#define TJA1101_EXTENDED_CTRL_TRAINING_RESTART   0x0200
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE   0x01C0
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE_0   0x0000
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE_1   0x0040
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE_2   0x0080
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE_3   0x00C0
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE_4   0x0100
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE_5   0x0140
 
#define TJA1101_EXTENDED_CTRL_TEST_MODE_6   0x0180
 
#define TJA1101_EXTENDED_CTRL_CABLE_TEST   0x0020
 
#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE   0x0018
 
#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_INTERNAL   0x0000
 
#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_EXTERNAL   0x0008
 
#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_REMOTE   0x0018
 
#define TJA1101_EXTENDED_CTRL_CONFIG_EN   0x0004
 
#define TJA1101_EXTENDED_CTRL_WAKE_REQUEST   0x0001
 
#define TJA1101_CONFIG1_MASTER_SLAVE   0x8000
 
#define TJA1101_CONFIG1_FWDPHYLOC   0x4000
 
#define TJA1101_CONFIG1_REMWUPHY   0x0800
 
#define TJA1101_CONFIG1_LOCWUPHY   0x0400
 
#define TJA1101_CONFIG1_MII_MODE   0x0300
 
#define TJA1101_CONFIG1_MII_MODE_MII   0x0000
 
#define TJA1101_CONFIG1_MII_MODE_RMII_50MHZ_REF_CLK_IN   0x0100
 
#define TJA1101_CONFIG1_MII_MODE_RMII_50MHZ_REF_CLK_OUT   0x0200
 
#define TJA1101_CONFIG1_MII_MODE_REV_MII   0x0300
 
#define TJA1101_CONFIG1_MII_DRIVER   0x0080
 
#define TJA1101_CONFIG1_MII_DRIVER_STANDARD   0x0000
 
#define TJA1101_CONFIG1_MII_DRIVER_REDUCED   0x0080
 
#define TJA1101_CONFIG1_SLEEP_CONFIRM   0x0040
 
#define TJA1101_CONFIG1_LPS_WUR_DIS   0x0020
 
#define TJA1101_CONFIG1_SLEEP_ACK   0x0010
 
#define TJA1101_CONFIG1_FWDPHYREM   0x0004
 
#define TJA1101_CONFIG1_AUTO_PWD   0x0002
 
#define TJA1101_CONFIG1_LPS_ACTIVE   0x0001
 
#define TJA1101_CONFIG2_PHYAD   0xF800
 
#define TJA1101_CONFIG2_SQI_AVERAGING   0x0600
 
#define TJA1101_CONFIG2_SQI_AVERAGING_32_SYMBOLS   0x0000
 
#define TJA1101_CONFIG2_SQI_AVERAGING_64_SYMBOLS   0x0200
 
#define TJA1101_CONFIG2_SQI_AVERAGING_128_SYMBOLS   0x0400
 
#define TJA1101_CONFIG2_SQI_AVERAGING_256_SYMBOLS   0x0600
 
#define TJA1101_CONFIG2_SQI_WLIMIT   0x01C0
 
#define TJA1101_CONFIG2_SQI_WLIMIT_NONE   0x0000
 
#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_A   0x0040
 
#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_B   0x0080
 
#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_C   0x00C0
 
#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_D   0x0100
 
#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_E   0x0140
 
#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_F   0x0180
 
#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_G   0x01C0
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT   0x0038
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_NONE   0x0000
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_A   0x0008
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_B   0x0010
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_C   0x0018
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_D   0x0020
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_E   0x0028
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_F   0x0030
 
#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_G   0x0038
 
#define TJA1101_CONFIG2_JUMBO_ENABLE   0x0004
 
#define TJA1101_CONFIG2_SLEEP_REQUEST_TO   0x0003
 
#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_0_4MS   0x0000
 
#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_1MS   0x0001
 
#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_4MS   0x0002
 
#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_16MS   0x0003
 
#define TJA1101_SYM_ERR_COUNTER_SYM_ERR_CNT   0xFFFF
 
#define TJA1101_INT_SRC_PWON   0x8000
 
#define TJA1101_INT_SRC_WAKEUP   0x4000
 
#define TJA1101_INT_SRC_WUR_RECEIVED   0x2000
 
#define TJA1101_INT_SRC_LPS_RECEIVED   0x1000
 
#define TJA1101_INT_SRC_PHY_INIT_FAIL   0x0800
 
#define TJA1101_INT_SRC_LINK_STATUS_FAIL   0x0400
 
#define TJA1101_INT_SRC_LINK_STATUS_UP   0x0200
 
#define TJA1101_INT_SRC_SYM_ERR   0x0100
 
#define TJA1101_INT_SRC_TRAINING_FAILED   0x0080
 
#define TJA1101_INT_SRC_SQI_WARNING   0x0040
 
#define TJA1101_INT_SRC_CONTROL_ERR   0x0020
 
#define TJA1101_INT_SRC_UV_ERR   0x0008
 
#define TJA1101_INT_SRC_UV_RECOVERY   0x0004
 
#define TJA1101_INT_SRC_TEMP_ERR   0x0002
 
#define TJA1101_INT_SRC_SLEEP_ABORT   0x0001
 
#define TJA1101_INT_EN_PWON   0x8000
 
#define TJA1101_INT_EN_WAKEUP   0x4000
 
#define TJA1101_INT_EN_WUR_RECEIVED   0x2000
 
#define TJA1101_INT_EN_LPS_RECEIVED   0x1000
 
#define TJA1101_INT_EN_PHY_INIT_FAIL   0x0800
 
#define TJA1101_INT_EN_LINK_STATUS_FAIL   0x0400
 
#define TJA1101_INT_EN_LINK_STATUS_UP   0x0200
 
#define TJA1101_INT_EN_SYM_ERR   0x0100
 
#define TJA1101_INT_EN_TRAINING_FAILED   0x0080
 
#define TJA1101_INT_EN_SQI_WARNING   0x0040
 
#define TJA1101_INT_EN_CONTROL_ERR   0x0020
 
#define TJA1101_INT_EN_UV_ERR   0x0008
 
#define TJA1101_INT_EN_UV_RECOVERY   0x0004
 
#define TJA1101_INT_EN_TEMP_ERR   0x0002
 
#define TJA1101_INT_EN_SLEEP_ABORT   0x0001
 
#define TJA1101_COMM_STAT_LINK_UP   0x8000
 
#define TJA1101_COMM_STAT_TX_MODE   0x6000
 
#define TJA1101_COMM_STAT_TX_MODE_DISABLED   0x0000
 
#define TJA1101_COMM_STAT_TX_MODE_SEND_N   0x2000
 
#define TJA1101_COMM_STAT_TX_MODE_SEND_I   0x4000
 
#define TJA1101_COMM_STAT_TX_MODE_SEND_Z   0x6000
 
#define TJA1101_COMM_STAT_LOC_RCVR_STATUS   0x1000
 
#define TJA1101_COMM_STAT_REM_RCVR_STATUS   0x0800
 
#define TJA1101_COMM_STAT_SCR_LOCKED   0x0400
 
#define TJA1101_COMM_STAT_SSD_ERR   0x0200
 
#define TJA1101_COMM_STAT_ESD_ERR   0x0100
 
#define TJA1101_COMM_STAT_SQI   0x00E0
 
#define TJA1101_COMM_STAT_SQI_WORSE_THAN_CLASS_A   0x0000
 
#define TJA1101_COMM_STAT_SQI_CLASS_A   0x0020
 
#define TJA1101_COMM_STAT_SQI_CLASS_B   0x0040
 
#define TJA1101_COMM_STAT_SQI_CLASS_C   0x0060
 
#define TJA1101_COMM_STAT_SQI_CLASS_D   0x0080
 
#define TJA1101_COMM_STAT_SQI_CLASS_E   0x00A0
 
#define TJA1101_COMM_STAT_SQI_CLASS_F   0x00C0
 
#define TJA1101_COMM_STAT_SQI_CLASS_G   0x00E0
 
#define TJA1101_COMM_STAT_RECEIVE_ERR   0x0010
 
#define TJA1101_COMM_STAT_TRANSMIT_ERR   0x0008
 
#define TJA1101_COMM_STAT_PHY_STATE   0x0007
 
#define TJA1101_COMM_STAT_PHY_STATE_IDLE   0x0000
 
#define TJA1101_COMM_STAT_PHY_STATE_INITIALIZING   0x0001
 
#define TJA1101_COMM_STAT_PHY_STATE_CONFIGURED   0x0002
 
#define TJA1101_COMM_STAT_PHY_STATE_OFFLINE   0x0003
 
#define TJA1101_COMM_STAT_PHY_STATE_ACTIVE   0x0004
 
#define TJA1101_COMM_STAT_PHY_STATE_ISOLATE   0x0005
 
#define TJA1101_COMM_STAT_PHY_STATE_CABLE_TEST   0x0006
 
#define TJA1101_COMM_STAT_PHY_STATE_TEST_MODE   0x0007
 
#define TJA1101_GENERAL_STAT_INT_STATUS   0x8000
 
#define TJA1101_GENERAL_STAT_PLL_LOCKED   0x4000
 
#define TJA1101_GENERAL_STAT_LOCAL_WU   0x2000
 
#define TJA1101_GENERAL_STAT_REMOTE_WU   0x1000
 
#define TJA1101_GENERAL_STAT_DATA_DET_WU   0x0800
 
#define TJA1101_GENERAL_STAT_EN_STATUS   0x0400
 
#define TJA1101_GENERAL_STAT_RESET_STATUS   0x0200
 
#define TJA1101_GENERAL_STAT_LINKFAIL_CNT   0x00F8
 
#define TJA1101_EXTERNAL_STAT_UV_VDDA_3V3   0x8000
 
#define TJA1101_EXTERNAL_STAT_UV_VDDD_1V8   0x4000
 
#define TJA1101_EXTERNAL_STAT_UV_VDDA_1V8   0x2000
 
#define TJA1101_EXTERNAL_STAT_UV_VDDIO   0x0800
 
#define TJA1101_EXTERNAL_STAT_TEMP_HIGH   0x0400
 
#define TJA1101_EXTERNAL_STAT_TEMP_WARN   0x0200
 
#define TJA1101_EXTERNAL_STAT_SHORT_DETECT   0x0100
 
#define TJA1101_EXTERNAL_STAT_OPEN_DETECT   0x0080
 
#define TJA1101_EXTERNAL_STAT_POLARITY_DETECT   0x0040
 
#define TJA1101_EXTERNAL_STAT_INTERLEAVE_DETECT   0x0020
 
#define TJA1101_LINK_FAIL_COUNTER_LOC_RCVR_CNT   0xFF00
 
#define TJA1101_LINK_FAIL_COUNTER_REM_RCVR_CNT   0x00FF
 
#define TJA1101_COMM_CTRL_AUTO_OP   0x8000
 
#define TJA1101_COMM_CTRL_CLK_MODE   0x3000
 
#define TJA1101_COMM_CTRL_CLK_MODE_25MHZ_XTAL_NO_CLK_OUT   0x0000
 
#define TJA1101_COMM_CTRL_CLK_MODE_25MHZ_XTAL_CLK_OUT   0x1000
 
#define TJA1101_COMM_CTRL_CLK_MODE_25MHZ_EXT_CLK_IN   0x2000
 
#define TJA1101_COMM_CTRL_CLK_MODE_50MHZ_REF_CLK_IN   0x3000
 
#define TJA1101_COMM_CTRL_LDO_MODE   0x0800
 
#define TJA1101_COMM_CTRL_CLK_DRIVER   0x0400
 
#define TJA1101_COMM_CTRL_CLK_HOLD   0x0200
 
#define TJA1101_COMM_CTRL_LOC_WU_TIM   0x0180
 
#define TJA1101_COMM_CTRL_LOC_WU_TIM_LONGEST   0x0000
 
#define TJA1101_COMM_CTRL_LOC_WU_TIM_LONG   0x0080
 
#define TJA1101_COMM_CTRL_LOC_WU_TIM_SHORT   0x0100
 
#define TJA1101_COMM_CTRL_LOC_WU_TIM_SHORTEST   0x0180
 
#define TJA1101_COMM_CTRL_CONFIG_WAKE   0x0040
 
#define TJA1101_COMM_CTRL_CONFIG_INH   0x0020
 
#define TJA1101_CONFIG3_MDI_POL   0x0004
 
#define TJA1101_CONFIG3_FORCE_SLEEP   0x0002
 

Functions

error_t tja1101Init (NetInterface *interface)
 TJA1101 PHY transceiver initialization. More...
 
void tja1101InitHook (NetInterface *interface)
 TJA1101 custom configuration. More...
 
void tja1101Tick (NetInterface *interface)
 TJA1101 timer handler. More...
 
void tja1101EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void tja1101DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void tja1101EventHandler (NetInterface *interface)
 TJA1101 event handler. More...
 
void tja1101WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t tja1101ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void tja1101DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 

Variables

const PhyDriver tja1101PhyDriver
 TJA1101 Ethernet PHY driver. More...
 

Detailed Description

TJA1101 100Base-T1 Ethernet PHY driver.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

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

Definition in file tja1101_driver.h.

Macro Definition Documentation

◆ TJA1101_BASIC_CTRL

#define TJA1101_BASIC_CTRL   0x00

Definition at line 45 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_AUTONEG_EN

#define TJA1101_BASIC_CTRL_AUTONEG_EN   0x1000

Definition at line 68 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_COL_TEST

#define TJA1101_BASIC_CTRL_COL_TEST   0x0080

Definition at line 73 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_DUPLEX_MODE

#define TJA1101_BASIC_CTRL_DUPLEX_MODE   0x0100

Definition at line 72 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_ISOLATE

#define TJA1101_BASIC_CTRL_ISOLATE   0x0400

Definition at line 70 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_LOOPBACK

#define TJA1101_BASIC_CTRL_LOOPBACK   0x4000

Definition at line 66 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_POWER_DOWN

#define TJA1101_BASIC_CTRL_POWER_DOWN   0x0800

Definition at line 69 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_RE_AUTONEG

#define TJA1101_BASIC_CTRL_RE_AUTONEG   0x0200

Definition at line 71 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_RESET

#define TJA1101_BASIC_CTRL_RESET   0x8000

Definition at line 65 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_SPEED_SEL_LSB

#define TJA1101_BASIC_CTRL_SPEED_SEL_LSB   0x2000

Definition at line 67 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_SPEED_SEL_MSB

#define TJA1101_BASIC_CTRL_SPEED_SEL_MSB   0x0040

Definition at line 74 of file tja1101_driver.h.

◆ TJA1101_BASIC_CTRL_UNIDIRECT_EN

#define TJA1101_BASIC_CTRL_UNIDIRECT_EN   0x0020

Definition at line 75 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT

#define TJA1101_BASIC_STAT   0x01

Definition at line 46 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_100BT2_FD

#define TJA1101_BASIC_STAT_100BT2_FD   0x0400

Definition at line 83 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_100BT2_HD

#define TJA1101_BASIC_STAT_100BT2_HD   0x0200

Definition at line 84 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_100BT4

#define TJA1101_BASIC_STAT_100BT4   0x8000

Definition at line 78 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_100BTX_FD

#define TJA1101_BASIC_STAT_100BTX_FD   0x4000

Definition at line 79 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_100BTX_HD

#define TJA1101_BASIC_STAT_100BTX_HD   0x2000

Definition at line 80 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_10BT_FD

#define TJA1101_BASIC_STAT_10BT_FD   0x1000

Definition at line 81 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_10BT_HD

#define TJA1101_BASIC_STAT_10BT_HD   0x0800

Definition at line 82 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_AUTONEG_ABILITY

#define TJA1101_BASIC_STAT_AUTONEG_ABILITY   0x0008

Definition at line 90 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_AUTONEG_COMPLETE

#define TJA1101_BASIC_STAT_AUTONEG_COMPLETE   0x0020

Definition at line 88 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_EXTENDED_CAPABILITY

#define TJA1101_BASIC_STAT_EXTENDED_CAPABILITY   0x0001

Definition at line 93 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_EXTENDED_STATUS

#define TJA1101_BASIC_STAT_EXTENDED_STATUS   0x0100

Definition at line 85 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_JABBER_DETECT

#define TJA1101_BASIC_STAT_JABBER_DETECT   0x0002

Definition at line 92 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_LINK_STATUS

#define TJA1101_BASIC_STAT_LINK_STATUS   0x0004

Definition at line 91 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_MF_PREAMBLE_SUPPR

#define TJA1101_BASIC_STAT_MF_PREAMBLE_SUPPR   0x0040

Definition at line 87 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_REMOTE_FAULT

#define TJA1101_BASIC_STAT_REMOTE_FAULT   0x0010

Definition at line 89 of file tja1101_driver.h.

◆ TJA1101_BASIC_STAT_UNIDIRECT_ABILITY

#define TJA1101_BASIC_STAT_UNIDIRECT_ABILITY   0x0080

Definition at line 86 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL

#define TJA1101_COMM_CTRL   0x1B

Definition at line 61 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_AUTO_OP

#define TJA1101_COMM_CTRL_AUTO_OP   0x8000

Definition at line 294 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CLK_DRIVER

#define TJA1101_COMM_CTRL_CLK_DRIVER   0x0400

Definition at line 301 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CLK_HOLD

#define TJA1101_COMM_CTRL_CLK_HOLD   0x0200

Definition at line 302 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CLK_MODE

#define TJA1101_COMM_CTRL_CLK_MODE   0x3000

Definition at line 295 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CLK_MODE_25MHZ_EXT_CLK_IN

#define TJA1101_COMM_CTRL_CLK_MODE_25MHZ_EXT_CLK_IN   0x2000

Definition at line 298 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CLK_MODE_25MHZ_XTAL_CLK_OUT

#define TJA1101_COMM_CTRL_CLK_MODE_25MHZ_XTAL_CLK_OUT   0x1000

Definition at line 297 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CLK_MODE_25MHZ_XTAL_NO_CLK_OUT

#define TJA1101_COMM_CTRL_CLK_MODE_25MHZ_XTAL_NO_CLK_OUT   0x0000

Definition at line 296 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CLK_MODE_50MHZ_REF_CLK_IN

#define TJA1101_COMM_CTRL_CLK_MODE_50MHZ_REF_CLK_IN   0x3000

Definition at line 299 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CONFIG_INH

#define TJA1101_COMM_CTRL_CONFIG_INH   0x0020

Definition at line 309 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_CONFIG_WAKE

#define TJA1101_COMM_CTRL_CONFIG_WAKE   0x0040

Definition at line 308 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_LDO_MODE

#define TJA1101_COMM_CTRL_LDO_MODE   0x0800

Definition at line 300 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_LOC_WU_TIM

#define TJA1101_COMM_CTRL_LOC_WU_TIM   0x0180

Definition at line 303 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_LOC_WU_TIM_LONG

#define TJA1101_COMM_CTRL_LOC_WU_TIM_LONG   0x0080

Definition at line 305 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_LOC_WU_TIM_LONGEST

#define TJA1101_COMM_CTRL_LOC_WU_TIM_LONGEST   0x0000

Definition at line 304 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_LOC_WU_TIM_SHORT

#define TJA1101_COMM_CTRL_LOC_WU_TIM_SHORT   0x0100

Definition at line 306 of file tja1101_driver.h.

◆ TJA1101_COMM_CTRL_LOC_WU_TIM_SHORTEST

#define TJA1101_COMM_CTRL_LOC_WU_TIM_SHORTEST   0x0180

Definition at line 307 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT

#define TJA1101_COMM_STAT   0x17

Definition at line 57 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_ESD_ERR

#define TJA1101_COMM_STAT_ESD_ERR   0x0100

Definition at line 245 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_LINK_UP

#define TJA1101_COMM_STAT_LINK_UP   0x8000

Definition at line 235 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_LOC_RCVR_STATUS

#define TJA1101_COMM_STAT_LOC_RCVR_STATUS   0x1000

Definition at line 241 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE

#define TJA1101_COMM_STAT_PHY_STATE   0x0007

Definition at line 257 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_ACTIVE

#define TJA1101_COMM_STAT_PHY_STATE_ACTIVE   0x0004

Definition at line 262 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_CABLE_TEST

#define TJA1101_COMM_STAT_PHY_STATE_CABLE_TEST   0x0006

Definition at line 264 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_CONFIGURED

#define TJA1101_COMM_STAT_PHY_STATE_CONFIGURED   0x0002

Definition at line 260 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_IDLE

#define TJA1101_COMM_STAT_PHY_STATE_IDLE   0x0000

Definition at line 258 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_INITIALIZING

#define TJA1101_COMM_STAT_PHY_STATE_INITIALIZING   0x0001

Definition at line 259 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_ISOLATE

#define TJA1101_COMM_STAT_PHY_STATE_ISOLATE   0x0005

Definition at line 263 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_OFFLINE

#define TJA1101_COMM_STAT_PHY_STATE_OFFLINE   0x0003

Definition at line 261 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_PHY_STATE_TEST_MODE

#define TJA1101_COMM_STAT_PHY_STATE_TEST_MODE   0x0007

Definition at line 265 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_RECEIVE_ERR

#define TJA1101_COMM_STAT_RECEIVE_ERR   0x0010

Definition at line 255 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_REM_RCVR_STATUS

#define TJA1101_COMM_STAT_REM_RCVR_STATUS   0x0800

Definition at line 242 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SCR_LOCKED

#define TJA1101_COMM_STAT_SCR_LOCKED   0x0400

Definition at line 243 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI

#define TJA1101_COMM_STAT_SQI   0x00E0

Definition at line 246 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_CLASS_A

#define TJA1101_COMM_STAT_SQI_CLASS_A   0x0020

Definition at line 248 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_CLASS_B

#define TJA1101_COMM_STAT_SQI_CLASS_B   0x0040

Definition at line 249 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_CLASS_C

#define TJA1101_COMM_STAT_SQI_CLASS_C   0x0060

Definition at line 250 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_CLASS_D

#define TJA1101_COMM_STAT_SQI_CLASS_D   0x0080

Definition at line 251 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_CLASS_E

#define TJA1101_COMM_STAT_SQI_CLASS_E   0x00A0

Definition at line 252 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_CLASS_F

#define TJA1101_COMM_STAT_SQI_CLASS_F   0x00C0

Definition at line 253 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_CLASS_G

#define TJA1101_COMM_STAT_SQI_CLASS_G   0x00E0

Definition at line 254 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SQI_WORSE_THAN_CLASS_A

#define TJA1101_COMM_STAT_SQI_WORSE_THAN_CLASS_A   0x0000

Definition at line 247 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_SSD_ERR

#define TJA1101_COMM_STAT_SSD_ERR   0x0200

Definition at line 244 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_TRANSMIT_ERR

#define TJA1101_COMM_STAT_TRANSMIT_ERR   0x0008

Definition at line 256 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_TX_MODE

#define TJA1101_COMM_STAT_TX_MODE   0x6000

Definition at line 236 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_TX_MODE_DISABLED

#define TJA1101_COMM_STAT_TX_MODE_DISABLED   0x0000

Definition at line 237 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_TX_MODE_SEND_I

#define TJA1101_COMM_STAT_TX_MODE_SEND_I   0x4000

Definition at line 239 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_TX_MODE_SEND_N

#define TJA1101_COMM_STAT_TX_MODE_SEND_N   0x2000

Definition at line 238 of file tja1101_driver.h.

◆ TJA1101_COMM_STAT_TX_MODE_SEND_Z

#define TJA1101_COMM_STAT_TX_MODE_SEND_Z   0x6000

Definition at line 240 of file tja1101_driver.h.

◆ TJA1101_CONFIG1

#define TJA1101_CONFIG1   0x12

Definition at line 52 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_AUTO_PWD

#define TJA1101_CONFIG1_AUTO_PWD   0x0002

Definition at line 162 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_FWDPHYLOC

#define TJA1101_CONFIG1_FWDPHYLOC   0x4000

Definition at line 147 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_FWDPHYREM

#define TJA1101_CONFIG1_FWDPHYREM   0x0004

Definition at line 161 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_LOCWUPHY

#define TJA1101_CONFIG1_LOCWUPHY   0x0400

Definition at line 149 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_LPS_ACTIVE

#define TJA1101_CONFIG1_LPS_ACTIVE   0x0001

Definition at line 163 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_LPS_WUR_DIS

#define TJA1101_CONFIG1_LPS_WUR_DIS   0x0020

Definition at line 159 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MASTER_SLAVE

#define TJA1101_CONFIG1_MASTER_SLAVE   0x8000

Definition at line 146 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_DRIVER

#define TJA1101_CONFIG1_MII_DRIVER   0x0080

Definition at line 155 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_DRIVER_REDUCED

#define TJA1101_CONFIG1_MII_DRIVER_REDUCED   0x0080

Definition at line 157 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_DRIVER_STANDARD

#define TJA1101_CONFIG1_MII_DRIVER_STANDARD   0x0000

Definition at line 156 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_MODE

#define TJA1101_CONFIG1_MII_MODE   0x0300

Definition at line 150 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_MODE_MII

#define TJA1101_CONFIG1_MII_MODE_MII   0x0000

Definition at line 151 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_MODE_REV_MII

#define TJA1101_CONFIG1_MII_MODE_REV_MII   0x0300

Definition at line 154 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_MODE_RMII_50MHZ_REF_CLK_IN

#define TJA1101_CONFIG1_MII_MODE_RMII_50MHZ_REF_CLK_IN   0x0100

Definition at line 152 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_MII_MODE_RMII_50MHZ_REF_CLK_OUT

#define TJA1101_CONFIG1_MII_MODE_RMII_50MHZ_REF_CLK_OUT   0x0200

Definition at line 153 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_REMWUPHY

#define TJA1101_CONFIG1_REMWUPHY   0x0800

Definition at line 148 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_SLEEP_ACK

#define TJA1101_CONFIG1_SLEEP_ACK   0x0010

Definition at line 160 of file tja1101_driver.h.

◆ TJA1101_CONFIG1_SLEEP_CONFIRM

#define TJA1101_CONFIG1_SLEEP_CONFIRM   0x0040

Definition at line 158 of file tja1101_driver.h.

◆ TJA1101_CONFIG2

#define TJA1101_CONFIG2   0x13

Definition at line 53 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_JUMBO_ENABLE

#define TJA1101_CONFIG2_JUMBO_ENABLE   0x0004

Definition at line 190 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_PHYAD

#define TJA1101_CONFIG2_PHYAD   0xF800

Definition at line 166 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SLEEP_REQUEST_TO

#define TJA1101_CONFIG2_SLEEP_REQUEST_TO   0x0003

Definition at line 191 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SLEEP_REQUEST_TO_0_4MS

#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_0_4MS   0x0000

Definition at line 192 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SLEEP_REQUEST_TO_16MS

#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_16MS   0x0003

Definition at line 195 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SLEEP_REQUEST_TO_1MS

#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_1MS   0x0001

Definition at line 193 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SLEEP_REQUEST_TO_4MS

#define TJA1101_CONFIG2_SLEEP_REQUEST_TO_4MS   0x0002

Definition at line 194 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_AVERAGING

#define TJA1101_CONFIG2_SQI_AVERAGING   0x0600

Definition at line 167 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_AVERAGING_128_SYMBOLS

#define TJA1101_CONFIG2_SQI_AVERAGING_128_SYMBOLS   0x0400

Definition at line 170 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_AVERAGING_256_SYMBOLS

#define TJA1101_CONFIG2_SQI_AVERAGING_256_SYMBOLS   0x0600

Definition at line 171 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_AVERAGING_32_SYMBOLS

#define TJA1101_CONFIG2_SQI_AVERAGING_32_SYMBOLS   0x0000

Definition at line 168 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_AVERAGING_64_SYMBOLS

#define TJA1101_CONFIG2_SQI_AVERAGING_64_SYMBOLS   0x0200

Definition at line 169 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT

#define TJA1101_CONFIG2_SQI_FAILLIMIT   0x0038

Definition at line 181 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_A

#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_A   0x0008

Definition at line 183 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_B

#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_B   0x0010

Definition at line 184 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_C

#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_C   0x0018

Definition at line 185 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_D

#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_D   0x0020

Definition at line 186 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_E

#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_E   0x0028

Definition at line 187 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_F

#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_F   0x0030

Definition at line 188 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_G

#define TJA1101_CONFIG2_SQI_FAILLIMIT_CLASS_G   0x0038

Definition at line 189 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_FAILLIMIT_NONE

#define TJA1101_CONFIG2_SQI_FAILLIMIT_NONE   0x0000

Definition at line 182 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT

#define TJA1101_CONFIG2_SQI_WLIMIT   0x01C0

Definition at line 172 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_CLASS_A

#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_A   0x0040

Definition at line 174 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_CLASS_B

#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_B   0x0080

Definition at line 175 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_CLASS_C

#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_C   0x00C0

Definition at line 176 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_CLASS_D

#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_D   0x0100

Definition at line 177 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_CLASS_E

#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_E   0x0140

Definition at line 178 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_CLASS_F

#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_F   0x0180

Definition at line 179 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_CLASS_G

#define TJA1101_CONFIG2_SQI_WLIMIT_CLASS_G   0x01C0

Definition at line 180 of file tja1101_driver.h.

◆ TJA1101_CONFIG2_SQI_WLIMIT_NONE

#define TJA1101_CONFIG2_SQI_WLIMIT_NONE   0x0000

Definition at line 173 of file tja1101_driver.h.

◆ TJA1101_CONFIG3

#define TJA1101_CONFIG3   0x1C

Definition at line 62 of file tja1101_driver.h.

◆ TJA1101_CONFIG3_FORCE_SLEEP

#define TJA1101_CONFIG3_FORCE_SLEEP   0x0002

Definition at line 313 of file tja1101_driver.h.

◆ TJA1101_CONFIG3_MDI_POL

#define TJA1101_CONFIG3_MDI_POL   0x0004

Definition at line 312 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL

#define TJA1101_EXTENDED_CTRL   0x11

Definition at line 51 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_CABLE_TEST

#define TJA1101_EXTENDED_CTRL_CABLE_TEST   0x0020

Definition at line 137 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_CONFIG_EN

#define TJA1101_EXTENDED_CTRL_CONFIG_EN   0x0004

Definition at line 142 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_LINK_CONTROL

#define TJA1101_EXTENDED_CTRL_LINK_CONTROL   0x8000

Definition at line 119 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_LOOPBACK_MODE

#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE   0x0018

Definition at line 138 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_EXTERNAL

#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_EXTERNAL   0x0008

Definition at line 140 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_INTERNAL

#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_INTERNAL   0x0000

Definition at line 139 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_REMOTE

#define TJA1101_EXTENDED_CTRL_LOOPBACK_MODE_REMOTE   0x0018

Definition at line 141 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_POWER_MODE

#define TJA1101_EXTENDED_CTRL_POWER_MODE   0x7800

Definition at line 120 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_POWER_MODE_NO_CHANGE

#define TJA1101_EXTENDED_CTRL_POWER_MODE_NO_CHANGE   0x0000

Definition at line 121 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_POWER_MODE_NORMAL

#define TJA1101_EXTENDED_CTRL_POWER_MODE_NORMAL   0x1800

Definition at line 122 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_POWER_MODE_SILENT

#define TJA1101_EXTENDED_CTRL_POWER_MODE_SILENT   0x4800

Definition at line 123 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_POWER_MODE_SLEEP

#define TJA1101_EXTENDED_CTRL_POWER_MODE_SLEEP   0x5000

Definition at line 124 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_POWER_MODE_SLEEP_REQ

#define TJA1101_EXTENDED_CTRL_POWER_MODE_SLEEP_REQ   0x5800

Definition at line 125 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_POWER_MODE_STANDBY

#define TJA1101_EXTENDED_CTRL_POWER_MODE_STANDBY   0x6000

Definition at line 126 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_SLAVE_JITTER_TEST

#define TJA1101_EXTENDED_CTRL_SLAVE_JITTER_TEST   0x0400

Definition at line 127 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE

#define TJA1101_EXTENDED_CTRL_TEST_MODE   0x01C0

Definition at line 129 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE_0

#define TJA1101_EXTENDED_CTRL_TEST_MODE_0   0x0000

Definition at line 130 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE_1

#define TJA1101_EXTENDED_CTRL_TEST_MODE_1   0x0040

Definition at line 131 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE_2

#define TJA1101_EXTENDED_CTRL_TEST_MODE_2   0x0080

Definition at line 132 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE_3

#define TJA1101_EXTENDED_CTRL_TEST_MODE_3   0x00C0

Definition at line 133 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE_4

#define TJA1101_EXTENDED_CTRL_TEST_MODE_4   0x0100

Definition at line 134 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE_5

#define TJA1101_EXTENDED_CTRL_TEST_MODE_5   0x0140

Definition at line 135 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TEST_MODE_6

#define TJA1101_EXTENDED_CTRL_TEST_MODE_6   0x0180

Definition at line 136 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_TRAINING_RESTART

#define TJA1101_EXTENDED_CTRL_TRAINING_RESTART   0x0200

Definition at line 128 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_CTRL_WAKE_REQUEST

#define TJA1101_EXTENDED_CTRL_WAKE_REQUEST   0x0001

Definition at line 143 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_STAT

#define TJA1101_EXTENDED_STAT   0x0F

Definition at line 49 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_STAT_1000BT_FD

#define TJA1101_EXTENDED_STAT_1000BT_FD   0x2000

Definition at line 110 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_STAT_1000BT_HD

#define TJA1101_EXTENDED_STAT_1000BT_HD   0x1000

Definition at line 111 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_STAT_1000BX_FD

#define TJA1101_EXTENDED_STAT_1000BX_FD   0x8000

Definition at line 108 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_STAT_1000BX_HD

#define TJA1101_EXTENDED_STAT_1000BX_HD   0x4000

Definition at line 109 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_STAT_100BT1

#define TJA1101_EXTENDED_STAT_100BT1   0x0080

Definition at line 112 of file tja1101_driver.h.

◆ TJA1101_EXTENDED_STAT_RTPGE

#define TJA1101_EXTENDED_STAT_RTPGE   0x0040

Definition at line 113 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT

#define TJA1101_EXTERNAL_STAT   0x19

Definition at line 59 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_INTERLEAVE_DETECT

#define TJA1101_EXTERNAL_STAT_INTERLEAVE_DETECT   0x0020

Definition at line 287 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_OPEN_DETECT

#define TJA1101_EXTERNAL_STAT_OPEN_DETECT   0x0080

Definition at line 285 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_POLARITY_DETECT

#define TJA1101_EXTERNAL_STAT_POLARITY_DETECT   0x0040

Definition at line 286 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_SHORT_DETECT

#define TJA1101_EXTERNAL_STAT_SHORT_DETECT   0x0100

Definition at line 284 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_TEMP_HIGH

#define TJA1101_EXTERNAL_STAT_TEMP_HIGH   0x0400

Definition at line 282 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_TEMP_WARN

#define TJA1101_EXTERNAL_STAT_TEMP_WARN   0x0200

Definition at line 283 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_UV_VDDA_1V8

#define TJA1101_EXTERNAL_STAT_UV_VDDA_1V8   0x2000

Definition at line 280 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_UV_VDDA_3V3

#define TJA1101_EXTERNAL_STAT_UV_VDDA_3V3   0x8000

Definition at line 278 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_UV_VDDD_1V8

#define TJA1101_EXTERNAL_STAT_UV_VDDD_1V8   0x4000

Definition at line 279 of file tja1101_driver.h.

◆ TJA1101_EXTERNAL_STAT_UV_VDDIO

#define TJA1101_EXTERNAL_STAT_UV_VDDIO   0x0800

Definition at line 281 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT

#define TJA1101_GENERAL_STAT   0x18

Definition at line 58 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_DATA_DET_WU

#define TJA1101_GENERAL_STAT_DATA_DET_WU   0x0800

Definition at line 272 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_EN_STATUS

#define TJA1101_GENERAL_STAT_EN_STATUS   0x0400

Definition at line 273 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_INT_STATUS

#define TJA1101_GENERAL_STAT_INT_STATUS   0x8000

Definition at line 268 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_LINKFAIL_CNT

#define TJA1101_GENERAL_STAT_LINKFAIL_CNT   0x00F8

Definition at line 275 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_LOCAL_WU

#define TJA1101_GENERAL_STAT_LOCAL_WU   0x2000

Definition at line 270 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_PLL_LOCKED

#define TJA1101_GENERAL_STAT_PLL_LOCKED   0x4000

Definition at line 269 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_REMOTE_WU

#define TJA1101_GENERAL_STAT_REMOTE_WU   0x1000

Definition at line 271 of file tja1101_driver.h.

◆ TJA1101_GENERAL_STAT_RESET_STATUS

#define TJA1101_GENERAL_STAT_RESET_STATUS   0x0200

Definition at line 274 of file tja1101_driver.h.

◆ TJA1101_INT_EN

#define TJA1101_INT_EN   0x16

Definition at line 56 of file tja1101_driver.h.

◆ TJA1101_INT_EN_CONTROL_ERR

#define TJA1101_INT_EN_CONTROL_ERR   0x0020

Definition at line 228 of file tja1101_driver.h.

◆ TJA1101_INT_EN_LINK_STATUS_FAIL

#define TJA1101_INT_EN_LINK_STATUS_FAIL   0x0400

Definition at line 223 of file tja1101_driver.h.

◆ TJA1101_INT_EN_LINK_STATUS_UP

#define TJA1101_INT_EN_LINK_STATUS_UP   0x0200

Definition at line 224 of file tja1101_driver.h.

◆ TJA1101_INT_EN_LPS_RECEIVED

#define TJA1101_INT_EN_LPS_RECEIVED   0x1000

Definition at line 221 of file tja1101_driver.h.

◆ TJA1101_INT_EN_PHY_INIT_FAIL

#define TJA1101_INT_EN_PHY_INIT_FAIL   0x0800

Definition at line 222 of file tja1101_driver.h.

◆ TJA1101_INT_EN_PWON

#define TJA1101_INT_EN_PWON   0x8000

Definition at line 218 of file tja1101_driver.h.

◆ TJA1101_INT_EN_SLEEP_ABORT

#define TJA1101_INT_EN_SLEEP_ABORT   0x0001

Definition at line 232 of file tja1101_driver.h.

◆ TJA1101_INT_EN_SQI_WARNING

#define TJA1101_INT_EN_SQI_WARNING   0x0040

Definition at line 227 of file tja1101_driver.h.

◆ TJA1101_INT_EN_SYM_ERR

#define TJA1101_INT_EN_SYM_ERR   0x0100

Definition at line 225 of file tja1101_driver.h.

◆ TJA1101_INT_EN_TEMP_ERR

#define TJA1101_INT_EN_TEMP_ERR   0x0002

Definition at line 231 of file tja1101_driver.h.

◆ TJA1101_INT_EN_TRAINING_FAILED

#define TJA1101_INT_EN_TRAINING_FAILED   0x0080

Definition at line 226 of file tja1101_driver.h.

◆ TJA1101_INT_EN_UV_ERR

#define TJA1101_INT_EN_UV_ERR   0x0008

Definition at line 229 of file tja1101_driver.h.

◆ TJA1101_INT_EN_UV_RECOVERY

#define TJA1101_INT_EN_UV_RECOVERY   0x0004

Definition at line 230 of file tja1101_driver.h.

◆ TJA1101_INT_EN_WAKEUP

#define TJA1101_INT_EN_WAKEUP   0x4000

Definition at line 219 of file tja1101_driver.h.

◆ TJA1101_INT_EN_WUR_RECEIVED

#define TJA1101_INT_EN_WUR_RECEIVED   0x2000

Definition at line 220 of file tja1101_driver.h.

◆ TJA1101_INT_SRC

#define TJA1101_INT_SRC   0x15

Definition at line 55 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_CONTROL_ERR

#define TJA1101_INT_SRC_CONTROL_ERR   0x0020

Definition at line 211 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_LINK_STATUS_FAIL

#define TJA1101_INT_SRC_LINK_STATUS_FAIL   0x0400

Definition at line 206 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_LINK_STATUS_UP

#define TJA1101_INT_SRC_LINK_STATUS_UP   0x0200

Definition at line 207 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_LPS_RECEIVED

#define TJA1101_INT_SRC_LPS_RECEIVED   0x1000

Definition at line 204 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_PHY_INIT_FAIL

#define TJA1101_INT_SRC_PHY_INIT_FAIL   0x0800

Definition at line 205 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_PWON

#define TJA1101_INT_SRC_PWON   0x8000

Definition at line 201 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_SLEEP_ABORT

#define TJA1101_INT_SRC_SLEEP_ABORT   0x0001

Definition at line 215 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_SQI_WARNING

#define TJA1101_INT_SRC_SQI_WARNING   0x0040

Definition at line 210 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_SYM_ERR

#define TJA1101_INT_SRC_SYM_ERR   0x0100

Definition at line 208 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_TEMP_ERR

#define TJA1101_INT_SRC_TEMP_ERR   0x0002

Definition at line 214 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_TRAINING_FAILED

#define TJA1101_INT_SRC_TRAINING_FAILED   0x0080

Definition at line 209 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_UV_ERR

#define TJA1101_INT_SRC_UV_ERR   0x0008

Definition at line 212 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_UV_RECOVERY

#define TJA1101_INT_SRC_UV_RECOVERY   0x0004

Definition at line 213 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_WAKEUP

#define TJA1101_INT_SRC_WAKEUP   0x4000

Definition at line 202 of file tja1101_driver.h.

◆ TJA1101_INT_SRC_WUR_RECEIVED

#define TJA1101_INT_SRC_WUR_RECEIVED   0x2000

Definition at line 203 of file tja1101_driver.h.

◆ TJA1101_LINK_FAIL_COUNTER

#define TJA1101_LINK_FAIL_COUNTER   0x1A

Definition at line 60 of file tja1101_driver.h.

◆ TJA1101_LINK_FAIL_COUNTER_LOC_RCVR_CNT

#define TJA1101_LINK_FAIL_COUNTER_LOC_RCVR_CNT   0xFF00

Definition at line 290 of file tja1101_driver.h.

◆ TJA1101_LINK_FAIL_COUNTER_REM_RCVR_CNT

#define TJA1101_LINK_FAIL_COUNTER_REM_RCVR_CNT   0x00FF

Definition at line 291 of file tja1101_driver.h.

◆ TJA1101_PHY_ADDR

#define TJA1101_PHY_ADDR   0

Definition at line 39 of file tja1101_driver.h.

◆ TJA1101_PHY_ID1

#define TJA1101_PHY_ID1   0x02

Definition at line 47 of file tja1101_driver.h.

◆ TJA1101_PHY_ID1_OUI_MSB

#define TJA1101_PHY_ID1_OUI_MSB   0xFFFF

Definition at line 96 of file tja1101_driver.h.

◆ TJA1101_PHY_ID1_OUI_MSB_DEFAULT

#define TJA1101_PHY_ID1_OUI_MSB_DEFAULT   0x0180

Definition at line 97 of file tja1101_driver.h.

◆ TJA1101_PHY_ID2

#define TJA1101_PHY_ID2   0x03

Definition at line 48 of file tja1101_driver.h.

◆ TJA1101_PHY_ID2_OUI_LSB

#define TJA1101_PHY_ID2_OUI_LSB   0xFC00

Definition at line 100 of file tja1101_driver.h.

◆ TJA1101_PHY_ID2_OUI_LSB_DEFAULT

#define TJA1101_PHY_ID2_OUI_LSB_DEFAULT   0xDC00

Definition at line 101 of file tja1101_driver.h.

◆ TJA1101_PHY_ID2_REVISION_NO

#define TJA1101_PHY_ID2_REVISION_NO   0x000F

Definition at line 104 of file tja1101_driver.h.

◆ TJA1101_PHY_ID2_REVISION_NO_DEFAULT

#define TJA1101_PHY_ID2_REVISION_NO_DEFAULT   0x0002

Definition at line 105 of file tja1101_driver.h.

◆ TJA1101_PHY_ID2_TYPE_NO

#define TJA1101_PHY_ID2_TYPE_NO   0x03F0

Definition at line 102 of file tja1101_driver.h.

◆ TJA1101_PHY_ID2_TYPE_NO_DEFAULT

#define TJA1101_PHY_ID2_TYPE_NO_DEFAULT   0x0100

Definition at line 103 of file tja1101_driver.h.

◆ TJA1101_PHY_ID3

#define TJA1101_PHY_ID3   0x10

Definition at line 50 of file tja1101_driver.h.

◆ TJA1101_PHY_ID3_VERSION_NO

#define TJA1101_PHY_ID3_VERSION_NO   0x00FF

Definition at line 116 of file tja1101_driver.h.

◆ TJA1101_SYM_ERR_COUNTER

#define TJA1101_SYM_ERR_COUNTER   0x14

Definition at line 54 of file tja1101_driver.h.

◆ TJA1101_SYM_ERR_COUNTER_SYM_ERR_CNT

#define TJA1101_SYM_ERR_COUNTER_SYM_ERR_CNT   0xFFFF

Definition at line 198 of file tja1101_driver.h.

Function Documentation

◆ tja1101DisableIrq()

void tja1101DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 190 of file tja1101_driver.c.

◆ tja1101DumpPhyReg()

void tja1101DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 291 of file tja1101_driver.c.

◆ tja1101EnableIrq()

void tja1101EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 175 of file tja1101_driver.c.

◆ tja1101EventHandler()

void tja1101EventHandler ( NetInterface interface)

TJA1101 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 205 of file tja1101_driver.c.

◆ tja1101Init()

error_t tja1101Init ( NetInterface interface)

TJA1101 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 60 of file tja1101_driver.c.

◆ tja1101InitHook()

void tja1101InitHook ( NetInterface interface)

TJA1101 custom configuration.

Parameters
[in]interfaceUnderlying network interface

Definition at line 127 of file tja1101_driver.c.

◆ tja1101ReadPhyReg()

uint16_t tja1101ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

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

Definition at line 265 of file tja1101_driver.c.

◆ tja1101Tick()

void tja1101Tick ( NetInterface interface)

TJA1101 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 137 of file tja1101_driver.c.

◆ tja1101WritePhyReg()

void tja1101WritePhyReg ( 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 241 of file tja1101_driver.c.

Variable Documentation

◆ tja1101PhyDriver

const PhyDriver tja1101PhyDriver
extern

TJA1101 Ethernet PHY driver.

Definition at line 44 of file tja1101_driver.c.