DM9162 Ethernet PHY driver. More...
#include "core/nic.h"Go to the source code of this file.
Functions | |
| error_t | dm9162Init (NetInterface *interface) |
| DM9162 PHY transceiver initialization. More... | |
| void | dm9162InitHook (NetInterface *interface) |
| DM9162 custom configuration. More... | |
| void | dm9162Tick (NetInterface *interface) |
| DM9162 timer handler. More... | |
| void | dm9162EnableIrq (NetInterface *interface) |
| Enable interrupts. More... | |
| void | dm9162DisableIrq (NetInterface *interface) |
| Disable interrupts. More... | |
| void | dm9162EventHandler (NetInterface *interface) |
| DM9162 event handler. More... | |
| void | dm9162WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data) |
| Write PHY register. More... | |
| uint16_t | dm9162ReadPhyReg (NetInterface *interface, uint8_t address) |
| Read PHY register. More... | |
| void | dm9162DumpPhyReg (NetInterface *interface) |
| Dump PHY registers for debugging purpose. More... | |
Variables | |
| const PhyDriver | dm9162PhyDriver |
| DM9162 Ethernet PHY driver. More... | |
Detailed Description
DM9162 Ethernet PHY driver.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 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.
- Version
- 2.5.4
Definition in file dm9162_driver.h.
Macro Definition Documentation
◆ DM9162_10BTCSR
| #define DM9162_10BTCSR 0x12 |
Definition at line 54 of file dm9162_driver.h.
◆ DM9162_10BTCSR_10BT_SER
| #define DM9162_10BTCSR_10BT_SER 0x0400 |
Definition at line 171 of file dm9162_driver.h.
◆ DM9162_10BTCSR_HBE
| #define DM9162_10BTCSR_HBE 0x2000 |
Definition at line 168 of file dm9162_driver.h.
◆ DM9162_10BTCSR_JABEN
| #define DM9162_10BTCSR_JABEN 0x0800 |
Definition at line 170 of file dm9162_driver.h.
◆ DM9162_10BTCSR_LP_EN
| #define DM9162_10BTCSR_LP_EN 0x4000 |
Definition at line 167 of file dm9162_driver.h.
◆ DM9162_10BTCSR_POLR
| #define DM9162_10BTCSR_POLR 0x0001 |
Definition at line 172 of file dm9162_driver.h.
◆ DM9162_10BTCSR_SQUELCH
| #define DM9162_10BTCSR_SQUELCH 0x1000 |
Definition at line 169 of file dm9162_driver.h.
◆ DM9162_ANAR
| #define DM9162_ANAR 0x04 |
Definition at line 49 of file dm9162_driver.h.
◆ DM9162_ANAR_100BT4
| #define DM9162_ANAR_100BT4 0x0200 |
Definition at line 104 of file dm9162_driver.h.
◆ DM9162_ANAR_100BTX_FD
| #define DM9162_ANAR_100BTX_FD 0x0100 |
Definition at line 105 of file dm9162_driver.h.
◆ DM9162_ANAR_100BTX_HD
| #define DM9162_ANAR_100BTX_HD 0x0080 |
Definition at line 106 of file dm9162_driver.h.
◆ DM9162_ANAR_10BT_FD
| #define DM9162_ANAR_10BT_FD 0x0040 |
Definition at line 107 of file dm9162_driver.h.
◆ DM9162_ANAR_10BT_HD
| #define DM9162_ANAR_10BT_HD 0x0020 |
Definition at line 108 of file dm9162_driver.h.
◆ DM9162_ANAR_ACK
| #define DM9162_ANAR_ACK 0x4000 |
Definition at line 101 of file dm9162_driver.h.
◆ DM9162_ANAR_FCS
| #define DM9162_ANAR_FCS 0x0400 |
Definition at line 103 of file dm9162_driver.h.
◆ DM9162_ANAR_NEXT_PAGE
| #define DM9162_ANAR_NEXT_PAGE 0x8000 |
Definition at line 100 of file dm9162_driver.h.
◆ DM9162_ANAR_REMOTE_FAULT
| #define DM9162_ANAR_REMOTE_FAULT 0x2000 |
Definition at line 102 of file dm9162_driver.h.
◆ DM9162_ANAR_SELECTOR
| #define DM9162_ANAR_SELECTOR 0x001F |
Definition at line 109 of file dm9162_driver.h.
◆ DM9162_ANAR_SELECTOR_DEFAULT
| #define DM9162_ANAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 110 of file dm9162_driver.h.
◆ DM9162_ANER
| #define DM9162_ANER 0x06 |
Definition at line 51 of file dm9162_driver.h.
◆ DM9162_ANER_LP_AN_ABLE
| #define DM9162_ANER_LP_AN_ABLE 0x0001 |
Definition at line 130 of file dm9162_driver.h.
◆ DM9162_ANER_LP_NP_ABLE
| #define DM9162_ANER_LP_NP_ABLE 0x0008 |
Definition at line 127 of file dm9162_driver.h.
◆ DM9162_ANER_NP_ABLE
| #define DM9162_ANER_NP_ABLE 0x0004 |
Definition at line 128 of file dm9162_driver.h.
◆ DM9162_ANER_PAGE_RX
| #define DM9162_ANER_PAGE_RX 0x0002 |
Definition at line 129 of file dm9162_driver.h.
◆ DM9162_ANER_PAR_DETECT_FAULT
| #define DM9162_ANER_PAR_DETECT_FAULT 0x0010 |
Definition at line 126 of file dm9162_driver.h.
◆ DM9162_ANLPAR
| #define DM9162_ANLPAR 0x05 |
Definition at line 50 of file dm9162_driver.h.
◆ DM9162_ANLPAR_100BT4
| #define DM9162_ANLPAR_100BT4 0x0200 |
Definition at line 117 of file dm9162_driver.h.
◆ DM9162_ANLPAR_100BTX_FD
| #define DM9162_ANLPAR_100BTX_FD 0x0100 |
Definition at line 118 of file dm9162_driver.h.
◆ DM9162_ANLPAR_100BTX_HD
| #define DM9162_ANLPAR_100BTX_HD 0x0080 |
Definition at line 119 of file dm9162_driver.h.
◆ DM9162_ANLPAR_10BT_FD
| #define DM9162_ANLPAR_10BT_FD 0x0040 |
Definition at line 120 of file dm9162_driver.h.
◆ DM9162_ANLPAR_10BT_HD
| #define DM9162_ANLPAR_10BT_HD 0x0020 |
Definition at line 121 of file dm9162_driver.h.
◆ DM9162_ANLPAR_ACK
| #define DM9162_ANLPAR_ACK 0x4000 |
Definition at line 114 of file dm9162_driver.h.
◆ DM9162_ANLPAR_FCS
| #define DM9162_ANLPAR_FCS 0x0400 |
Definition at line 116 of file dm9162_driver.h.
◆ DM9162_ANLPAR_NEXT_PAGE
| #define DM9162_ANLPAR_NEXT_PAGE 0x8000 |
Definition at line 113 of file dm9162_driver.h.
◆ DM9162_ANLPAR_REMOTE_FAULT
| #define DM9162_ANLPAR_REMOTE_FAULT 0x2000 |
Definition at line 115 of file dm9162_driver.h.
◆ DM9162_ANLPAR_SELECTOR
| #define DM9162_ANLPAR_SELECTOR 0x001F |
Definition at line 122 of file dm9162_driver.h.
◆ DM9162_ANLPAR_SELECTOR_DEFAULT
| #define DM9162_ANLPAR_SELECTOR_DEFAULT 0x0000 |
Definition at line 123 of file dm9162_driver.h.
◆ DM9162_BMCR
| #define DM9162_BMCR 0x00 |
Definition at line 45 of file dm9162_driver.h.
◆ DM9162_BMCR_AN_EN
| #define DM9162_BMCR_AN_EN 0x1000 |
Definition at line 67 of file dm9162_driver.h.
◆ DM9162_BMCR_COL_TEST
| #define DM9162_BMCR_COL_TEST 0x0080 |
Definition at line 72 of file dm9162_driver.h.
◆ DM9162_BMCR_DUPLEX_MODE
| #define DM9162_BMCR_DUPLEX_MODE 0x0100 |
Definition at line 71 of file dm9162_driver.h.
◆ DM9162_BMCR_ISOLATE
| #define DM9162_BMCR_ISOLATE 0x0400 |
Definition at line 69 of file dm9162_driver.h.
◆ DM9162_BMCR_LOOPBACK
| #define DM9162_BMCR_LOOPBACK 0x4000 |
Definition at line 65 of file dm9162_driver.h.
◆ DM9162_BMCR_POWER_DOWN
| #define DM9162_BMCR_POWER_DOWN 0x0800 |
Definition at line 68 of file dm9162_driver.h.
◆ DM9162_BMCR_RESET
| #define DM9162_BMCR_RESET 0x8000 |
Definition at line 64 of file dm9162_driver.h.
◆ DM9162_BMCR_RESTART_AN
| #define DM9162_BMCR_RESTART_AN 0x0200 |
Definition at line 70 of file dm9162_driver.h.
◆ DM9162_BMCR_SPEED_SEL
| #define DM9162_BMCR_SPEED_SEL 0x2000 |
Definition at line 66 of file dm9162_driver.h.
◆ DM9162_BMSR
| #define DM9162_BMSR 0x01 |
Definition at line 46 of file dm9162_driver.h.
◆ DM9162_BMSR_100BT4
| #define DM9162_BMSR_100BT4 0x8000 |
Definition at line 75 of file dm9162_driver.h.
◆ DM9162_BMSR_100BTX_FD
| #define DM9162_BMSR_100BTX_FD 0x4000 |
Definition at line 76 of file dm9162_driver.h.
◆ DM9162_BMSR_100BTX_HD
| #define DM9162_BMSR_100BTX_HD 0x2000 |
Definition at line 77 of file dm9162_driver.h.
◆ DM9162_BMSR_10BT_FD
| #define DM9162_BMSR_10BT_FD 0x1000 |
Definition at line 78 of file dm9162_driver.h.
◆ DM9162_BMSR_10BT_HD
| #define DM9162_BMSR_10BT_HD 0x0800 |
Definition at line 79 of file dm9162_driver.h.
◆ DM9162_BMSR_AN_CAPABLE
| #define DM9162_BMSR_AN_CAPABLE 0x0008 |
Definition at line 83 of file dm9162_driver.h.
◆ DM9162_BMSR_AN_COMPLETE
| #define DM9162_BMSR_AN_COMPLETE 0x0020 |
Definition at line 81 of file dm9162_driver.h.
◆ DM9162_BMSR_EXTENDED_CAPABLE
| #define DM9162_BMSR_EXTENDED_CAPABLE 0x0001 |
Definition at line 86 of file dm9162_driver.h.
◆ DM9162_BMSR_JABBER_DETECT
| #define DM9162_BMSR_JABBER_DETECT 0x0002 |
Definition at line 85 of file dm9162_driver.h.
◆ DM9162_BMSR_LINK_STATUS
| #define DM9162_BMSR_LINK_STATUS 0x0004 |
Definition at line 84 of file dm9162_driver.h.
◆ DM9162_BMSR_MF_PREAMBLE_SUPPR
| #define DM9162_BMSR_MF_PREAMBLE_SUPPR 0x0040 |
Definition at line 80 of file dm9162_driver.h.
◆ DM9162_BMSR_REMOTE_FAULT
| #define DM9162_BMSR_REMOTE_FAULT 0x0010 |
Definition at line 82 of file dm9162_driver.h.
◆ DM9162_DISCR
| #define DM9162_DISCR 0x17 |
Definition at line 59 of file dm9162_driver.h.
◆ DM9162_DISCR_DISCONNECT_COUNT
| #define DM9162_DISCR_DISCONNECT_COUNT 0x00FF |
Definition at line 216 of file dm9162_driver.h.
◆ DM9162_DSCR
| #define DM9162_DSCR 0x10 |
Definition at line 52 of file dm9162_driver.h.
◆ DM9162_DSCR_BP_4B5B
| #define DM9162_DSCR_BP_4B5B 0x8000 |
Definition at line 133 of file dm9162_driver.h.
◆ DM9162_DSCR_BP_ADPOK
| #define DM9162_DSCR_BP_ADPOK 0x1000 |
Definition at line 136 of file dm9162_driver.h.
◆ DM9162_DSCR_BP_ALIGN
| #define DM9162_DSCR_BP_ALIGN 0x2000 |
Definition at line 135 of file dm9162_driver.h.
◆ DM9162_DSCR_BP_SCR
| #define DM9162_DSCR_BP_SCR 0x4000 |
Definition at line 134 of file dm9162_driver.h.
◆ DM9162_DSCR_COLLED_CTL
| #define DM9162_DSCR_COLLED_CTL 0x0020 |
Definition at line 142 of file dm9162_driver.h.
◆ DM9162_DSCR_F_LINK_100
| #define DM9162_DSCR_F_LINK_100 0x0080 |
Definition at line 140 of file dm9162_driver.h.
◆ DM9162_DSCR_MFPSC
| #define DM9162_DSCR_MFPSC 0x0004 |
Definition at line 145 of file dm9162_driver.h.
◆ DM9162_DSCR_REPEATER
| #define DM9162_DSCR_REPEATER 0x0800 |
Definition at line 137 of file dm9162_driver.h.
◆ DM9162_DSCR_RLOUT
| #define DM9162_DSCR_RLOUT 0x0001 |
Definition at line 147 of file dm9162_driver.h.
◆ DM9162_DSCR_RMII_EN
| #define DM9162_DSCR_RMII_EN 0x0100 |
Definition at line 139 of file dm9162_driver.h.
◆ DM9162_DSCR_RPDCTR_EN
| #define DM9162_DSCR_RPDCTR_EN 0x0010 |
Definition at line 143 of file dm9162_driver.h.
◆ DM9162_DSCR_SLEEP
| #define DM9162_DSCR_SLEEP 0x0002 |
Definition at line 146 of file dm9162_driver.h.
◆ DM9162_DSCR_SMRST
| #define DM9162_DSCR_SMRST 0x0008 |
Definition at line 144 of file dm9162_driver.h.
◆ DM9162_DSCR_SPLED_CTL
| #define DM9162_DSCR_SPLED_CTL 0x0040 |
Definition at line 141 of file dm9162_driver.h.
◆ DM9162_DSCR_TX
| #define DM9162_DSCR_TX 0x0400 |
Definition at line 138 of file dm9162_driver.h.
◆ DM9162_DSCSR
| #define DM9162_DSCSR 0x11 |
Definition at line 53 of file dm9162_driver.h.
◆ DM9162_DSCSR_100FDX
| #define DM9162_DSCSR_100FDX 0x8000 |
Definition at line 150 of file dm9162_driver.h.
◆ DM9162_DSCSR_100HDX
| #define DM9162_DSCSR_100HDX 0x4000 |
Definition at line 151 of file dm9162_driver.h.
◆ DM9162_DSCSR_10FDX
| #define DM9162_DSCSR_10FDX 0x2000 |
Definition at line 152 of file dm9162_driver.h.
◆ DM9162_DSCSR_10HDX
| #define DM9162_DSCSR_10HDX 0x1000 |
Definition at line 153 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB
| #define DM9162_DSCSR_ANMB 0x000F |
Definition at line 155 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_ABILITY_MATCH
| #define DM9162_DSCSR_ANMB_ABILITY_MATCH 0x0001 |
Definition at line 157 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_ACK_MATCH
| #define DM9162_DSCSR_ANMB_ACK_MATCH 0x0002 |
Definition at line 158 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_ACK_MATCH_FAIL
| #define DM9162_DSCSR_ANMB_ACK_MATCH_FAIL 0x0003 |
Definition at line 159 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_AN_COMPLETE
| #define DM9162_DSCSR_ANMB_AN_COMPLETE 0x0008 |
Definition at line 164 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_CONSIST_MATCH
| #define DM9162_DSCSR_ANMB_CONSIST_MATCH 0x0004 |
Definition at line 160 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_CONSIST_MATCH_FAIL
| #define DM9162_DSCSR_ANMB_CONSIST_MATCH_FAIL 0x0005 |
Definition at line 161 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_IDLE
| #define DM9162_DSCSR_ANMB_IDLE 0x0000 |
Definition at line 156 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_LINK_READY
| #define DM9162_DSCSR_ANMB_LINK_READY 0x0006 |
Definition at line 162 of file dm9162_driver.h.
◆ DM9162_DSCSR_ANMB_LINK_READY_FAIL
| #define DM9162_DSCSR_ANMB_LINK_READY_FAIL 0x0007 |
Definition at line 163 of file dm9162_driver.h.
◆ DM9162_DSCSR_PHYADR
| #define DM9162_DSCSR_PHYADR 0x01F0 |
Definition at line 154 of file dm9162_driver.h.
◆ DM9162_MDINTR
| #define DM9162_MDINTR 0x15 |
Definition at line 57 of file dm9162_driver.h.
◆ DM9162_MDINTR_FDX_CHANGE
| #define DM9162_MDINTR_FDX_CHANGE 0x0010 |
Definition at line 207 of file dm9162_driver.h.
◆ DM9162_MDINTR_FDX_MASK
| #define DM9162_MDINTR_FDX_MASK 0x0800 |
Definition at line 203 of file dm9162_driver.h.
◆ DM9162_MDINTR_INTR_MASK
| #define DM9162_MDINTR_INTR_MASK 0x0100 |
Definition at line 206 of file dm9162_driver.h.
◆ DM9162_MDINTR_INTR_PEND
| #define DM9162_MDINTR_INTR_PEND 0x8000 |
Definition at line 202 of file dm9162_driver.h.
◆ DM9162_MDINTR_INTR_STATUS
| #define DM9162_MDINTR_INTR_STATUS 0x0001 |
Definition at line 210 of file dm9162_driver.h.
◆ DM9162_MDINTR_LINK_CHANGE
| #define DM9162_MDINTR_LINK_CHANGE 0x0004 |
Definition at line 209 of file dm9162_driver.h.
◆ DM9162_MDINTR_LINK_MASK
| #define DM9162_MDINTR_LINK_MASK 0x0200 |
Definition at line 205 of file dm9162_driver.h.
◆ DM9162_MDINTR_SPD_CHANGE
| #define DM9162_MDINTR_SPD_CHANGE 0x0008 |
Definition at line 208 of file dm9162_driver.h.
◆ DM9162_MDINTR_SPD_MASK
| #define DM9162_MDINTR_SPD_MASK 0x0400 |
Definition at line 204 of file dm9162_driver.h.
◆ DM9162_PHY_ADDR
| #define DM9162_PHY_ADDR 0 |
Definition at line 39 of file dm9162_driver.h.
◆ DM9162_PHYID1
| #define DM9162_PHYID1 0x02 |
Definition at line 47 of file dm9162_driver.h.
◆ DM9162_PHYID1_OUI_MSB
| #define DM9162_PHYID1_OUI_MSB 0xFFFF |
Definition at line 89 of file dm9162_driver.h.
◆ DM9162_PHYID1_OUI_MSB_DEFAULT
| #define DM9162_PHYID1_OUI_MSB_DEFAULT 0x0181 |
Definition at line 90 of file dm9162_driver.h.
◆ DM9162_PHYID2
| #define DM9162_PHYID2 0x03 |
Definition at line 48 of file dm9162_driver.h.
◆ DM9162_PHYID2_MDL_REV
| #define DM9162_PHYID2_MDL_REV 0x000F |
Definition at line 97 of file dm9162_driver.h.
◆ DM9162_PHYID2_OUI_LSB
| #define DM9162_PHYID2_OUI_LSB 0xFC00 |
Definition at line 93 of file dm9162_driver.h.
◆ DM9162_PHYID2_OUI_LSB_DEFAULT
| #define DM9162_PHYID2_OUI_LSB_DEFAULT 0xB800 |
Definition at line 94 of file dm9162_driver.h.
◆ DM9162_PHYID2_VNDR_MDL
| #define DM9162_PHYID2_VNDR_MDL 0x03F0 |
Definition at line 95 of file dm9162_driver.h.
◆ DM9162_PHYID2_VNDR_MDL_DEFAULT
| #define DM9162_PHYID2_VNDR_MDL_DEFAULT 0x00A0 |
Definition at line 96 of file dm9162_driver.h.
◆ DM9162_PSCR
| #define DM9162_PSCR 0x1D |
Definition at line 61 of file dm9162_driver.h.
◆ DM9162_PSCR_PREAMBLEX
| #define DM9162_PSCR_PREAMBLEX 0x0800 |
Definition at line 231 of file dm9162_driver.h.
◆ DM9162_PSCR_TX_PWR
| #define DM9162_PSCR_TX_PWR 0x0200 |
Definition at line 232 of file dm9162_driver.h.
◆ DM9162_PWDOR
| #define DM9162_PWDOR 0x13 |
Definition at line 55 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_10
| #define DM9162_PWDOR_PD_10 0x0001 |
Definition at line 183 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_100DL
| #define DM9162_PWDOR_PD_100DL 0x0080 |
Definition at line 176 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_10DRV
| #define DM9162_PWDOR_PD_10DRV 0x0100 |
Definition at line 175 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_AEQ
| #define DM9162_PWDOR_PD_AEQ 0x0010 |
Definition at line 179 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_CHIP
| #define DM9162_PWDOR_PD_CHIP 0x0040 |
Definition at line 177 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_COM
| #define DM9162_PWDOR_PD_COM 0x0020 |
Definition at line 178 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_DRV
| #define DM9162_PWDOR_PD_DRV 0x0008 |
Definition at line 180 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_EDI
| #define DM9162_PWDOR_PD_EDI 0x0004 |
Definition at line 181 of file dm9162_driver.h.
◆ DM9162_PWDOR_PD_EDO
| #define DM9162_PWDOR_PD_EDO 0x0002 |
Definition at line 182 of file dm9162_driver.h.
◆ DM9162_RECR
| #define DM9162_RECR 0x16 |
Definition at line 58 of file dm9162_driver.h.
◆ DM9162_RECR_RCV_ERR_CNT
| #define DM9162_RECR_RCV_ERR_CNT 0xFFFF |
Definition at line 213 of file dm9162_driver.h.
◆ DM9162_RLSR
| #define DM9162_RLSR 0x18 |
Definition at line 60 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_CSTS
| #define DM9162_RLSR_LH_CSTS 0x2000 |
Definition at line 221 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_ISO
| #define DM9162_RLSR_LH_ISO 0x1000 |
Definition at line 222 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_LEDMODE
| #define DM9162_RLSR_LH_LEDMODE 0x8000 |
Definition at line 219 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_MDINTR
| #define DM9162_RLSR_LH_MDINTR 0x4000 |
Definition at line 220 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_OP
| #define DM9162_RLSR_LH_OP 0x00E0 |
Definition at line 227 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_PH
| #define DM9162_RLSR_LH_PH 0x001F |
Definition at line 228 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_REPTR
| #define DM9162_RLSR_LH_REPTR 0x0200 |
Definition at line 225 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_RMII
| #define DM9162_RLSR_LH_RMII 0x0800 |
Definition at line 223 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_TP10SER
| #define DM9162_RLSR_LH_TP10SER 0x0400 |
Definition at line 224 of file dm9162_driver.h.
◆ DM9162_RLSR_LH_TSTMOD
| #define DM9162_RLSR_LH_TSTMOD 0x0100 |
Definition at line 226 of file dm9162_driver.h.
◆ DM9162_SCR
| #define DM9162_SCR 0x14 |
Definition at line 56 of file dm9162_driver.h.
◆ DM9162_SCR_AUTONEG_DPBK
| #define DM9162_SCR_AUTONEG_DPBK 0x0040 |
Definition at line 193 of file dm9162_driver.h.
◆ DM9162_SCR_MDIX_CNTL
| #define DM9162_SCR_MDIX_CNTL 0x0080 |
Definition at line 192 of file dm9162_driver.h.
◆ DM9162_SCR_MDIX_DOWN
| #define DM9162_SCR_MDIX_DOWN 0x0010 |
Definition at line 195 of file dm9162_driver.h.
◆ DM9162_SCR_MDIX_FIX_VALUE
| #define DM9162_SCR_MDIX_FIX_VALUE 0x0020 |
Definition at line 194 of file dm9162_driver.h.
◆ DM9162_SCR_MONSEL0
| #define DM9162_SCR_MONSEL0 0x0004 |
Definition at line 197 of file dm9162_driver.h.
◆ DM9162_SCR_MONSEL1
| #define DM9162_SCR_MONSEL1 0x0008 |
Definition at line 196 of file dm9162_driver.h.
◆ DM9162_SCR_NWAY_PWR
| #define DM9162_SCR_NWAY_PWR 0x0200 |
Definition at line 191 of file dm9162_driver.h.
◆ DM9162_SCR_PD_VALUE
| #define DM9162_SCR_PD_VALUE 0x0001 |
Definition at line 199 of file dm9162_driver.h.
◆ DM9162_SCR_PREAMBLEX
| #define DM9162_SCR_PREAMBLEX 0x0800 |
Definition at line 189 of file dm9162_driver.h.
◆ DM9162_SCR_RMII_VER
| #define DM9162_SCR_RMII_VER 0x0002 |
Definition at line 198 of file dm9162_driver.h.
◆ DM9162_SCR_STSEL3
| #define DM9162_SCR_STSEL3 0x1000 |
Definition at line 188 of file dm9162_driver.h.
◆ DM9162_SCR_TSTSE1
| #define DM9162_SCR_TSTSE1 0x8000 |
Definition at line 186 of file dm9162_driver.h.
◆ DM9162_SCR_TSTSE2
| #define DM9162_SCR_TSTSE2 0x4000 |
Definition at line 187 of file dm9162_driver.h.
◆ DM9162_SCR_TX10M_PWR
| #define DM9162_SCR_TX10M_PWR 0x0400 |
Definition at line 190 of file dm9162_driver.h.
Function Documentation
◆ dm9162DisableIrq()
| void dm9162DisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 180 of file dm9162_driver.c.
◆ dm9162DumpPhyReg()
| void dm9162DumpPhyReg | ( | NetInterface * | interface | ) |
Dump PHY registers for debugging purpose.
- Parameters
-
[in] interface Underlying network interface
Definition at line 348 of file dm9162_driver.c.
◆ dm9162EnableIrq()
| void dm9162EnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 165 of file dm9162_driver.c.
◆ dm9162EventHandler()
| void dm9162EventHandler | ( | NetInterface * | interface | ) |
DM9162 event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 195 of file dm9162_driver.c.
◆ dm9162Init()
| error_t dm9162Init | ( | NetInterface * | interface | ) |
DM9162 PHY transceiver initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 60 of file dm9162_driver.c.
◆ dm9162InitHook()
| void dm9162InitHook | ( | NetInterface * | interface | ) |
DM9162 custom configuration.
- Parameters
-
[in] interface Underlying network interface
Definition at line 117 of file dm9162_driver.c.
◆ dm9162ReadPhyReg()
| uint16_t dm9162ReadPhyReg | ( | NetInterface * | interface, |
| uint8_t | address | ||
| ) |
Read PHY register.
- Parameters
-
[in] interface Underlying network interface [in] address PHY register address
- Returns
- Register value
Definition at line 322 of file dm9162_driver.c.
◆ dm9162Tick()
| void dm9162Tick | ( | NetInterface * | interface | ) |
DM9162 timer handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 127 of file dm9162_driver.c.
◆ dm9162WritePhyReg()
| void dm9162WritePhyReg | ( | NetInterface * | interface, |
| uint8_t | address, | ||
| uint16_t | data | ||
| ) |
Write PHY register.
- Parameters
-
[in] interface Underlying network interface [in] address PHY register address [in] data Register value
Definition at line 298 of file dm9162_driver.c.
Variable Documentation
◆ dm9162PhyDriver
|
extern |
DM9162 Ethernet PHY driver.
Definition at line 44 of file dm9162_driver.c.
