From 259550e3b63cc5918030200edf2cfce6255a11cc Mon Sep 17 00:00:00 2001 From: Wouter Geraedts Date: Wed, 13 Apr 2022 16:33:28 +0200 Subject: [PATCH] Fix indexing for phy configuration register --- src/register.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/register.rs b/src/register.rs index 01754dc..1ae2765 100644 --- a/src/register.rs +++ b/src/register.rs @@ -67,17 +67,17 @@ pub mod common { impl PhyConfig { // Link status bit position. - const LNK_POS: usize = 7; + const LNK_POS: usize = 0; // Speed status bit position. - const SPD_POS: usize = 6; + const SPD_POS: usize = 1; // Duplex status bit position. - const DPX_POS: usize = 5; + const DPX_POS: usize = 2; // Operation mode bit position. - // const OPMDC_POS = 2; + // const OPMDC_POS = 3; // Configure PHY opeartion mode bit position. - // const OPMD_POS = 1; + // const OPMD_POS = 6; // Reset bit position. - // const RST_POS = 0; + // const RST_POS = 7; /// PHY link status. ///