tja1100_driver.h File Reference

TJA1100 100Base-T1 Ethernet PHY transceiver. More...

#include "core/nic.h"

Go to the source code of this file.

Macros

#define TJA1100_PHY_ADDR   0
 
#define TJA1100_BASIC_CTRL   0x00
 
#define TJA1100_BASIC_STAT   0x01
 
#define TJA1100_PHY_ID1   0x02
 
#define TJA1100_PHY_ID2   0x03
 
#define TJA1100_EXTENDED_STAT   0x0F
 
#define TJA1100_PHY_ID3   0x10
 
#define TJA1100_EXTENDED_CTRL   0x11
 
#define TJA1100_CONFIG1   0x12
 
#define TJA1100_CONFIG2   0x13
 
#define TJA1100_SYM_ERR_COUNTER   0x14
 
#define TJA1100_INT_SRC   0x15
 
#define TJA1100_INT_EN   0x16
 
#define TJA1100_COMM_STAT   0x17
 
#define TJA1100_GENERAL_STAT   0x18
 
#define TJA1100_EXTERNAL_STAT   0x19
 
#define TJA1100_LINK_FAIL_COUNTER   0x1A
 
#define TJA1100_BASIC_CTRL_RESET   0x8000
 
#define TJA1100_BASIC_CTRL_LOOPBACK   0x4000
 
#define TJA1100_BASIC_CTRL_SPEED_SEL_LSB   0x2000
 
#define TJA1100_BASIC_CTRL_AUTONEG_EN   0x1000
 
#define TJA1100_BASIC_CTRL_POWER_DOWN   0x0800
 
#define TJA1100_BASIC_CTRL_ISOLATE   0x0400
 
#define TJA1100_BASIC_CTRL_RE_AUTONEG   0x0200
 
#define TJA1100_BASIC_CTRL_DUPLEX_MODE   0x0100
 
#define TJA1100_BASIC_CTRL_COL_TEST   0x0080
 
#define TJA1100_BASIC_CTRL_SPEED_SEL_MSB   0x0040
 
#define TJA1100_BASIC_CTRL_UNIDIRECT_EN   0x0020
 
#define TJA1100_BASIC_STAT_100BT4   0x8000
 
#define TJA1100_BASIC_STAT_100BTX_FD   0x4000
 
#define TJA1100_BASIC_STAT_100BTX_HD   0x2000
 
#define TJA1100_BASIC_STAT_10BT_FD   0x1000
 
#define TJA1100_BASIC_STAT_10BT_HD   0x0800
 
#define TJA1100_BASIC_STAT_100BT2_FD   0x0400
 
#define TJA1100_BASIC_STAT_100BT2_HD   0x0200
 
#define TJA1100_BASIC_STAT_EXTENDED_STATUS   0x0100
 
#define TJA1100_BASIC_STAT_UNIDIRECT_ABILITY   0x0080
 
#define TJA1100_BASIC_STAT_MF_PREAMBLE_SUPPR   0x0040
 
#define TJA1100_BASIC_STAT_AUTONEG_COMPLETE   0x0020
 
#define TJA1100_BASIC_STAT_REMOTE_FAULT   0x0010
 
#define TJA1100_BASIC_STAT_AUTONEG_ABILITY   0x0008
 
#define TJA1100_BASIC_STAT_LINK_STATUS   0x0004
 
#define TJA1100_BASIC_STAT_JABBER_DETECT   0x0002
 
#define TJA1100_BASIC_STAT_EXTENDED_CAPABILITY   0x0001
 
#define TJA1100_PHY_ID1_OUI_MSB   0xFFFF
 
#define TJA1100_PHY_ID1_OUI_MSB_DEFAULT   0x0180
 
#define TJA1100_PHY_ID2_OUI_LSB   0xFC00
 
#define TJA1100_PHY_ID2_OUI_LSB_DEFAULT   0xDC00
 
#define TJA1100_PHY_ID2_TYPE_NO   0x03F0
 
#define TJA1100_PHY_ID2_TYPE_NO_DEFAULT   0x0040
 
#define TJA1100_PHY_ID2_REVISION_NO   0x000F
 
#define TJA1100_EXTENDED_STAT_1000BX_FD   0x8000
 
#define TJA1100_EXTENDED_STAT_1000BX_HD   0x4000
 
#define TJA1100_EXTENDED_STAT_1000BT_FD   0x2000
 
#define TJA1100_EXTENDED_STAT_1000BT_HD   0x1000
 
#define TJA1100_EXTENDED_STAT_100BT1   0x0080
 
#define TJA1100_EXTENDED_STAT_1000BT1   0x0040
 
#define TJA1100_PHY_ID3_VERSION_NO   0x00FF
 
#define TJA1100_EXTENDED_CTRL_LINK_CONTROL   0x8000
 
#define TJA1100_EXTENDED_CTRL_POWER_MODE   0x7800
 
#define TJA1100_EXTENDED_CTRL_POWER_MODE_NO_CHANGE   0x0000
 
#define TJA1100_EXTENDED_CTRL_POWER_MODE_NORMAL   0x1800
 
#define TJA1100_EXTENDED_CTRL_POWER_MODE_SLEEP_REQ   0x5800
 
#define TJA1100_EXTENDED_CTRL_POWER_MODE_STANDBY   0x6000
 
#define TJA1100_EXTENDED_CTRL_SLAVE_JITTER_TEST   0x0400
 
#define TJA1100_EXTENDED_CTRL_TRAINING_RESTART   0x0200
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE   0x01C0
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE_0   0x0000
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE_1   0x0040
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE_2   0x0080
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE_3   0x00C0
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE_4   0x0100
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE_5   0x0140
 
#define TJA1100_EXTENDED_CTRL_TEST_MODE_6   0x0180
 
#define TJA1100_EXTENDED_CTRL_CABLE_TEST   0x0020
 
#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE   0x0018
 
#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_INTERNAL   0x0000
 
#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_EXTERNAL   0x0008
 
#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_REMOTE   0x0018
 
#define TJA1100_EXTENDED_CTRL_CONFIG_EN   0x0004
 
