update:

增加读取上下行网口的MAC地址
This commit is contained in:
2026-09-10 10:23:33 +08:00
parent 228e564214
commit ac9199b926
5 changed files with 2305 additions and 2280 deletions
+10 -1
View File
@@ -339,7 +339,8 @@ static ModbusErrorCode_e ModbusCommunicationDataWrite(u16 Addr, u16 Value)
W5500_1.Init();
Wdg.Feed();
Usr_Flash.Write();
}
}break;
/* 设备 SN */
@@ -679,6 +680,14 @@ static u16 ModbusCommunicationDataRead(u16 Addr)
{
Data = W5500_1.W5500_Class[0].ConfigData.DPort[0] << 8 | W5500_1.W5500_Class[0].ConfigData.DPort[1];
}break;
case 60 ... 65:
{
Data = W5500.Phy_Addr[Addr - 60];
}break;
case 66 ... 71:
{
Data = W5500_1.Phy_Addr[Addr - 66];
}break;
/* ========== 字符串字段(每个12个寄存器) ========== */
/* 设备 SN */