DM9161 Ethernet PHY driver. More...
#include "core/nic.h"
Go to the source code of this file.
Functions | |
error_t | dm9161Init (NetInterface *interface) |
DM9161 PHY transceiver initialization. More... | |
void | dm9161InitHook (NetInterface *interface) |
DM9161 custom configuration. More... | |
void | dm9161Tick (NetInterface *interface) |
DM9161 timer handler. More... | |
void | dm9161EnableIrq (NetInterface *interface) |
Enable interrupts. More... | |
void | dm9161DisableIrq (NetInterface *interface) |
Disable interrupts. More... | |
void | dm9161EventHandler (NetInterface *interface) |
DM9161 event handler. More... | |
void | dm9161WritePhyReg (NetInterface *interface, uint8_t address, uint16_t data) |
Write PHY register. More... | |
uint16_t | dm9161ReadPhyReg (NetInterface *interface, uint8_t address) |
Read PHY register. More... | |
void | dm9161DumpPhyReg (NetInterface *interface) |
Dump PHY registers for debugging purpose. More... | |
Variables | |
const PhyDriver | dm9161PhyDriver |
DM9161 Ethernet PHY driver. More... | |
Detailed Description
DM9161 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.
- Version
- 2.4.4
Definition in file dm9161_driver.h.
Macro Definition Documentation
◆ DM9161_10BTCSR
#define DM9161_10BTCSR 0x12 |
Definition at line 54 of file dm9161_driver.h.
◆ DM9161_10BTCSR_10BT_SER
#define DM9161_10BTCSR_10BT_SER 0x0400 |
Definition at line 169 of file dm9161_driver.h.
◆ DM9161_10BTCSR_HBE
#define DM9161_10BTCSR_HBE 0x2000 |
Definition at line 166 of file dm9161_driver.h.
◆ DM9161_10BTCSR_JABEN
#define DM9161_10BTCSR_JABEN 0x0800 |
Definition at line 168 of file dm9161_driver.h.
◆ DM9161_10BTCSR_LP_EN
#define DM9161_10BTCSR_LP_EN 0x4000 |
Definition at line 165 of file dm9161_driver.h.
◆ DM9161_10BTCSR_POLR
#define DM9161_10BTCSR_POLR 0x0001 |
Definition at line 170 of file dm9161_driver.h.
◆ DM9161_10BTCSR_SQUELCH
#define DM9161_10BTCSR_SQUELCH 0x1000 |
Definition at line 167 of file dm9161_driver.h.
◆ DM9161_ANAR
#define DM9161_ANAR 0x04 |
Definition at line 49 of file dm9161_driver.h.
◆ DM9161_ANAR_100BT4
#define DM9161_ANAR_100BT4 0x0200 |
Definition at line 101 of file dm9161_driver.h.
◆ DM9161_ANAR_100BTX_FD
#define DM9161_ANAR_100BTX_FD 0x0100 |
Definition at line 102 of file dm9161_driver.h.
◆ DM9161_ANAR_100BTX_HD
#define DM9161_ANAR_100BTX_HD 0x0080 |
Definition at line 103 of file dm9161_driver.h.
◆ DM9161_ANAR_10BT_FD
#define DM9161_ANAR_10BT_FD 0x0040 |
Definition at line 104 of file dm9161_driver.h.
◆ DM9161_ANAR_10BT_HD
#define DM9161_ANAR_10BT_HD 0x0020 |
Definition at line 105 of file dm9161_driver.h.
◆ DM9161_ANAR_ACK
#define DM9161_ANAR_ACK 0x4000 |
Definition at line 98 of file dm9161_driver.h.
◆ DM9161_ANAR_FCS
#define DM9161_ANAR_FCS 0x0400 |
Definition at line 100 of file dm9161_driver.h.
◆ DM9161_ANAR_NEXT_PAGE
#define DM9161_ANAR_NEXT_PAGE 0x8000 |
Definition at line 97 of file dm9161_driver.h.
◆ DM9161_ANAR_REMOTE_FAULT
#define DM9161_ANAR_REMOTE_FAULT 0x2000 |
Definition at line 99 of file dm9161_driver.h.
◆ DM9161_ANAR_SELECTOR
#define DM9161_ANAR_SELECTOR 0x001F |
Definition at line 106 of file dm9161_driver.h.
◆ DM9161_ANAR_SELECTOR_DEFAULT
#define DM9161_ANAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 107 of file dm9161_driver.h.
◆ DM9161_ANER
#define DM9161_ANER 0x06 |
Definition at line 51 of file dm9161_driver.h.
◆ DM9161_ANER_LP_AN_ABLE
#define DM9161_ANER_LP_AN_ABLE 0x0001 |
Definition at line 127 of file dm9161_driver.h.
◆ DM9161_ANER_LP_NP_ABLE
#define DM9161_ANER_LP_NP_ABLE 0x0008 |
Definition at line 124 of file dm9161_driver.h.
◆ DM9161_ANER_NP_ABLE
#define DM9161_ANER_NP_ABLE 0x0004 |
Definition at line 125 of file dm9161_driver.h.
◆ DM9161_ANER_PAGE_RX
#define DM9161_ANER_PAGE_RX 0x0002 |
Definition at line 126 of file dm9161_driver.h.
◆ DM9161_ANER_PAR_DETECT_FAULT
#define DM9161_ANER_PAR_DETECT_FAULT 0x0010 |
Definition at line 123 of file dm9161_driver.h.
◆ DM9161_ANLPAR
#define DM9161_ANLPAR 0x05 |
Definition at line 50 of file dm9161_driver.h.
◆ DM9161_ANLPAR_100BT4
#define DM9161_ANLPAR_100BT4 0x0200 |
Definition at line 114 of file dm9161_driver.h.
◆ DM9161_ANLPAR_100BTX_FD
#define DM9161_ANLPAR_100BTX_FD 0x0100 |
Definition at line 115 of file dm9161_driver.h.
◆ DM9161_ANLPAR_100BTX_HD
#define DM9161_ANLPAR_100BTX_HD 0x0080 |
Definition at line 116 of file dm9161_driver.h.
◆ DM9161_ANLPAR_10BT_FD
#define DM9161_ANLPAR_10BT_FD 0x0040 |
Definition at line 117 of file dm9161_driver.h.
◆ DM9161_ANLPAR_10BT_HD
#define DM9161_ANLPAR_10BT_HD 0x0020 |
Definition at line 118 of file dm9161_driver.h.
◆ DM9161_ANLPAR_ACK
#define DM9161_ANLPAR_ACK 0x4000 |
Definition at line 111 of file dm9161_driver.h.
◆ DM9161_ANLPAR_FCS
#define DM9161_ANLPAR_FCS 0x0400 |
Definition at line 113 of file dm9161_driver.h.
◆ DM9161_ANLPAR_NEXT_PAGE
#define DM9161_ANLPAR_NEXT_PAGE 0x8000 |
Definition at line 110 of file dm9161_driver.h.
◆ DM9161_ANLPAR_REMOTE_FAULT
#define DM9161_ANLPAR_REMOTE_FAULT 0x2000 |
Definition at line 112 of file dm9161_driver.h.
◆ DM9161_ANLPAR_SELECTOR
#define DM9161_ANLPAR_SELECTOR 0x001F |
Definition at line 119 of file dm9161_driver.h.
◆ DM9161_ANLPAR_SELECTOR_DEFAULT
#define DM9161_ANLPAR_SELECTOR_DEFAULT 0x0001 |
Definition at line 120 of file dm9161_driver.h.
◆ DM9161_BMCR
#define DM9161_BMCR 0x00 |
Definition at line 45 of file dm9161_driver.h.
◆ DM9161_BMCR_AN_EN
#define DM9161_BMCR_AN_EN 0x1000 |
Definition at line 64 of file dm9161_driver.h.
◆ DM9161_BMCR_COL_TEST
#define DM9161_BMCR_COL_TEST 0x0080 |
Definition at line 69 of file dm9161_driver.h.
◆ DM9161_BMCR_DUPLEX_MODE
#define DM9161_BMCR_DUPLEX_MODE 0x0100 |
Definition at line 68 of file dm9161_driver.h.
◆ DM9161_BMCR_ISOLATE
#define DM9161_BMCR_ISOLATE 0x0400 |
Definition at line 66 of file dm9161_driver.h.
◆ DM9161_BMCR_LOOPBACK
#define DM9161_BMCR_LOOPBACK 0x4000 |
Definition at line 62 of file dm9161_driver.h.
◆ DM9161_BMCR_POWER_DOWN
#define DM9161_BMCR_POWER_DOWN 0x0800 |
Definition at line 65 of file dm9161_driver.h.
◆ DM9161_BMCR_RESET
#define DM9161_BMCR_RESET 0x8000 |
Definition at line 61 of file dm9161_driver.h.
◆ DM9161_BMCR_RESTART_AN
#define DM9161_BMCR_RESTART_AN 0x0200 |
Definition at line 67 of file dm9161_driver.h.
◆ DM9161_BMCR_SPEED_SEL
#define DM9161_BMCR_SPEED_SEL 0x2000 |
Definition at line 63 of file dm9161_driver.h.
◆ DM9161_BMSR
#define DM9161_BMSR 0x01 |
Definition at line 46 of file dm9161_driver.h.
◆ DM9161_BMSR_100BT4
#define DM9161_BMSR_100BT4 0x8000 |
Definition at line 72 of file dm9161_driver.h.
◆ DM9161_BMSR_100BTX_FD
#define DM9161_BMSR_100BTX_FD 0x4000 |
Definition at line 73 of file dm9161_driver.h.
◆ DM9161_BMSR_100BTX_HD
#define DM9161_BMSR_100BTX_HD 0x2000 |
Definition at line 74 of file dm9161_driver.h.
◆ DM9161_BMSR_10BT_FD
#define DM9161_BMSR_10BT_FD 0x1000 |
Definition at line 75 of file dm9161_driver.h.
◆ DM9161_BMSR_10BT_HD
#define DM9161_BMSR_10BT_HD 0x0800 |
Definition at line 76 of file dm9161_driver.h.
◆ DM9161_BMSR_AN_CAPABLE
#define DM9161_BMSR_AN_CAPABLE 0x0008 |
Definition at line 80 of file dm9161_driver.h.
◆ DM9161_BMSR_AN_COMPLETE
#define DM9161_BMSR_AN_COMPLETE 0x0020 |
Definition at line 78 of file dm9161_driver.h.
◆ DM9161_BMSR_EXTENDED_CAPABLE
#define DM9161_BMSR_EXTENDED_CAPABLE 0x0001 |
Definition at line 83 of file dm9161_driver.h.
◆ DM9161_BMSR_JABBER_DETECT
#define DM9161_BMSR_JABBER_DETECT 0x0002 |
Definition at line 82 of file dm9161_driver.h.
◆ DM9161_BMSR_LINK_STATUS
#define DM9161_BMSR_LINK_STATUS 0x0004 |
Definition at line 81 of file dm9161_driver.h.
◆ DM9161_BMSR_MF_PREAMBLE_SUPPR
#define DM9161_BMSR_MF_PREAMBLE_SUPPR 0x0040 |
Definition at line 77 of file dm9161_driver.h.
◆ DM9161_BMSR_REMOTE_FAULT
#define DM9161_BMSR_REMOTE_FAULT 0x0010 |
Definition at line 79 of file dm9161_driver.h.
◆ DM9161_DISCR
#define DM9161_DISCR 0x17 |
Definition at line 57 of file dm9161_driver.h.
◆ DM9161_DISCR_DISCONNECT_COUNT
#define DM9161_DISCR_DISCONNECT_COUNT 0x00FF |
Definition at line 184 of file dm9161_driver.h.
◆ DM9161_DSCR
#define DM9161_DSCR 0x10 |
Definition at line 52 of file dm9161_driver.h.
◆ DM9161_DSCR_BP_4B5B
#define DM9161_DSCR_BP_4B5B 0x8000 |
Definition at line 130 of file dm9161_driver.h.
◆ DM9161_DSCR_BP_ADPOK
#define DM9161_DSCR_BP_ADPOK 0x1000 |
Definition at line 133 of file dm9161_driver.h.
◆ DM9161_DSCR_BP_ALIGN
#define DM9161_DSCR_BP_ALIGN 0x2000 |
Definition at line 132 of file dm9161_driver.h.
◆ DM9161_DSCR_BP_SCR
#define DM9161_DSCR_BP_SCR 0x4000 |
Definition at line 131 of file dm9161_driver.h.
◆ DM9161_DSCR_COLLED_CTL
#define DM9161_DSCR_COLLED_CTL 0x0020 |
Definition at line 140 of file dm9161_driver.h.
◆ DM9161_DSCR_F_LINK_100
#define DM9161_DSCR_F_LINK_100 0x0080 |
Definition at line 138 of file dm9161_driver.h.
◆ DM9161_DSCR_FEF
#define DM9161_DSCR_FEF 0x0200 |
Definition at line 136 of file dm9161_driver.h.
◆ DM9161_DSCR_MFPSC
#define DM9161_DSCR_MFPSC 0x0004 |
Definition at line 143 of file dm9161_driver.h.
◆ DM9161_DSCR_REPEATER
#define DM9161_DSCR_REPEATER 0x0800 |
Definition at line 134 of file dm9161_driver.h.
◆ DM9161_DSCR_RLOUT
#define DM9161_DSCR_RLOUT 0x0001 |
Definition at line 145 of file dm9161_driver.h.
◆ DM9161_DSCR_RMII_EN
#define DM9161_DSCR_RMII_EN 0x0100 |
Definition at line 137 of file dm9161_driver.h.
◆ DM9161_DSCR_RPDCTR_EN
#define DM9161_DSCR_RPDCTR_EN 0x0010 |
Definition at line 141 of file dm9161_driver.h.
◆ DM9161_DSCR_SLEEP
#define DM9161_DSCR_SLEEP 0x0002 |
Definition at line 144 of file dm9161_driver.h.
◆ DM9161_DSCR_SMRST
#define DM9161_DSCR_SMRST 0x0008 |
Definition at line 142 of file dm9161_driver.h.
◆ DM9161_DSCR_SPLED_CTL
#define DM9161_DSCR_SPLED_CTL 0x0040 |
Definition at line 139 of file dm9161_driver.h.
◆ DM9161_DSCR_TX
#define DM9161_DSCR_TX 0x0400 |
Definition at line 135 of file dm9161_driver.h.
◆ DM9161_DSCSR
#define DM9161_DSCSR 0x11 |
Definition at line 53 of file dm9161_driver.h.
◆ DM9161_DSCSR_100FDX
#define DM9161_DSCSR_100FDX 0x8000 |
Definition at line 148 of file dm9161_driver.h.
◆ DM9161_DSCSR_100HDX
#define DM9161_DSCSR_100HDX 0x4000 |
Definition at line 149 of file dm9161_driver.h.
◆ DM9161_DSCSR_10FDX
#define DM9161_DSCSR_10FDX 0x2000 |
Definition at line 150 of file dm9161_driver.h.
◆ DM9161_DSCSR_10HDX
#define DM9161_DSCSR_10HDX 0x1000 |
Definition at line 151 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB
#define DM9161_DSCSR_ANMB 0x000F |
Definition at line 153 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_ABILITY_MATCH
#define DM9161_DSCSR_ANMB_ABILITY_MATCH 0x0001 |
Definition at line 155 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_ACK_MATCH
#define DM9161_DSCSR_ANMB_ACK_MATCH 0x0002 |
Definition at line 156 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_ACK_MATCH_FAIL
#define DM9161_DSCSR_ANMB_ACK_MATCH_FAIL 0x0003 |
Definition at line 157 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_AN_COMPLETE
#define DM9161_DSCSR_ANMB_AN_COMPLETE 0x0008 |
Definition at line 162 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_CONSIST_MATCH
#define DM9161_DSCSR_ANMB_CONSIST_MATCH 0x0004 |
Definition at line 158 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_CONSIST_MATCH_FAIL
#define DM9161_DSCSR_ANMB_CONSIST_MATCH_FAIL 0x0005 |
Definition at line 159 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_IDLE
#define DM9161_DSCSR_ANMB_IDLE 0x0000 |
Definition at line 154 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_LINK_READY
#define DM9161_DSCSR_ANMB_LINK_READY 0x0006 |
Definition at line 160 of file dm9161_driver.h.
◆ DM9161_DSCSR_ANMB_LINK_READY_FAIL
#define DM9161_DSCSR_ANMB_LINK_READY_FAIL 0x0007 |
Definition at line 161 of file dm9161_driver.h.
◆ DM9161_DSCSR_PHYADR
#define DM9161_DSCSR_PHYADR 0x01F0 |
Definition at line 152 of file dm9161_driver.h.
◆ DM9161_MDINTR
#define DM9161_MDINTR 0x15 |
Definition at line 55 of file dm9161_driver.h.
◆ DM9161_MDINTR_FDX_CHANGE
#define DM9161_MDINTR_FDX_CHANGE 0x0010 |
Definition at line 178 of file dm9161_driver.h.
◆ DM9161_MDINTR_FDX_MASK
#define DM9161_MDINTR_FDX_MASK 0x0800 |
Definition at line 174 of file dm9161_driver.h.
◆ DM9161_MDINTR_INTR_MASK
#define DM9161_MDINTR_INTR_MASK 0x0100 |
Definition at line 177 of file dm9161_driver.h.
◆ DM9161_MDINTR_INTR_PEND
#define DM9161_MDINTR_INTR_PEND 0x8000 |
Definition at line 173 of file dm9161_driver.h.
◆ DM9161_MDINTR_INTR_STATUS
#define DM9161_MDINTR_INTR_STATUS 0x0001 |
Definition at line 181 of file dm9161_driver.h.
◆ DM9161_MDINTR_LINK_CHANGE
#define DM9161_MDINTR_LINK_CHANGE 0x0004 |
Definition at line 180 of file dm9161_driver.h.
◆ DM9161_MDINTR_LINK_MASK
#define DM9161_MDINTR_LINK_MASK 0x0200 |
Definition at line 176 of file dm9161_driver.h.
◆ DM9161_MDINTR_SPD_CHANGE
#define DM9161_MDINTR_SPD_CHANGE 0x0008 |
Definition at line 179 of file dm9161_driver.h.
◆ DM9161_MDINTR_SPD_MASK
#define DM9161_MDINTR_SPD_MASK 0x0400 |
Definition at line 175 of file dm9161_driver.h.
◆ DM9161_PHY_ADDR
#define DM9161_PHY_ADDR 0 |
Definition at line 39 of file dm9161_driver.h.
◆ DM9161_PHYID1
#define DM9161_PHYID1 0x02 |
Definition at line 47 of file dm9161_driver.h.
◆ DM9161_PHYID1_OUI_MSB
#define DM9161_PHYID1_OUI_MSB 0xFFFF |
Definition at line 86 of file dm9161_driver.h.
◆ DM9161_PHYID1_OUI_MSB_DEFAULT
#define DM9161_PHYID1_OUI_MSB_DEFAULT 0x0181 |
Definition at line 87 of file dm9161_driver.h.
◆ DM9161_PHYID2
#define DM9161_PHYID2 0x03 |
Definition at line 48 of file dm9161_driver.h.
◆ DM9161_PHYID2_MDL_REV
#define DM9161_PHYID2_MDL_REV 0x000F |
Definition at line 94 of file dm9161_driver.h.
◆ DM9161_PHYID2_OUI_LSB
#define DM9161_PHYID2_OUI_LSB 0xFC00 |
Definition at line 90 of file dm9161_driver.h.
◆ DM9161_PHYID2_OUI_LSB_DEFAULT
#define DM9161_PHYID2_OUI_LSB_DEFAULT 0xB800 |
Definition at line 91 of file dm9161_driver.h.
◆ DM9161_PHYID2_VNDR_MDL
#define DM9161_PHYID2_VNDR_MDL 0x03F0 |
Definition at line 92 of file dm9161_driver.h.
◆ DM9161_PHYID2_VNDR_MDL_DEFAULT
#define DM9161_PHYID2_VNDR_MDL_DEFAULT 0x0080 |
Definition at line 93 of file dm9161_driver.h.
◆ DM9161_RECR
#define DM9161_RECR 0x16 |
Definition at line 56 of file dm9161_driver.h.
◆ DM9161_RLSR
#define DM9161_RLSR 0x18 |
Definition at line 58 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_CSTS
#define DM9161_RLSR_LH_CSTS 0x1000 |
Definition at line 188 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_LEDST
#define DM9161_RLSR_LH_LEDST 0x2000 |
Definition at line 187 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_OP
#define DM9161_RLSR_LH_OP 0x00E0 |
Definition at line 193 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_PH
#define DM9161_RLSR_LH_PH 0x001F |
Definition at line 194 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_REPTR
#define DM9161_RLSR_LH_REPTR 0x0200 |
Definition at line 191 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_RMII
#define DM9161_RLSR_LH_RMII 0x0800 |
Definition at line 189 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_SCRAM
#define DM9161_RLSR_LH_SCRAM 0x0400 |
Definition at line 190 of file dm9161_driver.h.
◆ DM9161_RLSR_LH_TSTMOD
#define DM9161_RLSR_LH_TSTMOD 0x0100 |
Definition at line 192 of file dm9161_driver.h.
Function Documentation
◆ dm9161DisableIrq()
void dm9161DisableIrq | ( | NetInterface * | interface | ) |
Disable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 180 of file dm9161_driver.c.
◆ dm9161DumpPhyReg()
void dm9161DumpPhyReg | ( | NetInterface * | interface | ) |
Dump PHY registers for debugging purpose.
- Parameters
-
[in] interface Underlying network interface
Definition at line 348 of file dm9161_driver.c.
◆ dm9161EnableIrq()
void dm9161EnableIrq | ( | NetInterface * | interface | ) |
Enable interrupts.
- Parameters
-
[in] interface Underlying network interface
Definition at line 165 of file dm9161_driver.c.
◆ dm9161EventHandler()
void dm9161EventHandler | ( | NetInterface * | interface | ) |
DM9161 event handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 195 of file dm9161_driver.c.
◆ dm9161Init()
error_t dm9161Init | ( | NetInterface * | interface | ) |
DM9161 PHY transceiver initialization.
- Parameters
-
[in] interface Underlying network interface
- Returns
- Error code
Definition at line 60 of file dm9161_driver.c.
◆ dm9161InitHook()
void dm9161InitHook | ( | NetInterface * | interface | ) |
DM9161 custom configuration.
- Parameters
-
[in] interface Underlying network interface
Definition at line 117 of file dm9161_driver.c.
◆ dm9161ReadPhyReg()
uint16_t dm9161ReadPhyReg | ( | 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 dm9161_driver.c.
◆ dm9161Tick()
void dm9161Tick | ( | NetInterface * | interface | ) |
DM9161 timer handler.
- Parameters
-
[in] interface Underlying network interface
Definition at line 127 of file dm9161_driver.c.
◆ dm9161WritePhyReg()
void dm9161WritePhyReg | ( | 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 dm9161_driver.c.
Variable Documentation
◆ dm9161PhyDriver
|
extern |
DM9161 Ethernet PHY driver.
Definition at line 44 of file dm9161_driver.c.