#define TJA1100_EXTENDED_CTRL_CONFIG_INH   0x0002
 
#define TJA1100_EXTENDED_CTRL_WAKE_REQUEST   0x0001
 
#define TJA1100_CONFIG1_MASTER_SLAVE   0x8000
 
#define TJA1100_CONFIG1_AUTO_OP   0x4000
 
#define TJA1100_CONFIG1_LINK_LENGTH   0x2000
 
#define TJA1100_CONFIG1_TX_AMPLITUDE   0x0C00
 
#define TJA1100_CONFIG1_TX_AMPLITUDE_500MV   0x0000
 
#define TJA1100_CONFIG1_TX_AMPLITUDE_750MV   0x0400
 
#define TJA1100_CONFIG1_TX_AMPLITUDE_1000MV   0x0800
 
#define TJA1100_CONFIG1_TX_AMPLITUDE_1250MV   0x0C00
 
#define TJA1100_CONFIG1_MII_MODE   0x0300
 
#define TJA1100_CONFIG1_MII_MODE_MII   0x0000
 
#define TJA1100_CONFIG1_MII_MODE_RMII_50MHZ   0x0100
 
#define TJA1100_CONFIG1_MII_MODE_RMII_25MHZ   0x0200
 
#define TJA1100_CONFIG1_MII_MODE_REV_MII   0x0300
 
#define TJA1100_CONFIG1_MII_DRIVER   0x0080
 
#define TJA1100_CONFIG1_LED_MODE   0x0030
 
#define TJA1100_CONFIG1_LED_MODE_LINK_UP   0x0000
 
#define TJA1100_CONFIG1_LED_MODE_FRAME_RX   0x0010
 
#define TJA1100_CONFIG1_LED_MODE_SYM_ERR   0x0020
 
#define TJA1100_CONFIG1_LED_MODE_CRS   0x0030
 
#define TJA1100_CONFIG1_LED_ENABLE   0x0008
 
#define TJA1100_CONFIG1_CONFIG_WAKE   0x0004
 
#define TJA1100_CONFIG1_AUTO_PWD   0x0002
 
#define TJA1100_CONFIG2_PHYAD   0xF800
 
#define TJA1100_CONFIG2_SQI_AVERAGING   0x0600
 
#define TJA1100_CONFIG2_SQI_AVERAGING_32_SYMBOLS   0x0000
 
#define TJA1100_CONFIG2_SQI_AVERAGING_64_SYMBOLS   0x0200
 
#define TJA1100_CONFIG2_SQI_AVERAGING_128_SYMBOLS   0x0400
 
#define TJA1100_CONFIG2_SQI_AVERAGING_256_SYMBOLS   0x0600
 
#define TJA1100_CONFIG2_SQI_WLIMIT   0x01C0
 
#define TJA1100_CONFIG2_SQI_WLIMIT_NONE   0x0000
 
#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_A   0x0040
 
#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_B   0x0080
 
#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_C   0x00C0
 
#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_D   0x0100
 
#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_E   0x0140
 
#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_F   0x0180
 
#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_G   0x01C0
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT   0x0038
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_NONE   0x0000
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_A   0x0008
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_B   0x0010
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_C   0x0018
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_D   0x0020
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_E   0x0028
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_F   0x0030
 
#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_G   0x0038
 
#define TJA1100_CONFIG2_JUMBO_ENABLE   0x0004
 
#define TJA1100_CONFIG2_SLEEP_REQUEST_TO   0x0003
 
#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_0_4MS   0x0000
 
#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_1MS   0x0001
 
#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_4MS   0x0002
 
#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_16MS   0x0003
 
#define TJA1100_SYM_ERR_COUNTER_SYM_ERR_CNT   0xFFFF
 
#define TJA1100_INT_SRC_PWON   0x8000
 
#define TJA1100_INT_SRC_WAKEUP   0x4000
 
#define TJA1100_INT_SRC_PHY_INIT_FAIL   0x0800
 
#define TJA1100_INT_SRC_LINK_STATUS_FAIL   0x0400
 
#define TJA1100_INT_SRC_LINK_STATUS_UP   0x0200
 
#define TJA1100_INT_SRC_SYM_ERR   0x0100
 
#define TJA1100_INT_SRC_TRAINING_FAILED   0x0080
 
#define TJA1100_INT_SRC_SQI_WARNING   0x0040
 
#define TJA1100_INT_SRC_CONTROL_ERR   0x0020
 
#define TJA1100_INT_SRC_UV_ERR   0x0008
 
#define TJA1100_INT_SRC_UV_RECOVERY   0x0004
 
#define TJA1100_INT_SRC_TEMP_ERR   0x0002
 
#define TJA1100_INT_SRC_SLEEP_ABORT   0x0001
 
#define TJA1100_INT_EN_PWON   0x8000
 
#define TJA1100_INT_EN_WAKEUP   0x4000
 
#define TJA1100_INT_EN_PHY_INIT_FAIL   0x0800
 
#define TJA1100_INT_EN_LINK_STATUS_FAIL   0x0400
 
#define TJA1100_INT_EN_LINK_STATUS_UP   0x0200
 
#define TJA1100_INT_EN_SYM_ERR   0x0100
 
#define TJA1100_INT_EN_TRAINING_FAILED   0x0080
 
#define TJA1100_INT_EN_SQI_WARNING   0x0040
 
#define TJA1100_INT_EN_CONTROL_ERR   0x0020
 
#define TJA1100_INT_EN_UV_ERR   0x0008
 
#define TJA1100_INT_EN_UV_RECOVERY   0x0004
 
#define TJA1100_INT_EN_TEMP_ERR   0x0002
 
#define TJA1100_INT_EN_SLEEP_ABORT   0x0001
 
#define TJA1100_COMM_STAT_LINK_UP   0x8000
 
#define TJA1100_COMM_STAT_TX_MODE   0x6000
 
#define TJA1100_COMM_STAT_TX_MODE_DISABLED   0x0000
 
#define TJA1100_COMM_STAT_TX_MODE_SEND_N   0x2000
 
