@@ -150,8 +150,8 @@ impl EthernetMAC {
150150 /// pins.
151151 ///
152152 /// Exclusive access to the `MDIO` and `MDC` is required to ensure that are not used elsewhere
153- /// for the duration of SMI communication.
154- pub fn smi < ' eth , ' pins , Mdio , Mdc > (
153+ /// for the duration of Mii communication.
154+ pub fn mii < ' eth , ' pins , Mdio , Mdc > (
155155 & ' eth mut self ,
156156 mdio : & ' pins mut Mdio ,
157157 mdc : & ' pins mut Mdc ,
@@ -164,7 +164,7 @@ impl EthernetMAC {
164164 }
165165
166166 /// Turn this [`EthernetMAC`] into an [`EthernetMACWithMii`]
167- pub fn with_smi < MDIO , MDC > ( self , mdio : MDIO , mdc : MDC ) -> EthernetMACWithMii < MDIO , MDC >
167+ pub fn with_mii < MDIO , MDC > ( self , mdio : MDIO , mdc : MDC ) -> EthernetMACWithMii < MDIO , MDC >
168168 where
169169 MDIO : MdioPin ,
170170 MDC : MdcPin ,
@@ -177,9 +177,9 @@ impl EthernetMAC {
177177 }
178178}
179179
180- /// Ethernet media access control (MAC) with owned SMI
180+ /// Ethernet media access control (MAC) with owned MII
181181///
182- /// This version of the struct owns it's SMI pins,
182+ /// This version of the struct owns it's MII pins,
183183/// allowing it to be used directly, instead of requiring
184184/// that a [`Miim`] is created.
185185pub struct EthernetMACWithMii < MDIO , MDC >
@@ -233,13 +233,13 @@ where
233233{
234234 pub fn read ( & mut self , phy : u8 , reg : u8 ) -> u16 {
235235 self . eth_mac
236- . smi ( & mut self . mdio , & mut self . mdc )
236+ . mii ( & mut self . mdio , & mut self . mdc )
237237 . read ( phy, reg)
238238 }
239239
240240 pub fn write ( & mut self , phy : u8 , reg : u8 , data : u16 ) {
241241 self . eth_mac
242- . smi ( & mut self . mdio , & mut self . mdc )
242+ . mii ( & mut self . mdio , & mut self . mdc )
243243 . write ( phy, reg, data)
244244 }
245245}
0 commit comments