#define TJA1100_COMM_STAT_TX_MODE_SEND_I   0x4000
 
#define TJA1100_COMM_STAT_TX_MODE_SEND_Z   0x6000
 
#define TJA1100_COMM_STAT_LOC_RCVR_STATUS   0x1000
 
#define TJA1100_COMM_STAT_REM_RCVR_STATUS   0x0800
 
#define TJA1100_COMM_STAT_SCR_LOCKED   0x0400
 
#define TJA1100_COMM_STAT_SSD_ERR   0x0200
 
#define TJA1100_COMM_STAT_ESD_ERR   0x0100
 
#define TJA1100_COMM_STAT_SQI   0x00E0
 
#define TJA1100_COMM_STAT_SQI_WORSE_THAN_CLASS_A   0x0000
 
#define TJA1100_COMM_STAT_SQI_CLASS_A   0x0020
 
#define TJA1100_COMM_STAT_SQI_CLASS_B   0x0040
 
#define TJA1100_COMM_STAT_SQI_CLASS_C   0x0060
 
#define TJA1100_COMM_STAT_SQI_CLASS_D   0x0080
 
#define TJA1100_COMM_STAT_SQI_CLASS_E   0x00A0
 
#define TJA1100_COMM_STAT_SQI_CLASS_F   0x00C0
 
#define TJA1100_COMM_STAT_SQI_CLASS_G   0x00E0
 
#define TJA1100_COMM_STAT_RECEIVE_ERR   0x0010
 
#define TJA1100_COMM_STAT_TRANSMIT_ERR   0x0008
 
#define TJA1100_COMM_STAT_PHY_STATE   0x0007
 
#define TJA1100_COMM_STAT_PHY_STATE_IDLE   0x0000
 
#define TJA1100_COMM_STAT_PHY_STATE_INITIALIZING   0x0001
 
#define TJA1100_COMM_STAT_PHY_STATE_CONFIGURED   0x0002
 
#define TJA1100_COMM_STAT_PHY_STATE_OFFLINE   0x0003
 
#define TJA1100_COMM_STAT_PHY_STATE_ACTIVE   0x0004
 
#define TJA1100_COMM_STAT_PHY_STATE_ISOLATE   0x0005
 
#define TJA1100_COMM_STAT_PHY_STATE_CABLE_TEST   0x0006
 
#define TJA1100_COMM_STAT_PHY_STATE_TEST_MODE   0x0007
 
#define TJA1100_GENERAL_STAT_INT_STATUS   0x8000
 
#define TJA1100_GENERAL_STAT_PLL_LOCKED   0x4000
 
#define TJA1100_GENERAL_STAT_LOCAL_WU   0x2000
 
#define TJA1100_GENERAL_STAT_REMOTE_WU   0x1000
 
#define TJA1100_GENERAL_STAT_DATA_DET_WU   0x0800
 
#define TJA1100_GENERAL_STAT_EN_STATUS   0x0400
 
#define TJA1100_GENERAL_STAT_RESET_STATUS   0x0200
 
#define TJA1100_GENERAL_STAT_LINKFAIL_CNT   0x00F8
 
#define TJA1100_EXTERNAL_STAT_UV_VDDA_3V3   0x4000
 
#define TJA1100_EXTERNAL_STAT_UV_VDDD_1V8   0x2000
 
#define TJA1100_EXTERNAL_STAT_UV_VDDA_1V8   0x1000
 
#define TJA1100_EXTERNAL_STAT_UV_VDDIO   0x0800
 
#define TJA1100_EXTERNAL_STAT_TEMP_HIGH   0x0400
 
#define TJA1100_EXTERNAL_STAT_TEMP_WARN   0x0200
 
#define TJA1100_EXTERNAL_STAT_SHORT_DETECT   0x0100
 
#define TJA1100_EXTERNAL_STAT_OPEN_DETECT   0x0080
 
#define TJA1100_EXTERNAL_STAT_POLARITY_DETECT   0x0040
 
#define TJA1100_EXTERNAL_STAT_INTERLEAVE_DETECT   0x0020
 
#define TJA1100_LINK_FAIL_COUNTER_LOC_RCVR_CNT   0xFF00
 
#define TJA1100_LINK_FAIL_COUNTER_REM_RCVR_CNT   0x00FF
 

Functions

error_t tja1100Init (NetInterface *interface)
 TJA1100 PHY transceiver initialization. More...
 
void tja1100Tick (NetInterface *interface)
 TJA1100 timer handler. More...
 
void tja1100EnableIrq (NetInterface *interface)
 Enable interrupts. More...
 
void tja1100DisableIrq (NetInterface *interface)
 Disable interrupts. More...
 
void tja1100EventHandler (NetInterface *interface)
 TJA1100 event handler. More...
 
void tja1100WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data)
 Write PHY register. More...
 
uint16_t tja1100ReadPhyReg (NetInterface *interface, uint8_t address)
 Read PHY register. More...
 
void tja1100DumpPhyReg (NetInterface *interface)
 Dump PHY registers for debugging purpose. More...
 

Variables

const PhyDriver tja1100PhyDriver
 TJA1100 Ethernet PHY driver. More...
 

Detailed Description

TJA1100 100Base-T1 Ethernet PHY transceiver.

License

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

Copyright (C) 2010-2019 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
1.9.6

Definition in file tja1100_driver.h.

Macro Definition Documentation

◆ TJA1100_BASIC_CTRL

#define TJA1100_BASIC_CTRL   0x00

Definition at line 45 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_AUTONEG_EN

#define TJA1100_BASIC_CTRL_AUTONEG_EN   0x1000

Definition at line 66 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_COL_TEST

#define TJA1100_BASIC_CTRL_COL_TEST   0x0080

Definition at line 71 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_DUPLEX_MODE

#define TJA1100_BASIC_CTRL_DUPLEX_MODE   0x0100

Definition at line 70 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_ISOLATE

#define TJA1100_BASIC_CTRL_ISOLATE   0x0400

Definition at line 68 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_LOOPBACK

#define TJA1100_BASIC_CTRL_LOOPBACK   0x4000

Definition at line 64 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_POWER_DOWN

#define TJA1100_BASIC_CTRL_POWER_DOWN   0x0800

Definition at line 67 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_RE_AUTONEG

#define TJA1100_BASIC_CTRL_RE_AUTONEG   0x0200

Definition at line 69 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_RESET

#define TJA1100_BASIC_CTRL_RESET   0x8000

Definition at line 63 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_SPEED_SEL_LSB

#define TJA1100_BASIC_CTRL_SPEED_SEL_LSB   0x2000

Definition at line 65 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_SPEED_SEL_MSB

#define TJA1100_BASIC_CTRL_SPEED_SEL_MSB   0x0040

Definition at line 72 of file tja1100_driver.h.

◆ TJA1100_BASIC_CTRL_UNIDIRECT_EN

#define TJA1100_BASIC_CTRL_UNIDIRECT_EN   0x0020

Definition at line 73 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT

#define TJA1100_BASIC_STAT   0x01

Definition at line 46 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_100BT2_FD

#define TJA1100_BASIC_STAT_100BT2_FD   0x0400

Definition at line 81 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_100BT2_HD

#define TJA1100_BASIC_STAT_100BT2_HD   0x0200

Definition at line 82 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_100BT4

#define TJA1100_BASIC_STAT_100BT4   0x8000

Definition at line 76 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_100BTX_FD

#define TJA1100_BASIC_STAT_100BTX_FD   0x4000

Definition at line 77 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_100BTX_HD

#define TJA1100_BASIC_STAT_100BTX_HD   0x2000

Definition at line 78 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_10BT_FD

#define TJA1100_BASIC_STAT_10BT_FD   0x1000

Definition at line 79 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_10BT_HD

#define TJA1100_BASIC_STAT_10BT_HD   0x0800

Definition at line 80 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_AUTONEG_ABILITY

#define TJA1100_BASIC_STAT_AUTONEG_ABILITY   0x0008

Definition at line 88 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_AUTONEG_COMPLETE

#define TJA1100_BASIC_STAT_AUTONEG_COMPLETE   0x0020

Definition at line 86 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_EXTENDED_CAPABILITY

#define TJA1100_BASIC_STAT_EXTENDED_CAPABILITY   0x0001

Definition at line 91 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_EXTENDED_STATUS

#define TJA1100_BASIC_STAT_EXTENDED_STATUS   0x0100

Definition at line 83 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_JABBER_DETECT

#define TJA1100_BASIC_STAT_JABBER_DETECT   0x0002

Definition at line 90 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_LINK_STATUS

#define TJA1100_BASIC_STAT_LINK_STATUS   0x0004

Definition at line 89 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_MF_PREAMBLE_SUPPR

#define TJA1100_BASIC_STAT_MF_PREAMBLE_SUPPR   0x0040

Definition at line 85 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_REMOTE_FAULT

#define TJA1100_BASIC_STAT_REMOTE_FAULT   0x0010

Definition at line 87 of file tja1100_driver.h.

◆ TJA1100_BASIC_STAT_UNIDIRECT_ABILITY

#define TJA1100_BASIC_STAT_UNIDIRECT_ABILITY   0x0080

Definition at line 84 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT

#define TJA1100_COMM_STAT   0x17

Definition at line 57 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_ESD_ERR

#define TJA1100_COMM_STAT_ESD_ERR   0x0100

Definition at line 241 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_LINK_UP

#define TJA1100_COMM_STAT_LINK_UP   0x8000

Definition at line 231 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_LOC_RCVR_STATUS

#define TJA1100_COMM_STAT_LOC_RCVR_STATUS   0x1000

Definition at line 237 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE

#define TJA1100_COMM_STAT_PHY_STATE   0x0007

Definition at line 253 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_ACTIVE

#define TJA1100_COMM_STAT_PHY_STATE_ACTIVE   0x0004

Definition at line 258 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_CABLE_TEST

#define TJA1100_COMM_STAT_PHY_STATE_CABLE_TEST   0x0006

Definition at line 260 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_CONFIGURED

#define TJA1100_COMM_STAT_PHY_STATE_CONFIGURED   0x0002

Definition at line 256 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_IDLE

#define TJA1100_COMM_STAT_PHY_STATE_IDLE   0x0000

Definition at line 254 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_INITIALIZING

#define TJA1100_COMM_STAT_PHY_STATE_INITIALIZING   0x0001

Definition at line 255 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_ISOLATE

#define TJA1100_COMM_STAT_PHY_STATE_ISOLATE   0x0005

Definition at line 259 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_OFFLINE

#define TJA1100_COMM_STAT_PHY_STATE_OFFLINE   0x0003

Definition at line 257 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_PHY_STATE_TEST_MODE

#define TJA1100_COMM_STAT_PHY_STATE_TEST_MODE   0x0007

Definition at line 261 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_RECEIVE_ERR

#define TJA1100_COMM_STAT_RECEIVE_ERR   0x0010

Definition at line 251 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_REM_RCVR_STATUS

#define TJA1100_COMM_STAT_REM_RCVR_STATUS   0x0800

Definition at line 238 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SCR_LOCKED

#define TJA1100_COMM_STAT_SCR_LOCKED   0x0400

Definition at line 239 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI

#define TJA1100_COMM_STAT_SQI   0x00E0

Definition at line 242 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_CLASS_A

#define TJA1100_COMM_STAT_SQI_CLASS_A   0x0020

Definition at line 244 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_CLASS_B

#define TJA1100_COMM_STAT_SQI_CLASS_B   0x0040

Definition at line 245 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_CLASS_C

#define TJA1100_COMM_STAT_SQI_CLASS_C   0x0060

Definition at line 246 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_CLASS_D

#define TJA1100_COMM_STAT_SQI_CLASS_D   0x0080

Definition at line 247 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_CLASS_E

#define TJA1100_COMM_STAT_SQI_CLASS_E   0x00A0

Definition at line 248 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_CLASS_F

#define TJA1100_COMM_STAT_SQI_CLASS_F   0x00C0

Definition at line 249 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_CLASS_G

#define TJA1100_COMM_STAT_SQI_CLASS_G   0x00E0

Definition at line 250 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SQI_WORSE_THAN_CLASS_A

#define TJA1100_COMM_STAT_SQI_WORSE_THAN_CLASS_A   0x0000

Definition at line 243 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_SSD_ERR

#define TJA1100_COMM_STAT_SSD_ERR   0x0200

Definition at line 240 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_TRANSMIT_ERR

#define TJA1100_COMM_STAT_TRANSMIT_ERR   0x0008

Definition at line 252 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_TX_MODE

#define TJA1100_COMM_STAT_TX_MODE   0x6000

Definition at line 232 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_TX_MODE_DISABLED

#define TJA1100_COMM_STAT_TX_MODE_DISABLED   0x0000

Definition at line 233 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_TX_MODE_SEND_I

#define TJA1100_COMM_STAT_TX_MODE_SEND_I   0x4000

Definition at line 235 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_TX_MODE_SEND_N

#define TJA1100_COMM_STAT_TX_MODE_SEND_N   0x2000

Definition at line 234 of file tja1100_driver.h.

◆ TJA1100_COMM_STAT_TX_MODE_SEND_Z

#define TJA1100_COMM_STAT_TX_MODE_SEND_Z   0x6000

Definition at line 236 of file tja1100_driver.h.

◆ TJA1100_CONFIG1

#define TJA1100_CONFIG1   0x12

Definition at line 52 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_AUTO_OP

#define TJA1100_CONFIG1_AUTO_OP   0x4000

Definition at line 143 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_AUTO_PWD

#define TJA1100_CONFIG1_AUTO_PWD   0x0002

Definition at line 163 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_CONFIG_WAKE

#define TJA1100_CONFIG1_CONFIG_WAKE   0x0004

Definition at line 162 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_LED_ENABLE

#define TJA1100_CONFIG1_LED_ENABLE   0x0008

Definition at line 161 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_LED_MODE

#define TJA1100_CONFIG1_LED_MODE   0x0030

Definition at line 156 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_LED_MODE_CRS

#define TJA1100_CONFIG1_LED_MODE_CRS   0x0030

Definition at line 160 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_LED_MODE_FRAME_RX

#define TJA1100_CONFIG1_LED_MODE_FRAME_RX   0x0010

Definition at line 158 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_LED_MODE_LINK_UP

#define TJA1100_CONFIG1_LED_MODE_LINK_UP   0x0000

Definition at line 157 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_LED_MODE_SYM_ERR

#define TJA1100_CONFIG1_LED_MODE_SYM_ERR   0x0020

Definition at line 159 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_LINK_LENGTH

#define TJA1100_CONFIG1_LINK_LENGTH   0x2000

Definition at line 144 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_MASTER_SLAVE

#define TJA1100_CONFIG1_MASTER_SLAVE   0x8000

Definition at line 142 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_MII_DRIVER

#define TJA1100_CONFIG1_MII_DRIVER   0x0080

Definition at line 155 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_MII_MODE

#define TJA1100_CONFIG1_MII_MODE   0x0300

Definition at line 150 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_MII_MODE_MII

#define TJA1100_CONFIG1_MII_MODE_MII   0x0000

Definition at line 151 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_MII_MODE_REV_MII

#define TJA1100_CONFIG1_MII_MODE_REV_MII   0x0300

Definition at line 154 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_MII_MODE_RMII_25MHZ

#define TJA1100_CONFIG1_MII_MODE_RMII_25MHZ   0x0200

Definition at line 153 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_MII_MODE_RMII_50MHZ

#define TJA1100_CONFIG1_MII_MODE_RMII_50MHZ   0x0100

Definition at line 152 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_TX_AMPLITUDE

#define TJA1100_CONFIG1_TX_AMPLITUDE   0x0C00

Definition at line 145 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_TX_AMPLITUDE_1000MV

#define TJA1100_CONFIG1_TX_AMPLITUDE_1000MV   0x0800

Definition at line 148 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_TX_AMPLITUDE_1250MV

#define TJA1100_CONFIG1_TX_AMPLITUDE_1250MV   0x0C00

Definition at line 149 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_TX_AMPLITUDE_500MV

#define TJA1100_CONFIG1_TX_AMPLITUDE_500MV   0x0000

Definition at line 146 of file tja1100_driver.h.

◆ TJA1100_CONFIG1_TX_AMPLITUDE_750MV

#define TJA1100_CONFIG1_TX_AMPLITUDE_750MV   0x0400

Definition at line 147 of file tja1100_driver.h.

◆ TJA1100_CONFIG2

#define TJA1100_CONFIG2   0x13

Definition at line 53 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_JUMBO_ENABLE

#define TJA1100_CONFIG2_JUMBO_ENABLE   0x0004

Definition at line 190 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_PHYAD

#define TJA1100_CONFIG2_PHYAD   0xF800

Definition at line 166 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SLEEP_REQUEST_TO

#define TJA1100_CONFIG2_SLEEP_REQUEST_TO   0x0003

Definition at line 191 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SLEEP_REQUEST_TO_0_4MS

#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_0_4MS   0x0000

Definition at line 192 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SLEEP_REQUEST_TO_16MS

#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_16MS   0x0003

Definition at line 195 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SLEEP_REQUEST_TO_1MS

#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_1MS   0x0001

Definition at line 193 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SLEEP_REQUEST_TO_4MS

#define TJA1100_CONFIG2_SLEEP_REQUEST_TO_4MS   0x0002

Definition at line 194 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_AVERAGING

#define TJA1100_CONFIG2_SQI_AVERAGING   0x0600

Definition at line 167 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_AVERAGING_128_SYMBOLS

#define TJA1100_CONFIG2_SQI_AVERAGING_128_SYMBOLS   0x0400

Definition at line 170 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_AVERAGING_256_SYMBOLS

#define TJA1100_CONFIG2_SQI_AVERAGING_256_SYMBOLS   0x0600

Definition at line 171 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_AVERAGING_32_SYMBOLS

#define TJA1100_CONFIG2_SQI_AVERAGING_32_SYMBOLS   0x0000

Definition at line 168 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_AVERAGING_64_SYMBOLS

#define TJA1100_CONFIG2_SQI_AVERAGING_64_SYMBOLS   0x0200

Definition at line 169 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT

#define TJA1100_CONFIG2_SQI_FAILLIMIT   0x0038

Definition at line 181 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_A

#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_A   0x0008

Definition at line 183 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_B

#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_B   0x0010

Definition at line 184 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_C

#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_C   0x0018

Definition at line 185 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_D

#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_D   0x0020

Definition at line 186 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_E

#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_E   0x0028

Definition at line 187 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_F

#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_F   0x0030

Definition at line 188 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_G

#define TJA1100_CONFIG2_SQI_FAILLIMIT_CLASS_G   0x0038

Definition at line 189 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_FAILLIMIT_NONE

#define TJA1100_CONFIG2_SQI_FAILLIMIT_NONE   0x0000

Definition at line 182 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT

#define TJA1100_CONFIG2_SQI_WLIMIT   0x01C0

Definition at line 172 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_CLASS_A

#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_A   0x0040

Definition at line 174 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_CLASS_B

#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_B   0x0080

Definition at line 175 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_CLASS_C

#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_C   0x00C0

Definition at line 176 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_CLASS_D

#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_D   0x0100

Definition at line 177 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_CLASS_E

#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_E   0x0140

Definition at line 178 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_CLASS_F

#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_F   0x0180

Definition at line 179 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_CLASS_G

#define TJA1100_CONFIG2_SQI_WLIMIT_CLASS_G   0x01C0

Definition at line 180 of file tja1100_driver.h.

◆ TJA1100_CONFIG2_SQI_WLIMIT_NONE

#define TJA1100_CONFIG2_SQI_WLIMIT_NONE   0x0000

Definition at line 173 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL

#define TJA1100_EXTENDED_CTRL   0x11

Definition at line 51 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_CABLE_TEST

#define TJA1100_EXTENDED_CTRL_CABLE_TEST   0x0020

Definition at line 132 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_CONFIG_EN

#define TJA1100_EXTENDED_CTRL_CONFIG_EN   0x0004

Definition at line 137 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_CONFIG_INH

#define TJA1100_EXTENDED_CTRL_CONFIG_INH   0x0002

Definition at line 138 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_LINK_CONTROL

#define TJA1100_EXTENDED_CTRL_LINK_CONTROL   0x8000

Definition at line 116 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_LOOPBACK_MODE

#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE   0x0018

Definition at line 133 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_EXTERNAL

#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_EXTERNAL   0x0008

Definition at line 135 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_INTERNAL

#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_INTERNAL   0x0000

Definition at line 134 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_REMOTE

#define TJA1100_EXTENDED_CTRL_LOOPBACK_MODE_REMOTE   0x0018

Definition at line 136 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_POWER_MODE

#define TJA1100_EXTENDED_CTRL_POWER_MODE   0x7800

Definition at line 117 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_POWER_MODE_NO_CHANGE

#define TJA1100_EXTENDED_CTRL_POWER_MODE_NO_CHANGE   0x0000

Definition at line 118 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_POWER_MODE_NORMAL

#define TJA1100_EXTENDED_CTRL_POWER_MODE_NORMAL   0x1800

Definition at line 119 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_POWER_MODE_SLEEP_REQ

#define TJA1100_EXTENDED_CTRL_POWER_MODE_SLEEP_REQ   0x5800

Definition at line 120 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_POWER_MODE_STANDBY

#define TJA1100_EXTENDED_CTRL_POWER_MODE_STANDBY   0x6000

Definition at line 121 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_SLAVE_JITTER_TEST

#define TJA1100_EXTENDED_CTRL_SLAVE_JITTER_TEST   0x0400

Definition at line 122 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE

#define TJA1100_EXTENDED_CTRL_TEST_MODE   0x01C0

Definition at line 124 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE_0

#define TJA1100_EXTENDED_CTRL_TEST_MODE_0   0x0000

Definition at line 125 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE_1

#define TJA1100_EXTENDED_CTRL_TEST_MODE_1   0x0040

Definition at line 126 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE_2

#define TJA1100_EXTENDED_CTRL_TEST_MODE_2   0x0080

Definition at line 127 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE_3

#define TJA1100_EXTENDED_CTRL_TEST_MODE_3   0x00C0

Definition at line 128 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE_4

#define TJA1100_EXTENDED_CTRL_TEST_MODE_4   0x0100

Definition at line 129 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE_5

#define TJA1100_EXTENDED_CTRL_TEST_MODE_5   0x0140

Definition at line 130 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TEST_MODE_6

#define TJA1100_EXTENDED_CTRL_TEST_MODE_6   0x0180

Definition at line 131 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_TRAINING_RESTART

#define TJA1100_EXTENDED_CTRL_TRAINING_RESTART   0x0200

Definition at line 123 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_CTRL_WAKE_REQUEST

#define TJA1100_EXTENDED_CTRL_WAKE_REQUEST   0x0001

Definition at line 139 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_STAT

#define TJA1100_EXTENDED_STAT   0x0F

Definition at line 49 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_STAT_1000BT1

#define TJA1100_EXTENDED_STAT_1000BT1   0x0040

Definition at line 110 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_STAT_1000BT_FD

#define TJA1100_EXTENDED_STAT_1000BT_FD   0x2000

Definition at line 107 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_STAT_1000BT_HD

#define TJA1100_EXTENDED_STAT_1000BT_HD   0x1000

Definition at line 108 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_STAT_1000BX_FD

#define TJA1100_EXTENDED_STAT_1000BX_FD   0x8000

Definition at line 105 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_STAT_1000BX_HD

#define TJA1100_EXTENDED_STAT_1000BX_HD   0x4000

Definition at line 106 of file tja1100_driver.h.

◆ TJA1100_EXTENDED_STAT_100BT1

#define TJA1100_EXTENDED_STAT_100BT1   0x0080

Definition at line 109 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT

#define TJA1100_EXTERNAL_STAT   0x19

Definition at line 59 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_INTERLEAVE_DETECT

#define TJA1100_EXTERNAL_STAT_INTERLEAVE_DETECT   0x0020

Definition at line 283 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_OPEN_DETECT

#define TJA1100_EXTERNAL_STAT_OPEN_DETECT   0x0080

Definition at line 281 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_POLARITY_DETECT

#define TJA1100_EXTERNAL_STAT_POLARITY_DETECT   0x0040

Definition at line 282 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_SHORT_DETECT

#define TJA1100_EXTERNAL_STAT_SHORT_DETECT   0x0100

Definition at line 280 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_TEMP_HIGH

#define TJA1100_EXTERNAL_STAT_TEMP_HIGH   0x0400

Definition at line 278 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_TEMP_WARN

#define TJA1100_EXTERNAL_STAT_TEMP_WARN   0x0200

Definition at line 279 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_UV_VDDA_1V8

#define TJA1100_EXTERNAL_STAT_UV_VDDA_1V8   0x1000

Definition at line 276 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_UV_VDDA_3V3

#define TJA1100_EXTERNAL_STAT_UV_VDDA_3V3   0x4000

Definition at line 274 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_UV_VDDD_1V8

#define TJA1100_EXTERNAL_STAT_UV_VDDD_1V8   0x2000

Definition at line 275 of file tja1100_driver.h.

◆ TJA1100_EXTERNAL_STAT_UV_VDDIO

#define TJA1100_EXTERNAL_STAT_UV_VDDIO   0x0800

Definition at line 277 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT

#define TJA1100_GENERAL_STAT   0x18

Definition at line 58 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_DATA_DET_WU

#define TJA1100_GENERAL_STAT_DATA_DET_WU   0x0800

Definition at line 268 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_EN_STATUS

#define TJA1100_GENERAL_STAT_EN_STATUS   0x0400

Definition at line 269 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_INT_STATUS

#define TJA1100_GENERAL_STAT_INT_STATUS   0x8000

Definition at line 264 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_LINKFAIL_CNT

#define TJA1100_GENERAL_STAT_LINKFAIL_CNT   0x00F8

Definition at line 271 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_LOCAL_WU

#define TJA1100_GENERAL_STAT_LOCAL_WU   0x2000

Definition at line 266 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_PLL_LOCKED

#define TJA1100_GENERAL_STAT_PLL_LOCKED   0x4000

Definition at line 265 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_REMOTE_WU

#define TJA1100_GENERAL_STAT_REMOTE_WU   0x1000

Definition at line 267 of file tja1100_driver.h.

◆ TJA1100_GENERAL_STAT_RESET_STATUS

#define TJA1100_GENERAL_STAT_RESET_STATUS   0x0200

Definition at line 270 of file tja1100_driver.h.

◆ TJA1100_INT_EN

#define TJA1100_INT_EN   0x16

Definition at line 56 of file tja1100_driver.h.

◆ TJA1100_INT_EN_CONTROL_ERR

#define TJA1100_INT_EN_CONTROL_ERR   0x0020

Definition at line 224 of file tja1100_driver.h.

◆ TJA1100_INT_EN_LINK_STATUS_FAIL

#define TJA1100_INT_EN_LINK_STATUS_FAIL   0x0400

Definition at line 219 of file tja1100_driver.h.

◆ TJA1100_INT_EN_LINK_STATUS_UP

#define TJA1100_INT_EN_LINK_STATUS_UP   0x0200

Definition at line 220 of file tja1100_driver.h.

◆ TJA1100_INT_EN_PHY_INIT_FAIL

#define TJA1100_INT_EN_PHY_INIT_FAIL   0x0800

Definition at line 218 of file tja1100_driver.h.

◆ TJA1100_INT_EN_PWON

#define TJA1100_INT_EN_PWON   0x8000

Definition at line 216 of file tja1100_driver.h.

◆ TJA1100_INT_EN_SLEEP_ABORT

#define TJA1100_INT_EN_SLEEP_ABORT   0x0001

Definition at line 228 of file tja1100_driver.h.

◆ TJA1100_INT_EN_SQI_WARNING

#define TJA1100_INT_EN_SQI_WARNING   0x0040

Definition at line 223 of file tja1100_driver.h.

◆ TJA1100_INT_EN_SYM_ERR

#define TJA1100_INT_EN_SYM_ERR   0x0100

Definition at line 221 of file tja1100_driver.h.

◆ TJA1100_INT_EN_TEMP_ERR

#define TJA1100_INT_EN_TEMP_ERR   0x0002

Definition at line 227 of file tja1100_driver.h.

◆ TJA1100_INT_EN_TRAINING_FAILED

#define TJA1100_INT_EN_TRAINING_FAILED   0x0080

Definition at line 222 of file tja1100_driver.h.

◆ TJA1100_INT_EN_UV_ERR

#define TJA1100_INT_EN_UV_ERR   0x0008

Definition at line 225 of file tja1100_driver.h.

◆ TJA1100_INT_EN_UV_RECOVERY

#define TJA1100_INT_EN_UV_RECOVERY   0x0004

Definition at line 226 of file tja1100_driver.h.

◆ TJA1100_INT_EN_WAKEUP

#define TJA1100_INT_EN_WAKEUP   0x4000

Definition at line 217 of file tja1100_driver.h.

◆ TJA1100_INT_SRC

#define TJA1100_INT_SRC   0x15

Definition at line 55 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_CONTROL_ERR

#define TJA1100_INT_SRC_CONTROL_ERR   0x0020

Definition at line 209 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_LINK_STATUS_FAIL

#define TJA1100_INT_SRC_LINK_STATUS_FAIL   0x0400

Definition at line 204 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_LINK_STATUS_UP

#define TJA1100_INT_SRC_LINK_STATUS_UP   0x0200

Definition at line 205 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_PHY_INIT_FAIL

#define TJA1100_INT_SRC_PHY_INIT_FAIL   0x0800

Definition at line 203 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_PWON

#define TJA1100_INT_SRC_PWON   0x8000

Definition at line 201 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_SLEEP_ABORT

#define TJA1100_INT_SRC_SLEEP_ABORT   0x0001

Definition at line 213 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_SQI_WARNING

#define TJA1100_INT_SRC_SQI_WARNING   0x0040

Definition at line 208 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_SYM_ERR

#define TJA1100_INT_SRC_SYM_ERR   0x0100

Definition at line 206 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_TEMP_ERR

#define TJA1100_INT_SRC_TEMP_ERR   0x0002

Definition at line 212 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_TRAINING_FAILED

#define TJA1100_INT_SRC_TRAINING_FAILED   0x0080

Definition at line 207 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_UV_ERR

#define TJA1100_INT_SRC_UV_ERR   0x0008

Definition at line 210 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_UV_RECOVERY

#define TJA1100_INT_SRC_UV_RECOVERY   0x0004

Definition at line 211 of file tja1100_driver.h.

◆ TJA1100_INT_SRC_WAKEUP

#define TJA1100_INT_SRC_WAKEUP   0x4000

Definition at line 202 of file tja1100_driver.h.

◆ TJA1100_LINK_FAIL_COUNTER

#define TJA1100_LINK_FAIL_COUNTER   0x1A

Definition at line 60 of file tja1100_driver.h.

◆ TJA1100_LINK_FAIL_COUNTER_LOC_RCVR_CNT

#define TJA1100_LINK_FAIL_COUNTER_LOC_RCVR_CNT   0xFF00

Definition at line 286 of file tja1100_driver.h.

◆ TJA1100_LINK_FAIL_COUNTER_REM_RCVR_CNT

#define TJA1100_LINK_FAIL_COUNTER_REM_RCVR_CNT   0x00FF

Definition at line 287 of file tja1100_driver.h.

◆ TJA1100_PHY_ADDR

#define TJA1100_PHY_ADDR   0

Definition at line 39 of file tja1100_driver.h.

◆ TJA1100_PHY_ID1

#define TJA1100_PHY_ID1   0x02

Definition at line 47 of file tja1100_driver.h.

◆ TJA1100_PHY_ID1_OUI_MSB

#define TJA1100_PHY_ID1_OUI_MSB   0xFFFF

Definition at line 94 of file tja1100_driver.h.

◆ TJA1100_PHY_ID1_OUI_MSB_DEFAULT

#define TJA1100_PHY_ID1_OUI_MSB_DEFAULT   0x0180

Definition at line 95 of file tja1100_driver.h.

◆ TJA1100_PHY_ID2

#define TJA1100_PHY_ID2   0x03

Definition at line 48 of file tja1100_driver.h.

◆ TJA1100_PHY_ID2_OUI_LSB

#define TJA1100_PHY_ID2_OUI_LSB   0xFC00

Definition at line 98 of file tja1100_driver.h.

◆ TJA1100_PHY_ID2_OUI_LSB_DEFAULT

#define TJA1100_PHY_ID2_OUI_LSB_DEFAULT   0xDC00

Definition at line 99 of file tja1100_driver.h.

◆ TJA1100_PHY_ID2_REVISION_NO

#define TJA1100_PHY_ID2_REVISION_NO   0x000F

Definition at line 102 of file tja1100_driver.h.

◆ TJA1100_PHY_ID2_TYPE_NO

#define TJA1100_PHY_ID2_TYPE_NO   0x03F0

Definition at line 100 of file tja1100_driver.h.

◆ TJA1100_PHY_ID2_TYPE_NO_DEFAULT

#define TJA1100_PHY_ID2_TYPE_NO_DEFAULT   0x0040

Definition at line 101 of file tja1100_driver.h.

◆ TJA1100_PHY_ID3

#define TJA1100_PHY_ID3   0x10

Definition at line 50 of file tja1100_driver.h.

◆ TJA1100_PHY_ID3_VERSION_NO

#define TJA1100_PHY_ID3_VERSION_NO   0x00FF

Definition at line 113 of file tja1100_driver.h.

◆ TJA1100_SYM_ERR_COUNTER

#define TJA1100_SYM_ERR_COUNTER   0x14

Definition at line 54 of file tja1100_driver.h.

◆ TJA1100_SYM_ERR_COUNTER_SYM_ERR_CNT

#define TJA1100_SYM_ERR_COUNTER_SYM_ERR_CNT   0xFFFF

Definition at line 198 of file tja1100_driver.h.

Function Documentation

◆ tja1100DisableIrq()

void tja1100DisableIrq ( NetInterface interface)

Disable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 179 of file tja1100_driver.c.

◆ tja1100DumpPhyReg()

void tja1100DumpPhyReg ( NetInterface interface)

Dump PHY registers for debugging purpose.

Parameters
[in]interfaceUnderlying network interface

Definition at line 259 of file tja1100_driver.c.

◆ tja1100EnableIrq()

void tja1100EnableIrq ( NetInterface interface)

Enable interrupts.

Parameters
[in]interfaceUnderlying network interface

Definition at line 164 of file tja1100_driver.c.

◆ tja1100EventHandler()

void tja1100EventHandler ( NetInterface interface)

TJA1100 event handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 194 of file tja1100_driver.c.

◆ tja1100Init()

error_t tja1100Init ( NetInterface interface)

TJA1100 PHY transceiver initialization.

Parameters
[in]interfaceUnderlying network interface
Returns
Error code

Definition at line 62 of file tja1100_driver.c.

◆ tja1100ReadPhyReg()

uint16_t tja1100ReadPhyReg ( NetInterface interface,
uint8_t  address 
)

Read PHY register.

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

Definition at line 246 of file tja1100_driver.c.

◆ tja1100Tick()

void tja1100Tick ( NetInterface interface)

TJA1100 timer handler.

Parameters
[in]interfaceUnderlying network interface

Definition at line 126 of file tja1100_driver.c.

◆ tja1100WritePhyReg()

void tja1100WritePhyReg ( 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 230 of file tja1100_driver.c.

Variable Documentation

◆ tja1100PhyDriver

const PhyDriver tja1100PhyDriver

TJA1100 Ethernet PHY driver.

Definition at line 44 of file tja1100_driver.c.